mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Advanced Fatigue - Fix metabolic cost mass multiplier for walking (#9368)
4 -> 2
This commit is contained in:
parent
be4f7147d9
commit
017e097ac4
@ -36,16 +36,19 @@ if (GVAR(isSwimming)) then {
|
|||||||
_terrainGradient = 0;
|
_terrainGradient = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Metabolic cost for walking and running is different
|
||||||
if (_velocity > 2) then {
|
if (_velocity > 2) then {
|
||||||
|
// Running
|
||||||
(
|
(
|
||||||
2.10 * SIM_BODYMASS
|
2.10 * SIM_BODYMASS
|
||||||
+ 4 * (SIM_BODYMASS + _gearMass) * ((_gearMass / SIM_BODYMASS) ^ 2)
|
+ 4 * (SIM_BODYMASS + _gearMass) * ((_gearMass / SIM_BODYMASS) ^ 2)
|
||||||
+ (SIM_BODYMASS + _gearMass) * (0.90 * (_velocity ^ 2) + 0.66 * _velocity * _terrainGradient)
|
+ (SIM_BODYMASS + _gearMass) * (0.9 * (_velocity ^ 2) + 0.66 * _velocity * _terrainGradient)
|
||||||
) * 0.23 * _duty
|
) * 0.23 * _duty
|
||||||
} else {
|
} else {
|
||||||
|
// Walking
|
||||||
(
|
(
|
||||||
1.05 * SIM_BODYMASS
|
1.05 * SIM_BODYMASS
|
||||||
+ 4 * (SIM_BODYMASS + _gearMass) * ((_gearMass / SIM_BODYMASS) ^ 2)
|
+ 2 * (SIM_BODYMASS + _gearMass) * ((_gearMass / SIM_BODYMASS) ^ 2)
|
||||||
+ (SIM_BODYMASS + _gearMass) * (1.15 * (_velocity ^ 2) + 0.66 * _velocity * _terrainGradient)
|
+ (SIM_BODYMASS + _gearMass) * (1.15 * (_velocity ^ 2) + 0.66 * _velocity * _terrainGradient)
|
||||||
) * 0.23 * _duty
|
) * 0.23 * _duty
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user