Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stamina issues #70

Open
simonschmidt-idealo opened this issue Jan 12, 2023 · 2 comments
Open

stamina issues #70

simonschmidt-idealo opened this issue Jan 12, 2023 · 2 comments

Comments

@simonschmidt-idealo
Copy link

apparently the default stamina settings are annoying.

recommended values for advanced fatigue: perf + recovery factor 3 instead of 1

@Fusselwurm
Copy link
Member

@Fusselwurm
Copy link
Member

Fusselwurm commented Mar 15, 2023

i'd like to have a showcase how these settings feel instead of changing things blindly.

(if anyone has a documented showcase please go ahead and tell me, i'd be happy to not having to do this)

will update this comment with my progress


first: i'd like to see what happens with fatigue/stamina; and display these as they are changing while doing things in-game

the interesting GVARs in ace_advanced_fatigue seem to be:

https://github.com/acemod/ACE3/blob/master/addons/advanced_fatigue/functions/fnc_mainLoop.sqf

GVAR(peakPower)

GVAR(muscleDamage)

GVAR(ae1Reserve)
GVAR(ae2Reserve)
GVAR(anReserve)

GVAR(anFatigue)

GVAR(recoveryFactor)

to track how stamina values change, this script in init:

user_startpos = [0, 0, 0];

[
    {
        !isNil "ace_advanced_fatigue_VO2MaxPower"
    },
    {
        user_startpos = getPos player;

        hintSilent (format [
            " perf factor: %1 \n VO2MaxPower: %2 \n recoveryFactor: %3",
            ace_advanced_fatigue_performanceFactor,
            ace_advanced_fatigue_VO2MaxPower,
            ace_advanced_fatigue_recoveryFactor
        ]);
    },
    2
] call CBA_fnc_waitUntilAndExecute;

[
    {
        private _bits = [
            // ["performanceFactor", ace_advanced_fatigue_performanceFactor],
            // ["VO2MaxPower", ace_advanced_fatigue_VO2MaxPower],
            // ["recoveryFactor", ace_advanced_fatigue_recoveryFactor],
            ["peakPower", ace_advanced_fatigue_peakPower toFixed 0],
            ["muscleDamage", ace_advanced_fatigue_muscleDamage toFixed 4],
            // ["ae1Reserve", ace_advanced_fatigue_ae1Reserve],
            // ["ae2Reserve", ace_advanced_fatigue_ae2Reserve toFixed 0],
            ["anReserve", ace_advanced_fatigue_anReserve],
            ["anFatigue", ace_advanced_fatigue_anFatigue toFixed 2],
            ["dist from start", (player distance user_startpos) toFixed 0]
        ] apply { _x joinString ": " };
        systemChat (_bits joinString " | ");
    },
    1
] call CBA_fnc_addPerFrameHandler;

example:

max sprint distance on flat terrain before being forced to a walk for a typical loadout of 30kg:

performanceFactor distance
1 130m
3 210m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants