Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (P=Level.PawnList; P!=None; P=P.NextPawn)
- if (P.IsA('PlayerPawn'))
- {
- if (P.Health > 1)
- {
- for(Inv=P.Inventory; Inv!=None; Inv=Inv.Inventory)
- if (Ammo(Inv)!=None)
- {
- if (Ammo(Inv).AmmoAmount > 999)
- Ammo(Inv).AmmoAmount = 999;
- else if (Ammo(Inv).AmmoAmount < 999)
- if (P.IsInState('FeigningDeath')) <<<-----------
- Ammo(Inv).AmmoAmount += 10; <<<-----------
- else <<<-----------
- Ammo(Inv).AmmoAmount += 1; <<<-----------
- }
- if (P.Health < 1000)
- {
- if (P.IsInState('FeigningDeath'))
- P.Health = FMin(999, P.Health + (10 * 1));
- else
- P.Health = FMin(999, P.Health + 1);
- }
- if (P.bBlockPlayers == true)
- P.bBlockPlayers = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement