Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.61 KB | None | 0 0
  1. @name Super Prop Power
  2. @inputs
  3. @outputs Ents:entity Ar:array Counter Sc T Op:vector
  4. @outputs Key2:vector Crouch:vector Key1:vector O:entity
  5. @outputs H1 H2 H3 H4 H5 Ec Col:vector
  6. @persist
  7. interval(10)
  8. if (duped() ) {reset()}
  9. if (first()) {hint("Made by perli555",7),
  10. hint("Instructions Have Been Printed Into Console",7)
  11. print(1," ")
  12. print(1," ")
  13. print(1," Super Prop Conreol Power")
  14. print(1," Made by perli555")
  15. print(1," ")
  16. print(1," Look at 1 of your props and press Use to select it"),
  17. print(1," Crouch to make the selected props move where you are looking"),
  18. print(1," Mouse1 to pull the selected props"),
  19. print(1," Mouse2 to push the selected props")
  20. print(1," Mouse2 and mouse1 to make the selected props fly up")
  21. print(1," ")
  22. print(1," ")
  23. }
  24. T+= 1
  25. Op = O:pos() + vec(0,0,60)
  26. O = owner()
  27.  
  28. Sc = O:aimEntity():radius()
  29. if (O:aimEntity():owner() == O &
  30. O:keyUse())
  31. {
  32. Ar:pushEntity(O:aimEntity())
  33. holoCreate(O:aimEntity():id(),O:aimEntity():pos(),
  34. vec(Sc,Sc,Sc) / 4,ang(),vec(0,255,0),"sphere3")
  35. holoAlpha(O:aimEntity():id(),abs(sin(T) * 70))
  36. holoParent(O:aimEntity():id(),O:aimEntity())
  37. O:aimEntity():setTrails(32,0,8,"trails/laser",vec(0,255,0),100)
  38. }
  39.  
  40. Counter++
  41. if (Counter > Ar:count()) {Counter = 1}
  42. Ents = Ar:entity(Counter)
  43. if (Ar:entity(Counter)==Ar:entity(Counter+1)) {Ar:removeEntity(Counter)}
  44. holoAlpha(Ents:id(),abs(sin(T) * 70))
  45. if (Ents == noentity()) {Ar:removeEntity(Counter)}
  46.  
  47. if (O:keyAttack1() & !O:keyAttack2() & !O:isCrouch())
  48. {Key1 = (Op - Ents:pos())
  49. Ents:applyForce((Key1 + $Key1) * Ents:mass() )
  50. holoColor(Ents:id(),vec(0,0,255)),H1=1} else {H1=0}
  51. if (!O:keyAttack1() & O:keyAttack2() & !O:isCrouch())
  52. {Key2 = (Ents:pos() - Op)
  53. Ents:applyForce((Key2 + $Key2) * Ents:mass() )
  54. holoColor(Ents:id(),vec(255,0,0)),H2=1} else {H2=0}
  55. if (!O:keyAttack1() & !O:keyAttack2() & O:isCrouch())
  56. {Crouch = (O:aimPos() - Ents:pos() )
  57. Ents:applyForce((Crouch + $Crouch) * Ents:mass() )
  58. holoColor(Ents:id(),vec(255,255,0)),H3=1} else {H3=0}
  59. if (O:keyAttack1() & O:keyAttack2() & !O:isCrouch())
  60. {Ents:applyForce(vec(0,0,500) * Ents:mass() )
  61. ,holoColor(Ents:id(),vec(255,0,255)),H4=1} else {H4=0}
  62. if (!O:keyAttack1() & !O:keyAttack2() & !O:isCrouch())
  63. {holoColor(Ents:id(),vec(0,255,0)),H5=1} else {H5=0}
  64.  
  65. if (changed(H1) & H1) {Col = vec(0,0,255)}
  66. if (changed(H2) & H2) {Col = vec(255,0,0)}
  67. if (changed(H3) & H3) {Col = vec(255,255,0)}
  68. if (changed(H4) & H4) {Col = vec(255,0,255)}
  69. if (changed(H5) & H5) {Col = vec(0,255,0)}
  70. if (changed(H1)|changed(H2)|changed(H3)|changed(H4)|changed(H5)) {
  71. Ar:entity(1):setTrails(32,0,1,"trails/laser",Col,255)
  72. Ar:entity(2):setTrails(32,0,1,"trails/laser",Col,255)
  73. Ar:entity(3):setTrails(32,0,1,"trails/laser",Col,255)
  74. Ar:entity(4):setTrails(32,0,1,"trails/laser",Col,255)
  75. Ar:entity(5):setTrails(32,0,1,"trails/laser",Col,255)
  76. Ar:entity(6):setTrails(32,0,1,"trails/laser",Col,255)
  77. Ar:entity(7):setTrails(32,0,1,"trails/laser",Col,255)
  78. Ar:entity(8):setTrails(32,0,1,"trails/laser",Col,255)
  79. Ar:entity(9):setTrails(32,0,1,"trails/laser",Col,255)
  80. Ar:entity(10):setTrails(32,0,1,"trails/laser",Col,255)
  81. Ar:entity(11):setTrails(32,0,1,"trails/laser",Col,255)
  82. Ar:entity(12):setTrails(32,0,1,"trails/laser",Col,255)
  83. Ar:entity(13):setTrails(32,0,1,"trails/laser",Col,255)
  84. Ar:entity(14):setTrails(32,0,1,"trails/laser",Col,255)
  85. Ar:entity(15):setTrails(32,0,1,"trails/laser",Col,255)
  86. Ar:entity(16):setTrails(32,0,1,"trails/laser",Col,255)
  87. Ar:entity(17):setTrails(32,0,1,"trails/laser",Col,255)
  88. Ar:entity(18):setTrails(32,0,1,"trails/laser",Col,255)
  89. Ar:entity(19):setTrails(32,0,1,"trails/laser",Col,255)
  90. Ar:entity(20):setTrails(32,0,1,"trails/laser",Col,255)
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement