GithubHelp home page GithubHelp logo

stamina issues about co_template.vr HOT 2 OPEN

gruppe-adler avatar gruppe-adler commented on June 15, 2024
stamina issues

from co_template.vr.

Comments (2)

Fusselwurm avatar Fusselwurm commented on June 15, 2024

related: https://github.com/gruppe-adler/userconfig/blob/main/cba_settings.sqf#L9-L10

from co_template.vr.

Fusselwurm avatar Fusselwurm commented on June 15, 2024

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

from co_template.vr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.