Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. for (P=Level.PawnList; P!=None; P=P.NextPawn)
  2. if (P.IsA('PlayerPawn'))
  3. {
  4. if (P.Health > 1)
  5. {
  6. for(Inv=P.Inventory; Inv!=None; Inv=Inv.Inventory)
  7. if (Ammo(Inv)!=None)
  8. {
  9. if (Ammo(Inv).AmmoAmount > 999)
  10. Ammo(Inv).AmmoAmount = 999;
  11. else if (Ammo(Inv).AmmoAmount < 999)
  12. if (P.IsInState('FeigningDeath')) <<<-----------
  13. Ammo(Inv).AmmoAmount += 10; <<<-----------
  14. else <<<-----------
  15. Ammo(Inv).AmmoAmount += 1; <<<-----------
  16. }
  17. if (P.Health < 1000)
  18. {
  19. if (P.IsInState('FeigningDeath'))
  20. P.Health = FMin(999, P.Health + (10 * 1));
  21. else
  22. P.Health = FMin(999, P.Health + 1);
  23. }
  24. if (P.bBlockPlayers == true)
  25. P.bBlockPlayers = false;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement