Advertisement
Guest User

Untitled

a guest
Mar 30th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.36 KB | None | 0 0
  1. /*
  2.     DonkeyPunch Epoch Realism Script Alpha
  3.     DP_Real_Health_Checks.sqf
  4.     By =RAV=MusTanG
  5.     For DonkeyPunch EpochMod Servers
  6. */
  7. systemchat("Health Scanner Online...");
  8. while {true} do
  9. {
  10.     if((alive player) && (typeOF player != "VirtualMan_EPOCH") && (diag_tickTime > DPRH_CurrentLoopTime))then
  11.     {
  12.         _time = diag_tickTime;
  13.         _wet = EPOCH_playerWet;
  14.         _hunger = EPOCH_playerHunger;
  15.         _thirst = EPOCH_playerThirst;
  16.         _soiled = EPOCH_playerSoiled;
  17.         _tox = EPOCH_playerToxicity;
  18.         _bloodP = EPOCH_playerBloodP;
  19.         _immune = EPOCH_playerImmunity;
  20.         _ptempH = EPOCH_playerTemp;
  21.         _ptempL = EPOCH_playerTemp;
  22.         //_fatigue = EPOCH_playerFatigue;   // this was a bad idea
  23.         _rad = EPOCH_playerRadiation;
  24.        
  25.         if(_hunger < DPRH_HungerThreshold)then{call dpReal_Health;}else{EPOCH_playerHunger+EPOCH_playerHunger-DPRH_HungerDrop;};
  26.         if(_thirst < DPRH_ThirstThreshold)then{call dpReal_Health;}else{EPOCH_playerThirst=EPOCH_playerThirst-DPRH_ThirstDrop;};
  27.         if(_wet >= 95)then{call dpReal_Health;};
  28.         if(_soiled > 25)then{call dpReal_Health;};
  29.         if(_tox > 49)then{call dpReal_Health;};
  30.         if(_bloodP > 140)then{call dpReal_Health;};
  31.         if(_immune < -20)then{call dpReal_Health;};
  32.         if(_ptempH > 99.5)then{call dpReal_Health;};
  33.         if(_ptempL < 95.5)then{call dpReal_Health;};
  34.         if(_rad > 10)then{call dpReal_Health;};
  35.         DPRH_CurrentLoopTime = _time + DPRH_CheckTimeFrame;
  36.     };
  37. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement