Advertisement
Artem78

Военные атакуют нападающих

Oct 11th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. {$CLEO}
  2.  
  3. thread "ARMY_DOCKS"
  4.  
  5. 5@ = 0 // find_next
  6. while true
  7. wait 0
  8. if
  9. Player.Defined($PLAYER_ACTOR)
  10. then
  11. Actor.StorePos($PLAYER_ACTOR, 10@, 11@, 12@)
  12. if
  13. 0AE1: 1@ = random_actor_near_point 10@ 11@ 12@ in_radius 50.0 find_next 5@ pass_deads 1
  14. then
  15. if and
  16. Actor.Model(1@) == 300
  17. 031D: actor 1@ hit_by_weapon 57
  18. then
  19. 0A96: 2@ = actor 1@ struct
  20. 2@ += 0x764
  21. 0A8D: 3@ = read_memory 2@ size 4 virtual_protect 0
  22. if
  23. 3@ > 0
  24. then
  25. 0A8C: write_memory 2@ size 4 value 0 virtual_protect 0
  26. 0AEA: 4@ = actor_struct 3@ handle
  27. 01B2: give_actor 1@ weapon 22 ammo 99999
  28. 05E2: AS_actor 1@ kill 4@
  29. end
  30. end
  31.  
  32. 5@ = 1
  33. else
  34. 5@ = 0
  35. end
  36. end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement