Hahaha. 75% of these don't work for me. I recently tried the "tent sleep" addon. The player lays down in his tent, he is forced out by some invisible force, and then he gets up and has not healed one bit. Then he lays back down, gets back up, and equips his weapon. I'm gonna assume my problem is...
<removed by Retra, - no racism>
I tried everything I could think of. Every combination of ifs, whiles, thens, dos, gotos, blah blah blah. My brain feels like mush. I beat the crap out of fn_damageHandler.sqf and setup_functions_med.sqf and the sunnuvahguns wouldn't submit. I gave up literally...
Ok, I think the constant player status check (e.g. injured, infected, etc...) is in the init.sqf in the dayz_1.chernarus.pbo. Am I right in assuming that?
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...
Ok, I just went in game and tested this. I purposefully got myself infected and waited to see if the infection would stop if my blood loss reached < 2000. It didn't. I died. There must be some other function that needs editing. I'm gonna dig around in fn_damageHandler.sqf and see if there's...
Ok, then the code follows the basic rules of math then. I'm finding never to take things for granted with this stuff, though. Had to ask. Thanks, Commander.
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:
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...
... :confused:
Well, this is what I have so far:
I've copied the fn_damageHandler.sqf and added the piece of code you suggested. So now I have a modified fn_damageHandler.sqf.
What do I do now? In noob terms, please.
I hate to keep pestering you, but help from other people has been...
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?
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...
UPDATE:
I tried downloading the original dayz_code.pbo from the server, extracting it with PBO Manager and without making any changes to any file, I repacked it with PBO Manager and uploaded it the server. I get the same error
"z/addons/dayz_code/init/variables.sqf not found"
I'm sure I'm...
Thanks for your input, Commander. If the script was modified in the way you suggested, would the player still be technically "infected" however not die from the infection?
I'm having technical difficulties with the dayz_code.pbo. I'm trying to edit the script in the way that Matt suggested...
Hi,
I'm having a strange error when trying to upload an edited pbo to my server.
I've downloaded dayz_code.pbo from my server, unpacked it using PBO Manager, edited fn_damageHandler.sqf, and when I repack the pbo and upload it to my server, I get this error at the loading screen...
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?
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...
Cool, thanks for the reply. Can I do that from fn_damageHandler.sqf ? Here is the file:
http://pastebin.com/dWLC1tDx
Where would I add the "wait"? And, if you have the time, what code would I add to get the desired result? Are there other files that I would need to edit?
Thanks again.
It seems when looking at the fn_damageHandler.sqf (and with my limited experience) that maybe death is caused by whatever function determines how fast a player bleeds out. There must be a way to re-route this so that a bleed-out caused by infection is made to be a much(much) slower blood loss...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.