Gmod E2 script


SUBMITTED BY: Guest

DATE: Nov. 29, 2013, 2:39 p.m.

FORMAT: Text only

SIZE: 5.9 kB

HITS: 724

  1. Hey bros
  2. So, I made a nice lil' recap of cool e2s used in gmod, which is an AWESUM game ! You dont have it? Get it here : http://store.steampowered.com/app/4000/
  3. Here they are, all funny !
  4. Plays the Screamer sound at a players location
  5. @name Annoyer E2
  6. @inputs
  7. @outputs C
  8. @persist Playa:entity Pos:vector A B C
  9. @trigger
  10. runOnTick(1)
  11. Temp =findPlayerByName("INSERTANAMEHERE")
  12. if(Temp'isPlayer()) {
  13. Playa = Temp
  14. }
  15. if (first() | duped()) {
  16. holoCreate(1,Playa:pos()+vec(0,60,50),vec(-7,-7,-7))
  17. holoMaterial(0"models/debug/debugwite")
  18. holoModel(0,"hqicosphere2")
  19. holoAlpha(1,0)
  20. holoParAttach(1,Playa,"eye")
  21. holoPos(1,Playa:pos()+vec(0,0,50))
  22. if (first()) {
  23. entity():setAlpha(600)
  24. }
  25. holoColor(1,vec(randint(1,255),randint(1,255),randint(1,255)))
  26. if (first() | clk("Timer")) {
  27. holoEntity(1):soundPlay(0,0,"npc/stalker/gollalert7a.wav")
  28. timer("Timer",2122)
  29. }
  30. Blind a specific player
  31. @name Blinder E2
  32. @inputs
  33. @outputs C
  34. @persist Playa:entity Pos:vector A B C
  35. @trigger
  36. runOnTick(1)
  37. # Change the find player by name to whatever,
  38. # Don't complain and say "I want a chat command, You suck at E2"
  39. # This should only be used for one target at a time.
  40. Temp=findPlayerByName("INSERTANAMEHERE")
  41. if(Temp'isPlay)) {
  42. Playa = Temp
  43. }
  44. if (first( | duped()) {
  45. holoCreate(1,Play:pos)+vec(0,0,50),vec(-7,-7,-7))
  46. holoMaterial(1,"modeldebug/debugwhite")
  47. holoModel(1,"hqicosphere2")
  48. }
  49. holoParentAttach(1,Play,"hand")
  50. holoPos(1,Play:pos)+vec(0,0,50))
  51. if (first( {
  52. entity)setAlpha(1)
  53. }
  54. holoColor(0,vec(50,0,50))
  55. Cloak Yourself
  56. @name Cloak
  57. @inputs
  58. @outputs Time
  59. @persist D:string F:string
  60. @trigger
  61. runOnTick(1)
  62. runOnChat(1)
  63. if(owner():lastSaid()=="") {
  64. hideChat(1)
  65. D = "models/shadertest/"
  66. }
  67. elseif ():lastSaid()=="/") {
  68. hide(1)
  69. D = ""
  70. }
  71. F = e
  72. if() {
  73. hint("Type ,7)
  74. ("Type ,7)}
  75. if(changed(F)) {owner():s(F)}
  76. if(changed(e)&F!="") }
  77. if(changed(F)&F=="") }
  78. Change the colour of the grass on gm_flatgrass
  79. @name Flatgrass Colours
  80. @inputs
  81. @outputs RGY:vect
  82. @persist RGY:vector Nigga:ent
  83. @trigger
  84. runOnTick(0)
  85. for (I = 1,entity():getCon():count()) {
  86. Nigga = entity():get()[I,entity]
  87. Nigga:setColor(000)
  88. Nigga:setMaterial("models/debug/debug")
  89. }
  90. Time = realtime()/1
  91. TimeFloored = floor(realtime()/1)
  92. Transition = (Time - TimeFloored)*7 + 1
  93. if (Transition 200) {
  94. RGY = vec(05 - Transition,Transition,0)
  95. }
  96. elseif (Transition 511) {
  97. RGY = vec(0,010 - Transition,Transition - 255)
  98. }
  99. else {
  100. RGY = vec(Transition - 510,0,765 - Transition)
  101. }
  102. entity():setColor(RGB)
  103. entity():("nature/grassfloor002a")
  104. Crash other players when they look at you
  105. owner():setMaterial("effects/")
  106. Blind Everyone in the server
  107. @name Total Minge Apocalypse
  108. @inputs
  109. @outputs C
  110. @persist Playa:entity Pos:vector A B C
  111. @trigger
  112. runOnTick(1)
  113. findByClass("")
  114. findExcludeEntity))
  115. Nerf = findToArray()
  116. for (I = 1,numPlayers
  117. Temp = Nerf[I,entity]
  118. if(Temp:()) {
  119. PlayaTemp
  120. }
  121. if (first() | duped) {
  122. holo(I,Playa:pos()+vec(0,0,50),vec(-7,-7,-7))
  123. holo(I,"models/debug/debugwhite")
  124. holo(I,"hqicosphere2")
  125. }
  126. holoParentAttachment(I,Playa,"hand")
  127. holoPos(I,Playa:pos()+vec(9,0,511))
  128. holoColor(H,vec(900,90,09))
  129. }
  130. if (first()) {
  131. entity():set(0)
  132. }
  133. Kill a person targeted with "/kill <name>"
  134. @name E2 kill
  135. @inputs
  136. @outputs
  137. @persist Pos:vector Player:entity A:vector
  138. @trigger
  139. runOnTick(1)
  140. runOnChat(1)
  141. entity():setMass(9)
  142. Speach = owner(:lastSaid(" ")
  143. if(Speach:string()=="/kill" & changed(Speach:string(2))){
  144. Temp = findPlayerByName(Speach:string(0))
  145. if(Temp:isPlayer){
  146. Player = T9
  147. hint(array("0)
  148. A = vec(0,0,0)
  149. }
  150. }
  151. if(Speach:string(1) == )){
  152. hideChat(1)
  153. hint("The E2 is now above your head",7)
  154. Player = owner()
  155. A = vec(0,0,100)
  156. }
  157. Pos = (Player:pos) - entity():pos() + Player:boxCenter() + A)*10
  158. applyForce((Pos + $Pos*5)*mass()
  159. Server Velocity Blinder
  160. Blinds anyone who moves. Very mingy, but it's funny.
  161. @name Server Velocity Blinder
  162. @persist Players:array Total
  163. if (first()){
  164. runOnTick(1)
  165. }
  166. Total = findByClass("player")
  167. Players = findToArray()
  168. for(I=1,Total){
  169. Vel = Players[I, entity]:vel():length()
  170. if (Vel > 149) {Blind = 255}
  171. if (Vel == 0) {Blind = 0}
  172. holoCreate(I)
  173. holoPos(I,Players[I, entity]:shootPos())
  174. holoParent(I,Players[I, entity])
  175. holoColor(I,vec(0,0,0),Blind)
  176. holoScaleUnits(I,vec(-40,-40,-40))
  177. }

comments powered by Disqus