Jump to content
Heisenberg DayZ

dayz 1.01.1 how to modify constants.c make players no physical strength, no weight, no stamina?

Recommended Posts

as 1.0, I modify the constants.c and playerconstants.c, it works . no physical strength, no weight, no stamina.

update 1.1, I modify the same files on  my server, but it does not work any more.

help me, thank you.

 

static const float METABOLIC_SPEED_ENERGY_BASAL        = 0;        //energy loss per second while idle
    
    static const float METABOLIC_SPEED_ENERGY_WALK        = 0;         //energy loss per second
    static const float METABOLIC_SPEED_ENERGY_JOG        = 0;     //energy loss per second
    static const float METABOLIC_SPEED_ENERGY_SPRINT    = 0;         //energy loss per second
    
    static const float METABOLIC_SPEED_WATER_BASAL        = 0;     //water loss per second while idle
    
    static const float METABOLIC_SPEED_WATER_WALK        = 0;         //water loss per second
    static const float METABOLIC_SPEED_WATER_JOG        = 0;         //water loss per second
    static const float METABOLIC_SPEED_WATER_SPRINT        = 0;         //water loss per second
    //--------------------------------------------------------

 

const int     STAMINA_DRAIN_STANDING_SPRINT_PER_SEC = 0; //in units (how much sprint depletes stamina)
const int     STAMINA_DRAIN_CROUCHED_SPRINT_PER_SEC = 0; //in units (how much sprint in crouch depletes stamina)
const int     STAMINA_DRAIN_PRONE_SPRINT_PER_SEC = 0; //in units (how much sprint in prone depletes stamina)
const int    STAMINA_DRAIN_SWIM_FAST_PER_SEC = 0; //in units (how much fast swimming depletes stamina)
const int    STAMINA_DRAIN_LADDER_FAST_PER_SEC = 0; //in units (how much fast ladder climb depletes stamina)

const float    STAMINA_DRAIN_HOLD_BREATH = 0; //in units (how much holding breath depletes stamina)
const float    STAMINA_DRAIN_JUMP = 0;        // in units (how much jumping depletes stamina)
const float    STAMINA_DRAIN_MELEE_LIGHT = 0; //in units (how much light melee punch depletes stamina)
const float    STAMINA_DRAIN_MELEE_HEAVY = 0; //in units (how much heavy melee punch depletes stamina)
const float    STAMINA_DRAIN_MELEE_EVADE = 0; // in units (how much evade depletes stamina)

 

  • Like 1

Share this post


Link to post
Share on other sites

same as before but if you run a modded server there is a mod out there that will do this think it was called @GDZSScripts this will also take away any vechile damage and more

Share this post


Link to post
Share on other sites

It still seems to work for me? On my local test server I just unpacked scripts.pbo, opened scripts\3_Game\constants.c and changed a bunch of the settings to 0, repacked and now I can sprint, punch, jump etc without losing any stamina.

 // unit = currently percent (stamina max is 100)
const int     STAMINA_DRAIN_STANDING_SPRINT_PER_SEC = 0; //in units (how much sprint depletes stamina)
const int     STAMINA_DRAIN_CROUCHED_SPRINT_PER_SEC = 0; //in units (how much sprint in crouch depletes stamina)
const int     STAMINA_DRAIN_PRONE_SPRINT_PER_SEC = 0; //in units (how much sprint in prone depletes stamina)
const int    STAMINA_DRAIN_SWIM_FAST_PER_SEC = 0; //in units (how much fast swimming depletes stamina)
const int    STAMINA_DRAIN_LADDER_FAST_PER_SEC = 0; //in units (how much fast ladder climb depletes stamina)

const float    STAMINA_DRAIN_HOLD_BREATH = 0; //in units (how much holding breath depletes stamina)
const float    STAMINA_DRAIN_JUMP = 0;        // in units (how much jumping depletes stamina)
const float    STAMINA_DRAIN_MELEE_LIGHT = 0; //in units (how much light melee punch depletes stamina)
const float    STAMINA_DRAIN_MELEE_HEAVY = 0; //in units (how much heavy melee punch depletes stamina)
const float    STAMINA_DRAIN_MELEE_EVADE = 0; // in units (how much evade depletes stamina)
    
const int     STAMINA_GAIN_JOG_PER_SEC = 0; //in units (how much of stamina units is gained while jogging)
const int     STAMINA_GAIN_WALK_PER_SEC = 0; //in units (how much of stamina units is gained while walking)
const int     STAMINA_GAIN_IDLE_PER_SEC = 0; //in units (how much of stamina units is gained while iddling)
const int    STAMINA_GAIN_SWIM_PER_SEC = 0; //in units (how much of stamina units is gained while slowly swim)
const int    STAMINA_GAIN_LADDER_PER_SEC = 0; //in units (how much of stamina units is gained while slowly swim)
const float STAMINA_GAIN_BONUS_CAP = 0; //in units (tells how much extra units can be added at best to stamina regain)

const float STAMINA_KG_TO_STAMINAPERCENT_PENALTY = 0; //in units (by how many  units is max stamina bar reduced for each 1 kg of load weight)
const float STAMINA_MIN_CAP = 0; //in units (overload won't reduce max stamina bar under this value)
const float STAMINA_SPRINT_THRESHOLD = 0; //in units (how many units of stamina you need regained in order to be able to start sprinting)
const float STAMINA_HOLD_BREATH_THRESHOLD = 0; // in units
const float STAMINA_JUMP_THRESHOLD = 0; // in units
const float STAMINA_MELEE_HEAVY_THRESHOLD = STAMINA_DRAIN_MELEE_HEAVY; // in units (how many units we need to make a heavy hit in melee)
const float STAMINA_MELEE_EVADE_THRESHOLD = 8; // in units
const float STAMINA_REGEN_COOLDOWN_DEPLETION = 0; // in secs (how much time we will spend in cooldown before the stamina will starts with regeneration)
const float STAMINA_REGEN_COOLDOWN_EXHAUSTION = 0;
const float STAMINA_WEIGHT_LIMIT_THRESHOLD = 0; //! in grams (weight where the player is not penalized by stamina)
const float STAMINA_KG_TO_GRAMS = 0; //for kg to g conversion
const float STAMINA_SYNC_RATE = 0; //in secs
const float STAMINA_MAX = 100;

 

Edited by SmashT

Share this post


Link to post
Share on other sites

salut,

je ne peux pas me connecter sur mon serveur lors du changement du coût de l'endurance dans constanc.c

Quelqu'un a t-il aussi ce problème?

edit:

samebuild=1  equalmod=0 => works

samebuild=1 equalmod=1 => NOT works

samebuild=0 equalmod=1 => NOT works

bizare...

Edited by Isteben

Share this post


Link to post
Share on other sites

If u want to use your server with equalmod=0 u CANT change the files on this way...

u have to use the mods out of the workshop....

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×