Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. @name
  2. @inputs
  3. @outputs
  4. @persist S:entity I M:string ResultVar TargetVar A
  5. @trigger
  6. interval(100)
  7.  
  8. I+=3
  9. ResultVar-=(TargetVar-ResultVar)*-0.1
  10. if(first()){
  11. hint("MADE BY IMCHRIS",1000)
  12. M="phoenix_storms/fender_white"
  13. S=propSpawn("models/hunter/plates/plate2x2.mdl",1)
  14. S:setPos(entity():toWorld(vec(0,0,45)))
  15. S:setAng(ang(vec(0,0,90)))
  16. S:setAlpha(0)
  17. S:setMaterial("phoenix_storms/dome")
  18.  
  19. holoCreate(1,entity():toWorld(vec(0,0,45)))
  20. holoModel(1,"models/hunter/plates/plate2x2.mdl")
  21. holoAng(1,ang(vec(0,0,90)))
  22. holoMaterial(1,"cs_havana/white")
  23. holoAlpha(1,100)
  24.  
  25. holoCreate(2,entity():toWorld(vec(48,0,0)))
  26. holoScale(2,vec(1,2,16))
  27. #holoColor(2,vec(0,0,0))
  28. holoMaterial(2,M)
  29.  
  30.  
  31.  
  32. holoCreate(3,entity():toWorld(vec(-48,0,0)))
  33. holoScale(3,vec(1,2,16))
  34. #holoColor(3,vec(0,0,0))
  35. holoMaterial(3,M)
  36.  
  37.  
  38.  
  39. holoCreate(4,entity():toWorld(vec(0,0,98)))
  40. holoScale(4,vec(9,2,1))
  41. #holoColor(4,vec(0,0,0))
  42. holoMaterial(4,M)
  43.  
  44.  
  45.  
  46.  
  47. holoCreate(7,entity():toWorld(vec(46,-3,0)))
  48. holoScale(7,vec(1,1,1))
  49. #holoColor(2,vec(0,0,0))
  50. holoAlpha(7,0)
  51.  
  52. holoCreate(8,entity():toWorld(vec(-46,-3,0)))
  53. holoScale(8,vec(1,1,1))
  54. #holoColor(2,vec(0,0,0))
  55. holoAlpha(8,0)
  56.  
  57.  
  58. holoCreate(5,entity():toWorld(vec(22,-3,0)))
  59. holoScale(5,vec(4,0.1,15.3))
  60. #holoColor(2,vec(0,0,0))
  61. holoParent(5,7)
  62. holoMaterial(5,M)
  63.  
  64.  
  65.  
  66. holoCreate(6,entity():toWorld(vec(-22,-3,0)))
  67. holoScale(6,vec(4,0.1,15.3))
  68. #holoColor(2,vec(0,0,0))
  69. holoParent(6,8)
  70. holoMaterial(6,M)
  71.  
  72.  
  73. }
  74.  
  75.  
  76. if(S:getMaterial()=="phoenix_storms/dome"){
  77.  
  78.  
  79. A=0
  80.  
  81. }
  82. else{
  83.  
  84. A=1
  85.  
  86. }
  87.  
  88. if(A==1){
  89.  
  90. TargetVar=90
  91.  
  92. }
  93. else{
  94. TargetVar=0
  95.  
  96. }
  97.  
  98.  
  99. holoAng(7,ang(vec(0,ResultVar,0)))
  100.  
  101. holoAng(8,ang(vec(0,-ResultVar,0)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement