How to disable / change Infection on DayZ 1.7.7

b4r0n

Member
HOW TO DISABLE / CHANGE INFECTION FROM ZOMBIES IN 1.7.7

- create a folder in your mission called "fixes"

- copy "compiles.sqf" and "fn_damageHandler.sqf" from your dayz_code.pbo into your just created fixes folder

- edit your init.sqf in your mission file and change this line from
Code:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";                //Compile regular functions
to
Code:
call compile preprocessFileLineNumbers "fixes\compiles.sqf";                //Compile regular functions


- edit your fixes/compiles.sqf in your mission file and change this line from
Code:
fnc_usec_damageHandler =    compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";        //Event handler run on damage
to
Code:
fnc_usec_damageHandler =    compile preprocessFileLineNumbers "fixes\fn_damageHandler.sqf";        //Event handler run on damage


DISABLE

- edit fixes/fn_damageHandler.sqf and comment these lines out (160 & 161):
Code:
                //r_player_infected = true;
                //player setVariable["USEC_infected",true,true];

CHANGE

- edit these lines (154 & 157)
Code:
_hitInfection = ((exp _rndInfection) > 1.25);
...
_hitInfection = ((exp _rndInfection * 1.25*1.1) > 1.25);
- and change the last 1.25 (in both lines) to a bigger value for less infection. (needs testing, please post your experiences)

example:
Code:
_hitInfection = ((exp _rndInfection) > 1.35);
...
_hitInfection = ((exp _rndInfection * 1.25*1.1) > 1.35);


// just saw that there is already a thread about it. mods can delete this one.
 
Back
Top