Jump to content
LSValmont

Modifying CfgBrains Config files parameters via script.

Recommended Posts

Help needed my fellow Arma 3 gurus.

 

If I wanted to modify the parameters of a Config File, lets say for this example this:

https://community.bistudio.com/wiki/Arma_3_CfgBrains_Config_Reference

 

By preferably using a script or perhaps description.ext.

 

What would be the best way to do it?


PS: These are the values I want to modify via a script or something other than a mod:

Spoiler



class AIBrainCountermeasuresComponent
{
	useSmokeGrenadeDelay = 20;
	CMCheckDelay = 0.8;
	suppressionThreshold = 0.8;
	nonLeaderSmokeProbability = 0.1;
	CMOnTargettedProbability = 0.1;
	suppressionTimerMax = 2;
	minimalThrowDistance = 900;
	minReactionTime = 0.1;
	maxReactionTime = 3;
	randomReactionTimePercent = 0.2;
};
class AIBrainSuppressionComponent
{
	maxSuppression = 1;
	worstDecreaseTime = 10;// in seconds for 0 skill
	bestDecreaseTime = 1;// in seconds for 1 skill
	SuppressionRange = 20;
	CauseFireWeight = 0.5;
	CauseHitWeight = 0.5;
	CauseExplosionWeight = 0.5;
	CauseBulletCloseWeight = 0.5;
	SuppressionThreshold = 0.7;
};
class AIBrainAimingErrorComponent
{
	maxAngularError = 0.1309;// half of the error cone in radians
	maxAngularErrorTurrets = 0.0872;// half of the error cone in radians, used for turrets
	worstDecreaseTime = 2;// how long (in seconds) it should take 0 skilled soldier to stabilize the aim completely
	bestDecreaseTime = 0.2;// how long (in seconds) it should take 1 skilled soldier to stabilize the aim completely
	lostTargetTimeMin = 0.5;// how soon after loosing sight of target, error starts to raise
	lostTargetTimeMax = 3;// how long error is raising after loosing sight of target
	shootingInfluence = 0.4;// importance of shooting in algorithm, multiplier
	movingInfluence = 1;// importance of moving in algorithm, multiplier
	turningInfluence = 1;// importance of turning in algorithm, multiplier
	damageCoef = 10;// importance of damage of entity, multiplier
	fatigueCoef = 10;// importance of fatigue of entity, multiplier
	suppressionCoef = 0.5;// importance of suppression value, multiplier
	lostTargetCoef = 3;// importance of loosing target event, multiplier
};


 

 

Share this post


Link to post
Share on other sites

I don't think it is possible to modify cfgBrains outside of a config.

 

I tried using description.ext but I didn't notice any changes.

I haven't seen any scripting commands for this either I'm afraid.

 

 

Have you looked at LAMBS Suppression yet?

 

 

 

 

Share this post


Link to post
Share on other sites
8 minutes ago, Maff said:

I don't think it is possible to modify cfgBrains outside of a config.

 

I tried using description.ext but I didn't notice any changes.

I haven't seen any scripting commands for this either I'm afraid.

 

Have you looked at LAMBS Suppression yet?

 

Hello Maff! 

 

Indeed I have tried LAMBS and I want the same thing but without creating a mod dependency for my mission.

Share this post


Link to post
Share on other sites

cant be done. even with diag.exe and mergeConfig it probably wont update - maybe between mission changes but unlikely

  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×