Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. _t = _this select 0
  2. #s
  3. ~0.001
  4.  
  5. HitEH = player addeventhandler ["Hit" , {HTD = _this select 0 ; HTR = _this select 1 ; HPD = damage HTD - (_this select 2) ; HTD reveal HTR ; if (side HTD == side HTR and side HTD != sideenemy or HTD countfriendly [HTR] == 1) then {hitbyhuman = true}}]
  6. ;DammageEH = player addeventhandler ["Dammaged" , {HTD = _this select 0 ; HTR = _this select 1 ; HPD = damage HTD - (_this select 2) ; HTD reveal HTR ; if (side HTD == side HTR and side HTD != sideenemy or HTD countfriendly [HTR] == 1) then {hitbyhuman = true}}]
  7.  
  8. #back
  9. _type = ["hit"]
  10. _bld_pic = ["BloodCut1", "BloodCut2", "BloodCut3", "BloodCut4", "BloodCut1z", "BloodCut2z", "BloodCut3z", "BloodCut4z"]
  11. _go = (_type select (random ((count _type) -0.5)))
  12. ~0.01
  13.  
  14. #next
  15.  
  16.  
  17. _d= damage _t
  18. @ ((damage _t > _d) or (damage _t < _d))
  19. ? (damage _t < _d) : goto "s"
  20. ? (damage _t < _d + 0.01) : goto "s"
  21. ? hitbyhuman : hitbyhuman = false; hint "hit"; goto "back"
  22. titlecut ["","BLACK IN",random 3];
  23. _pic = (_bld_pic select (random ((count _bld_pic) -0.5)))
  24. TITLERSC [_pic, {PLAIN}]
  25. goto "s"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement