DirtySanchez Posted August 17, 2015 Author Report Share Posted August 17, 2015 Thanks for the redirect! This should be perfect. A couple friends say its not hard enough to survive normally. Hopefully this will spice things up a bit lol. Easily requires drink and food once to twice per 4 hour restart if player is active Looting or building READTHESCROLL 1 Link to comment Share on other sites More sharing options...
chrisa Posted August 20, 2015 Report Share Posted August 20, 2015 Does someone has a screenshot? i allready have a statusbar so i must remove that one? screenshot would be nice to see. I hope just as nice as what i read :D Link to comment Share on other sites More sharing options...
DirtySanchez Posted August 20, 2015 Author Report Share Posted August 20, 2015 Nothing needs to be removed, this is only code. Your current status bar can stay! Link to comment Share on other sites More sharing options...
blue00 Posted August 25, 2015 Report Share Posted August 25, 2015 (edited) Does this effect the rate of hunger\thirst? Seems like those drop really quickly, having to drink like 10-15 times per restart. Anyway for me to adjust that so it's slower to decrease? Edited August 25, 2015 by blue00 Link to comment Share on other sites More sharing options...
DirtySanchez Posted August 25, 2015 Author Report Share Posted August 25, 2015 10 to 15 to establish per restart is very extreme, my tests resulted in only a few drinks and 1 or 2 foods.Im not sure but do you have two different scripts running that utilize debug stats for realism? I know there is another script for just hunger and thirst by any chance are you running that one as well? Link to comment Share on other sites More sharing options...
blue00 Posted August 25, 2015 Report Share Posted August 25, 2015 (edited) Yeah, it is definitely very extreme lol. I don't think I have anything else that would effect it. Haven't added any other mods like that. Really all we have installed are attach explosives, earplugs, status bar, and an AI missions mod.Do you know what it might say that I could look for? To check other files I have to see if any adjustments to the thirst rate are in there. Tried to google it, but came up empty.Also running infiSTAR if that effects it? Edited August 25, 2015 by blue00 Link to comment Share on other sites More sharing options...
DirtySanchez Posted August 25, 2015 Author Report Share Posted August 25, 2015 No my initial tests were not that bad, are you running 0.3.2.0, I have not set that one up yet.Maybe they adjusted the rates.I'll ch e c it out bud. Link to comment Share on other sites More sharing options...
blue00 Posted August 25, 2015 Report Share Posted August 25, 2015 (edited) Yes, I'm running 0.3.2.0, and if you can figure this out for me, I will seriously love you forever. Edited August 25, 2015 by blue00 Link to comment Share on other sites More sharing options...
lesvieuxcrevards Posted June 14, 2017 Report Share Posted June 14, 2017 Hi, Anyone know if this script working with Epoch 0.5 ? Another question : does differents status have impact on health of player ? Or it's just visual tag ? Regards. Link to comment Share on other sites More sharing options...
natoed Posted June 14, 2017 Report Share Posted June 14, 2017 16 hours ago, lesvieuxcrevards said: Hi, Anyone know if this script working with Epoch 0.5 ? Another question : does differents status have impact on health of player ? Or it's just visual tag ? Regards. Can confirm, it works very well on my little server a3 1.70 and epoch 0.5 Visual tag, No Just a systemchat message local to the player to inform them. NOTE: edited heavily from the original posted scripts I did try adding EPOCH_playerTemp to increase EPOCH_playerBloodP but it didn't end well....lol my settings are harsh here's what I use, DP_Real_Health.sqf Spoiler /* DonkeyPunch Epoch Realism Script Alpha DP_Real_Health.sqf By =RAV=MusTanG For DonkeyPunch EpochMod Servers */ dpReal_Health = { _hunger = EPOCH_playerHunger; _thirst = EPOCH_playerThirst; _wet = EPOCH_playerWet; _soiled = EPOCH_playerSoiled; _immune = EPOCH_playerImmunity; _tox = EPOCH_playerToxicity; _bloodP = EPOCH_playerBloodP; _ptemp = EPOCH_playerTemp; _stamina = EPOCH_playerStamina; _pdamage = damage player; if(_hunger < 450) then { _damage = _pdamage + 0.005; systemchat("YOU ARE HUNGRY! EAT SOMETHING SOON"); player setDamage _damage; sleep 25; _ate = EPOCH_playerHunger; if(_ate < 450) then {call dpReal_Health;}; }; if(_thirst < 200) then { _damage = _pdamage + 0.002; systemchat("YOU ARE THIRSTY! DRINK SOMETHING SOON!"); player setDamage _damage; sleep 25; _drank = EPOCH_playerThirst; if(_drank < 200) then {call dpReal_Health;}; }; if(_wet > 90) then { EPOCH_playerTemp = EPOCH_playerTemp + 0.2; systemchat("YOU ARE SOAKED! GET DRY OR YOU COULD GET SICK"); sleep 45; if(_wet > 90) then {call dpReal_Health;}; }; if(_soiled > 20) then { _toxic = EPOCH_playerToxicity + 0.4; systemchat("YOU ARE FILTHY! USE A TOWELETTE OR YOU WILL BECOME TOXIC"); EPOCH_playerToxicity = _toxic; sleep 30; if(_soiled > 21) then {call dpReal_Health;}; }; if(_tox > 35) then { _immunity = EPOCH_playerImmunity - 1; systemchat("YOU ARE TOXIC! CONSUME GOLDENSEAL ROOT OR YOU WILL GET VERY SICK"); EPOCH_playerImmunity = _immunity; sleep 30; if(_tox > 35) then {call dpReal_Health;}; }; if(_immune < -50)then { EPOCH_playerTemp = EPOCH_playerTemp + 0.5; Epoch_playerToxicity=Epoch_playerToxicity+2; EPOCH_playerStamina=EPOCH_playerStamina-5; _damage = _pdamage + 0.15; player setDamage _damage; systemchat("IMMUNE DEFICIENCY! YOU ARE DYING, YOU ARE SO FUCKED "); sleep 30; if(_immune < -50)then{call dpReal_Health;}; }; if(_bloodP > 110) then { systemchat("YOU ARE FUCKED UP! CONSUME POPPIES OR YOU WILL QUICKLY DIE"); EPOCH_playerStamina = EPOCH_playerStamina -50; EPOCH_playerTemp = EPOCH_playerTemp + 0.5; _damage = _pdamage + 0.35; player setDamage _damage; sleep 30; if(_bloodP > 110) then {call dpReal_Health;}; }; }; DP_Real_Health_check.sqf Spoiler /* DonkeyPunch Epoch Realism Script Alpha DP_Real_Health_Checks.sqf By =RAV=MusTanG For DonkeyPunch EpochMod Servers */ while {true} do { _wet = EPOCH_playerWet; _hunger = EPOCH_playerHunger; _thirst = EPOCH_playerThirst; _soiled = EPOCH_playerSoiled; _tox = EPOCH_playerToxicity; _bloodP = EPOCH_playerBloodP; _immune = EPOCH_playerImmunity; if(_hunger < 450)then{call dpReal_Health;}else{EPOCH_playerHunger+EPOCH_playerHunger-5;}; if(_thirst < 200)then{call dpReal_Health;}else{EPOCH_playerThirst=EPOCH_playerThirst-2;}; if(_wet > 100)then{call dpReal_Health;}; if(_soiled > 21)then{call dpReal_Health;}; if(_tox > 35)then{call dpReal_Health;}; if(_bloodP > 100)then{call dpReal_Health;}; if(_immune < -50)then{call dpReal_Health;}; sleep 60; }; cheers natoed lesvieuxcrevards 1 Link to comment Share on other sites More sharing options...
DirtySanchez Posted June 23, 2017 Author Report Share Posted June 23, 2017 Cheers on the continued usage of this script guys WOW. Was there something you wanted upgraded for this @natoed I would be more than willing to help / upgrade it. Link to comment Share on other sites More sharing options...
natoed Posted June 23, 2017 Report Share Posted June 23, 2017 3 hours ago, DirtySanchez said: Cheers on the continued usage of this script guys WOW. Was there something you wanted upgraded for this @natoed I would be more than willing to help / upgrade it. Hi DirtySanchez Yes please kind Sir, if we/you could adding EPOCH_playerTemp to increase EPOCH_playerBloodP I did this some time ago, I noted that players temp didn't increase at all but all I can remember sry (still so so much I don't know) If some sort of Visual cue could be added for each effect or tried in with epoch's visual cue's would even better, as i did slow the system-chat messages due to the spamming ideally (if possible) Some Positive effects for being a healthy well feed and watered player heals player a very small amount, increase in immunity and or stamina what do you think! cheers natoed DirtySanchez 1 Link to comment Share on other sites More sharing options...
DirtySanchez Posted June 23, 2017 Author Report Share Posted June 23, 2017 @natoed As I have come far since this old release, I think I should be able to do what you are asking. Let me pull out my old git and take a look at what I happened to do for this script, maybe I will throw up looking at it but :fingers_crossed: I wasnt too much of a nub when I wrote it. Chat soon natoed 1 Link to comment Share on other sites More sharing options...
DirtySanchez Posted June 29, 2017 Author Report Share Posted June 29, 2017 @natoed I had some spare time tonight and did a work over of the whole thing. Most of the work was adding settings for the msg's, hunger/thrist drops and the rest of the variable changes. I also added in a message type toggle and handler. You will be able to use systemChat, titleText or hints. I also added in a change for BloodPressure on High Temp for ya as requested. If you would like to test it out let me know natoed 1 Link to comment Share on other sites More sharing options...
natoed Posted July 1, 2017 Report Share Posted July 1, 2017 @DirtySanchez Yes please, More than happy to test this out cheers natoed Link to comment Share on other sites More sharing options...
DirtySanchez Posted July 1, 2017 Author Report Share Posted July 1, 2017 @natoed Hey bud, After some hours of testing today many changes went into this script. Everything is working without need to modify. Settings file has been added for editing warning messages and value changes. Warning messaging handler added to allow option for systemChat, titleText or hints. Fixed some issues that have persisted since 0.4 with value changes in the wrong direction. Tweaked some of the changes and how the script loads up and runs. v0.6 is live on the github now ENJOY -sTanG axeman and natoed 2 Link to comment Share on other sites More sharing options...
natoed Posted July 2, 2017 Report Share Posted July 2, 2017 Hey DirtySanchez thx and it does work but was just throwing an error in the server rpt file. 16:29:10 Error in expression <"VirtualMan_EPOCH") && (diag_tickTime > DPRH_CurrentLoopTime))then { _time = dia> 16:29:10 Error position: <DPRH_CurrentLoopTime))then { _time = dia> 16:29:10 Error Undefined variable in expression: dprh_currentlooptime 16:29:10 File mpmissions\__cur_mp.Altis\2dmin\addons\DPRealHealth\DP_Real_Health_check.sqf, line 9 server rpt's https://pastebin.com/VJZMpGui https://pastebin.com/5uiP4AZ3 So i moved whats in the onPlayerRespawn.sqf in to the initPlayerLocal.sqf and the error is now gone with everything works great if (!isDedicated and hasInterface) then { waitUntil {alive vehicle player}; waitUntil {typeOF player != "VirtualMan_EPOCH"}; [] execVM "2dmin\addons\DPRealHealth\DP_Real_Health_check.sqf"; // Thx =RAV=MusTanG }; Also I have noted that one message will be displayed at a time even if say 2 or 3 should be like soiled message will display til its sort then it will roll thought to the one say Temp, make sense! btw the settings.sqf very nice, now to tweak the shit out of this thanks again cheers natoed DirtySanchez 1 Link to comment Share on other sites More sharing options...
DirtySanchez Posted July 2, 2017 Author Report Share Posted July 2, 2017 OnPlayerRespawn was suppose to be removed when I syncd the github.... Remove all need for the code in that file and it is not necessary in the initPlayerLocal either. Thank you for pointing the github issue out. It has been updated to master with that removed Yes tons of setting for complete modification. The different messages types are nice. TitleText gets it back on screen in the center bottom. Link to comment Share on other sites More sharing options...
natoed Posted October 26, 2017 Report Share Posted October 26, 2017 @DirtySanchez I know your busy with Experimental, when you have the time could you point me to what has changed and I'll have a go updating apart from the damage to player not much else is working on epoch v1.0 (works fine with v0.5 btw) cheers natoed DirtySanchez 1 Link to comment Share on other sites More sharing options...
Sneer Posted March 16, 2018 Report Share Posted March 16, 2018 It would be nice if this was working for 1.1.0 with the radiation effects added. Please. DirtySanchez and natoed 2 Link to comment Share on other sites More sharing options...
natoed Posted March 31, 2018 Report Share Posted March 31, 2018 On 3/16/2018 at 11:52 PM, Sneer said: It would be nice if this was working for 1.1.0 with the radiation effects added. Please. @sneer soz i missed this post, thou I added added radiation effects when v1.0 dropped settings.sqf DP_Real_Health.sqf DP_Real_Health_check.sqf hope it helps cheers natoed Grahame and DirtySanchez 2 Link to comment Share on other sites More sharing options...
Sneer Posted March 31, 2018 Report Share Posted March 31, 2018 Are these settings for the last version or the previous? Link to comment Share on other sites More sharing options...
Sneer Posted March 31, 2018 Report Share Posted March 31, 2018 11:44:28 Error in expression <e))then { _time = diag_tickTime; _wet = EPOCH_playerWet; _hunger = EPOCH_playerH> 11:44:28 Error position: <EPOCH_playerWet; _hunger = EPOCH_playerH> 11:44:28 Error Undefined variable in expression: epoch_playerwet 11:44:28 File mpmissions\__CUR_MP.Tanoa\addons\DPRealHealth\DP_Real_Health_check.sqf, line 13 Link to comment Share on other sites More sharing options...
He-Man Posted March 31, 2018 Report Share Posted March 31, 2018 EPOCH_playerWet should be defined in EPOCH. Eventually the script runs before this vars are defined? Or does it spam the rpt all the time? Link to comment Share on other sites More sharing options...
natoed Posted April 1, 2018 Report Share Posted April 1, 2018 On 4/1/2018 at 1:44 AM, Sneer said: Are these settings for the last version or the previous? @Sneer Yes the last version but I get no rpt errors thou I do run it from init.sqf Spoiler if(hasInterface) then{ [] spawn { waituntil {!isNull player}; waituntil {time > 25}; waituntil {isPlayer player}; waituntil {alive player}; waituntil {getPlayerUID player != ''}; waitUntil {!isNull (findDisplay 46)}; waituntil {typeof player in ["Epoch_Male_F","Epoch_Female_F"]}; waituntil {!isNil "Epoch_my_GroupUID"}; uisleep 2; [] execVM "2dmin\addons\DPRealHealth\settings.sqf"; call compile preProcessFileLineNumbers "2dmin\addons\DPRealHealth\DP_Real_Health.sqf"; call compile preProcessFileLineNumbers "2dmin\addons\DPRealHealth\DP_Real_Health_Messaging.sqf"; }; }; initPlayerLocal.sqf Spoiler if (!isDedicated and hasInterface) then { waitUntil {alive vehicle player}; waitUntil {typeOF player != "VirtualMan_EPOCH"}; uisleep 15; [] execVM "2dmin\addons\DPRealHealth\DP_Real_Health_check.sqf"; }; if i remember right it was the only way i could get this to run properly, just grab my mission file and help yourself mate. cheers natoed Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now