CfgMovesFatigue – Arma 3
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory *\| *arma3 *\| +" to "{{GameCategory|arma3|") |
Lou Montana (talk | contribs) m (Text replacement - "syntaxhighlight lang="c"" to "syntaxhighlight lang="cpp"") |
||
Line 10: | Line 10: | ||
==== aimPrecisionSpeedCoef ==== | ==== aimPrecisionSpeedCoef ==== | ||
[[TokenNameValueTypes#Floats|Float]] | [[TokenNameValueTypes#Floats|Float]] | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="cpp"> | ||
aimPrecisionSpeedCoef = 5; //aimPrecision adjusting rate coefficient between two animation states with different aimPrecision parameter value | aimPrecisionSpeedCoef = 5; //aimPrecision adjusting rate coefficient between two animation states with different aimPrecision parameter value | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 17: | Line 17: | ||
==== staminaCooldown ==== | ==== staminaCooldown ==== | ||
[[TokenNameValueTypes#Floats|Float]] | [[TokenNameValueTypes#Floats|Float]] | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="cpp"> | ||
staminaCooldown = 10; //when you run out of stamina the sprinting is disabled for this duration | staminaCooldown = 10; //when you run out of stamina the sprinting is disabled for this duration | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 23: | Line 23: | ||
==== staminaDuration ==== | ==== staminaDuration ==== | ||
[[TokenNameValueTypes#Floats|Float]] | [[TokenNameValueTypes#Floats|Float]] | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="cpp"> | ||
staminaDuration = 60; //total amount of stamina | staminaDuration = 60; //total amount of stamina | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 29: | Line 29: | ||
==== staminaRestoration ==== | ==== staminaRestoration ==== | ||
[[TokenNameValueTypes#Floats|Float]] | [[TokenNameValueTypes#Floats|Float]] | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="cpp"> | ||
staminaRestoration = 30; //time required for your current stamina pool (total stamina - inventory load) to restore | staminaRestoration = 30; //time required for your current stamina pool (total stamina - inventory load) to restore | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 36: | Line 36: | ||
==== terrainDrainSprint ==== | ==== terrainDrainSprint ==== | ||
[[TokenNameValueTypes#Floats|Float]] | [[TokenNameValueTypes#Floats|Float]] | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="cpp"> | ||
terrainDrainSprint = -1; //when terrain gradient disable sprint, this stamina value is added to every animation state (do not stack with following terrain threshold) | terrainDrainSprint = -1; //when terrain gradient disable sprint, this stamina value is added to every animation state (do not stack with following terrain threshold) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 42: | Line 42: | ||
==== terrainDrainRun ==== | ==== terrainDrainRun ==== | ||
[[TokenNameValueTypes#Floats|Float]] | [[TokenNameValueTypes#Floats|Float]] | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="cpp"> | ||
terrainDrainRun = -1; //when terrain gradient enable force walk, this stamina value is added to every animation state (do not stack with previous terrain threshold) | terrainDrainRun = -1; //when terrain gradient enable force walk, this stamina value is added to every animation state (do not stack with previous terrain threshold) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 48: | Line 48: | ||
==== terrainSpeedCoef ==== | ==== terrainSpeedCoef ==== | ||
[[TokenNameValueTypes#Floats|Float]] | [[TokenNameValueTypes#Floats|Float]] | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="cpp"> | ||
terrainSpeedCoef = 0.9; //when terrain gradient disable sprint, animation speed is multiplied by this value | terrainSpeedCoef = 0.9; //when terrain gradient disable sprint, animation speed is multiplied by this value | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 15:31, 11 February 2024
Introduction
See CfgVehicles Config Reference Introduction or Arma 3 Stamina for functionality description.
This class is defined in base soldier class so all soldiers in vanilla game have the same Stamina behavior. However it can be defined for each soldier class separately if desired.
Alphabetical Order
A
aimPrecisionSpeedCoef
aimPrecisionSpeedCoef = 5; //aimPrecision adjusting rate coefficient between two animation states with different aimPrecision parameter value
S
staminaCooldown
staminaCooldown = 10; //when you run out of stamina the sprinting is disabled for this duration
staminaDuration
staminaDuration = 60; //total amount of stamina
staminaRestoration
staminaRestoration = 30; //time required for your current stamina pool (total stamina - inventory load) to restore
T
terrainDrainSprint
terrainDrainSprint = -1; //when terrain gradient disable sprint, this stamina value is added to every animation state (do not stack with following terrain threshold)
terrainDrainRun
terrainDrainRun = -1; //when terrain gradient enable force walk, this stamina value is added to every animation state (do not stack with previous terrain threshold)
terrainSpeedCoef
terrainSpeedCoef = 0.9; //when terrain gradient disable sprint, animation speed is multiplied by this value