Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Paste it into a fixes folder or whatever, copy over the compiles.sqf from dayz_code.pbo and findchange that toCode:fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf"; //Event handler run on damage
then in your init.sqf (mission.pbo one) findCode://fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf"; //Event handler run on damage fnc_usec_damageHandler = compile preprocessFileLineNumbers "fixes\fn_damageHandler.sqf"; //Event handler run on damage
(near the top) and change the line UNDERNEATH that to look likeCode:progressLoadingScreen 0.4;
and then place compiles.sqf in the fixes folderCode:call compile preprocessFileLineNumbers "fixes\compiles.sqf";
if(r_player_blood > 2000)
Whoa...
You just taught me a lot there, dude. Much appreciated.
I do have a question about part of the code that you gave me, though:
Code:if(r_player_blood > 2000)
I'm wondering if you meant it to say: blood < 2000
It would make sense that I want the infection to end when the player's blood < 2000 rather than blood > 2000
Hey, I'm thankful that you took the time to help. Now I gotta go over this process several times in my head so that it all soaks in.
< 2000 means below 2000
<= 2000 equal to or below 2000
> 2000 more than 2000
=> 2000 equal or more than 2000
Paste it into a fixes folder or whatever, copy over the compiles.sqf from dayz_code.pbo and findchange that toCode:fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf"; //Event handler run on damage
then in your init.sqf (mission.pbo one) findCode://fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf"; //Event handler run on damage fnc_usec_damageHandler = compile preprocessFileLineNumbers "fixes\fn_damageHandler.sqf"; //Event handler run on damage
(near the top) and change the line UNDERNEATH that to look likeCode:progressLoadingScreen 0.4;
and then place compiles.sqf in the fixes folderCode:call compile preprocessFileLineNumbers "fixes\compiles.sqf";
No worries
if (r_player_infected) then {
if (r_player_blood < 2000) then {
r_player_infected = false;
player setVariable["USEC_infected",false,true];
};
};
Ok, I'm wondering if you know where the static player status check is located. That probably didn't make any sense. Let me try to rephrase...
I'm looking for the line of code that does a constant check for player status. For instance, checks to see if a player is infected. That way I can try and work in a way to check for "status infected" and do an "if" thing with it. Something like:
Code:if (r_player_infected) then { if (r_player_blood < 2000) then { r_player_infected = false; player setVariable["USEC_infected",false,true]; }; };
Please don't laugh too hard. I'm not even remotely sure what I'm doing yet. Also, what is the difference between "r_player_blood" and "r_player_bloodTotal"?
No worries
_minBlood = r_player_blood <= 2000;
if (r_player_infected and !_minBlood) then { _bloodLossPerSec = _bloodLossPerSec + 3 };