Aryanne_Hobs

E 2 Sphere_Protector_2.0

Jan 7th, 2017
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. @name Sphere Protector 2.0
  2. @persist [O E P]:entity V:array Yolo:array
  3. interval(100)
  4.  
  5.  
  6. O = owner()
  7. E = entity()
  8. L = players()
  9.  
  10.  
  11.  
  12. if(first()) {
  13. E:setAlpha(255)
  14. holoCreate(1, entity():pos())
  15. holoCreate(2, entity():pos())
  16. holoModel(1, "hq_sphere")
  17. holoModel(2, "hq_sphere")
  18. holoMaterial(1, "temp/bot_worker_track_blue")
  19. holoMaterial(2, "models/shadertest/shader3")
  20. holoScale(1, vec(-50))
  21. holoScale(2, vec(50))
  22. }
  23.  
  24. holoParent(1, E)
  25. holoPos(1, E:pos()+vec(0,0,10))
  26. holoParent(2, E)
  27. holoPos(2, E:pos()+vec(0,0,10))
  28. interval(100)
  29.  
  30. A=findToArray()
  31. findInSphere(E:pos(),300)
  32. findByClass("player")
  33. findByClass("npc_*")
  34. findByClass("physics_*")
  35.  
  36. foreach(K,V:entity=A){
  37. if(
  38. V:owner() != owner()&
  39. V:name() != "Ashly Costello" &
  40. V:name() != "Scrat0n" &
  41. V:name() != "SpitFire" &
  42. V:name() != "Stick" &
  43. V:name() != "Ko$t" &
  44. V:name() != "skarfox" &
  45. V:name() != "*****nator :3" &
  46. V:name() != "Koko" &
  47. V:pos():distance(E:pos())<250
  48. &!V:isAdmin() &
  49. !V:isSuperAdmin()
  50. ){
  51. R=random(8000-10000)%10000
  52. V:plySetPos(entity():pos()+vec(0,0,R))
  53. }
  54. }
Add Comment
Please, Sign In to add comment