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.
if (_hitInfection) then {
r_player_infected = true;
player setVariable["USEC_infected",true,true];
_unit addMagazine "ItemAntibiotic";
};
if (_unit == player) then {
Haha. I like that. I see that you help install scripts for cash. If you can help me with this "No death on infection" script, I can do pay pal or something.
What I want is a script that allows infection and related symptoms, e.g. blood loss, blurred vision, passing out, etc... but blood loss stops at very minimal life so as to prevent death.
p.s. I have DayZ 1.7.7.1
I'd rather the infection isn't removed. I still want the coughing, passing out, contagious, etc... Just want the blood loss to stop just before death. Is that possible?
You could just remove the infection status after the player is below 2000 and then just set the infection variable to nil.No, i'd have to say not possible. I'm not the best at this sort of thing but being infected (coughing and all that) entails blood loss. I messaged you a simple version of it removing around 2000 blood, i'm sure someone (who is probably much better and not as tired as I) can write a loop or something that will (if the player is infected) continuously set their blood to say...2000. That way, they can only die from massive trauma such as a gunshot or crash. Hope someone can help you get as close as possible to your ideal script mangoff to bed now ~ night
You could just remove the infection status after the player is below 2000 and then just set the infection variable to nil.
Why are you packing/unpacking. You just copy over the necessary files and place them in your mission.pbo if you make any changes to default dayz_code.pbo it will glitch up
Matt! How's it going?
How do I do that? How do I copy over an .sqf without opening the pbo? That may sound silly, but this is my first venture with dayz_code.pbo.When I add mods (e.g. auto refuel, etc... ) to my dayz_1.chernarus.pbo, I always extract/pack it and upload.You mean to tell me there's a better way?
if you are using pboviewer you can just unpack it into a folder (I assume that's what you're doing) but with pboviewer you can also just OPEN day_zcode and click on the sqf you want, there should be a function for copying. No editing necessary to dayz_code, just take compiles or variables or w/e one is calling on the damage handler and overwrite it.
Holy shnikes. You're losing me, Matt. Sorry for my ignorance. I just downloaded PBO View and opened dayz_code.pbo (no extract) and I located the .sqf I want to overwrite. Can I just overwrite the fn_damageHandler.sqf with my modified one and close the pbo? Then upload the pbo to my server and voila?
lolno. You'll break dayz. Each client uses it's own dayz_code so it wouldn't affect anything anyways.
fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf"; //Event handler run on damage
//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
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "fixes\compiles.sqf";