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
to
- edit your fixes/compiles.sqf in your mission file and change this line from
to
DISABLE
- edit fixes/fn_damageHandler.sqf and comment these lines out (160 & 161):
CHANGE
- edit these lines (154 & 157)
- and change the last 1.25 (in both lines) to a bigger value for less infection. (needs testing, please post your experiences)
example:
// just saw that there is already a thread about it. mods can delete this one.
- 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
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
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);
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.