MintGaming

Breaching Charge Timers

6 posts in this topic

Hi,

does anyone know if its possible to lower all 3 types of the breaching charges?

I have looked in the server and client files for the time to make an override custom code, but either its not there or I keep missing it.

I would like wood to take 1 min, metal 2 mins and bigmomma 3 mins each one.

 

Thanks

Share this post


Link to post
Share on other sites
Advertisement

Hello there.

 

You can change it in the config.cpp, which persists in the exile_client.pbo.

Spoiler

	class PlantChargeWood: Abstract
	{
		duration = "3 * 60";
		abortInCombatMode = 0;
		animation = "Exile_Acts_RepairVehicle01_Animation01";
		conditionFunction = "ExileClient_action_breaching_condition";
		completedFunction = "ExileClient_action_breaching_completed";
		failedFunction = "ExileClient_action_breaching_failed";
		abortedFunction = "ExileClient_action_breaching_aborted";
	};
	class PlantChargeMetal: PlantChargeWood
	{
		duration = "5 * 60";
	};
	class PlantChargeConcrete: PlantChargeWood
	{
		duration = "7 * 60";
	};


 

Should admit, you have to create your own mod to be able to do that.

 

Good luck.
 

Share this post


Link to post
Share on other sites
3 hours ago, exilerist said:

Should admit, you have to create your own mod to be able to do that.

Not 100% correct, you don't have to create your own mod.

 

What you can do is, outsource class CfgExileDelayedActions into mission config.cpp.

Then use an overwrite for ExileClient_action_execute overwrite _actionconfig to look at missionconfigFile instead of configFile.

Timers changed, no own modification needed. Voilá

Edited by WURSTKETTE
  • Like 1

Share this post


Link to post
Share on other sites

Hello there.

 

@WURSTKETTE

Nice find. Thanks for info.

And if we'll change ExileClient_action_execute.sqf in this way, we'll have more universal approach?

Spoiler

_actionConfig = configFile >> "CfgExileDelayedActions" >> _actionName;
_actionConfig = _actionConfig + (missonConfigFile >> "CfgExileDelayedActions" >> _actionName);


 

 

Good luck.


 

Edited by exilerist

Share this post


Link to post
Share on other sites
4 hours ago, exilerist said:

And if we'll change ExileClient_action_execute.sqf in this way, we'll have more universal approach?

_actionConfig = missionconfigFile >> "CfgExileDelayedActions" >> _actionName;

That should be enuff i guess.
 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.