Skip to content

LoadCoef gets reset whenever loadout changes when Adv Fatigue is disabled #11103

@CptSMagnet

Description

@CptSMagnet

Mods (complete and add to the following information):

  • **Arma 3:2.20.152984 [Stable]
  • CBA: `3.18.4
  • ACE3: `3.20.0

Description:
With ACE no medical loaded and advanced fatigue disabled, LoadCoef of player (player getUnitTrait "LoadCoef") is always reset to 1 whenever loadout of player is changed (magazine spent, uniform switch, etc).
As some SOG:PF missions utilize this trait to give extra stamina to the player unit, this is overriding SOG:PF mission design.

This seems to be caused by ace_movement_fnc_handleVirtualMass being loaded as a loadoutChanged EH in (https://github.com/acemod/ACE3/blob/master/addons/movement/XEH_postInit.sqf).

Steps to reproduce:
Open editor;
Place any unit with equipment;
Start preview, and exec (player setUnitTrait ["LoadCoef",0.5];
Monitor variable (player getUnitTrait "LoadCoef");
Change equipment (drop a vest, throw a grenade, anything);
See that LoadCoef gets set to 1 the instance loadout is changed.

Expected behavior:
LoadCoef should not have been intervened if ACE Advanced Fatigue is not enabled.

Where did the issue occur?
Singleplayer / Editor (Singleplayer) / Virtual Arsenal

Log Files:

  • no log.

Additional context:
N/A

Screenshots:
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions