How can I edit the infection percent, when hit by a zombie?

ErikaBransherry

New Member
Hello,
I want to Edit it to be 100% infected,when the hit by zombie.
just hit = Infection

what i edit file? (i find infection in the fn_damagehandler)
how to edit percent?

plz, help me
+ what is meen (Random 500) < it is 500% ? chance?
 
fn_damagehandler.sqf on line 142
change
if (_hitInfection) then {
to
if (_hitInfection || (_ammo == "zombie")) then {


To answer your other question:
On line 129 you read:
_rndInfection = (Random 500)
means it creates a random number between 0 and 500 and assigns it to the variable _rndInfection. Then on line 134 we compare compare the value returned from Round 500 and see if its less than 1. If it is, then the result is TRUE, if its not then the result is FALSE. The T/F is assigned to _hitInfection.
So an infection will only occur about once every 500 times you are hit.
 
Back
Top