Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. @name jewfinder
  2. @inputs
  3. @outputs
  4. @persist [Plycount]:number
  5. @trigger
  6.  
  7. if(first()|dupefinished()){
  8.  
  9. Plycount = numPlayers()
  10.  
  11. foreach(K, V:entity = players()){
  12.  
  13. if(V != owner()){
  14.  
  15. holoCreate(K)
  16. holoModel(K,"cube")
  17. holoMaterial(K,"pp/sub")
  18. holoColor(K,vec(0,0,0))
  19.  
  20. holoParentAttachment(K,V,"chest")
  21. holoPos(K,V:boxCenterW())
  22.  
  23. holoScaleUnits(K,vec(13))
  24.  
  25. holoVisible(K,players(),0)
  26. holoVisible(K,owner(),1)
  27.  
  28. # PVP Check,
  29.  
  30. holoCreate(K+Plycount)
  31. holoModel(K+Plycount,"cube")
  32. holoMaterial(K+Plycount,"hlmv/debugmrmwireframe")
  33.  
  34. holoParent(K+Plycount,holoEntity(K))
  35. holoPos(K+Plycount,holoEntity(K):pos())
  36.  
  37. holoScaleUnits(K+Plycount,vec(13/2))
  38.  
  39. holoVisible(K+Plycount,players(),0)
  40. holoVisible(K+Plycount,owner(),1)
  41.  
  42. # PVP Solid Check but only in view,
  43.  
  44. holoCreate(K+Plycount*2)
  45. holoModel(K+Plycount*2,"cube")
  46. holoMaterial(K+Plycount*2,"skybox/sky_fake_white")
  47.  
  48. holoParent(K+Plycount*2,holoEntity(K))
  49. holoPos(K+Plycount*2,holoEntity(K):pos())
  50.  
  51. holoScaleUnits(K+Plycount*2,vec(13/2))
  52.  
  53. holoVisible(K+Plycount*2,players(),0)
  54. holoVisible(K+Plycount*2,owner(),1)
  55.  
  56. # So holos are only visible the the owner,
  57.  
  58. }
  59.  
  60. }
  61.  
  62. interval(60)
  63.  
  64. setName("generic"), hint("ESP active.",5)
  65.  
  66. }
  67.  
  68. if(clk() & entity():isValid()){
  69.  
  70. # Not needed, just a pvp check and cool spin,
  71.  
  72. foreach(K, V:entity = players()){
  73.  
  74. local PVPCheck = vec(255 - 255 * V:plyHasGod(),0 + 255 * V:plyHasGod(),0)
  75.  
  76. holoPos(K,V:boxCenterW()+vec(0,0,38)),holoColor(K+Plycount,PVPCheck),holoColor(K+Plycount*2,PVPCheck),holoAng(K,V:eyeAngles())
  77.  
  78. }
  79.  
  80. if(Plycount != numPlayers()){ holoDeleteAll(),reset() }, Plycount = numPlayers()
  81.  
  82. interval(60)
  83.  
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement