Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. @name X-Cube
  2. @inputs
  3. @outputs
  4. @persist Ang
  5. @trigger
  6. @model models/hunter/blocks/cube025x025x025.mdl
  7. E = entity()
  8. O = owner()
  9. runOnTick(1)
  10. if(first()){
  11. Ang = 1
  12. E:setTrails(20,20,1,"trails/laser",vec(255,0,255),255)
  13. }
  14.  
  15. if(owner():keyPressed("z")){
  16. E:setPos(E:toWorld(vec(0,10,0)))
  17. }
  18.  
  19. if(owner():keyPressed("q") && owner():keyPressed("z")){
  20. Ang += 1
  21. E:setAng(ang(0,Ang,0))
  22. E:setPos(E:toWorld(vec(0,5,0)))
  23. }
  24.  
  25. if(owner():keyPressed("d") && owner():keyPressed("z")){
  26. Ang += -1
  27. E:setAng(ang(0,Ang,0))
  28. E:setPos(E:toWorld(vec(0,5,0)))
  29. }
  30.  
  31. if(owner():keyPressed("a")){
  32. Ang += 1.5
  33. E:setAng(ang(0,Ang,0))
  34. }
  35.  
  36. if(owner():keyPressed("d")){
  37. Ang += -1.5
  38. E:setAng(ang(0,Ang,0))
  39. }
  40.  
  41.  
  42. if(owner():keyPressed("s")){
  43. E:setPos(E:toWorld(vec(0,-10,0)))
  44. }
  45.  
  46.  
  47. if(owner():keyJump()){
  48. E:setPos(E:toWorld(vec(0,0,10)))
  49. }
  50.  
  51. if(owner():keyJump() && owner():keyPressed("z")){
  52. E:setPos(E:toWorld(vec(0,5,10)))
  53. }
  54.  
  55. if(owner():keyJump() && owner():keyPressed("s")){
  56. E:setPos(E:toWorld(vec(0,-5,10)))
  57. }
  58.  
  59. if(owner():keySprint()){
  60. E:setPos(E:toWorld(vec(0,0,-10)))
  61. }
  62.  
  63.  
  64. if(owner():keySprint() && owner():keyPressed("z")){
  65. E:setPos(E:toWorld(vec(0,5,-10)))
  66. }
  67.  
  68. if(owner():keySprint() && owner():keyPressed("s")){
  69. E:setPos(E:toWorld(vec(0,-5,-10)))
  70. }
  71.  
  72.  
  73. if(owner():keyWalk() && owner():keyPressed("z")){
  74. E:setPos(E:toWorld(vec(0,20,0)))
  75. }
  76.  
  77. if(owner():keyPressed("q") && owner():keyWalk() && owner():keyPressed("z")){
  78. Ang += 0.01
  79. E:setAng(ang(0,Ang,0))
  80. E:setPos(E:toWorld(vec(0,15,0)))
  81. }
  82.  
  83. if(owner():keyPressed("d") && owner():keyWalk() && owner():keyPressed("z")){
  84. Ang += -0.01
  85. E:setAng(ang(0,Ang,0))
  86. E:setPos(E:toWorld(vec(0,15,0)))
  87. }
  88.  
  89.  
  90. if(owner():keyWalk() && owner():keyPressed("z") && owner():keyJump()){
  91. E:setPos(E:toWorld(vec(0,10,20)))
  92. }
  93.  
  94. if(owner():keyWalk() && owner():keyPressed("z") && owner():keySprint()){
  95. E:setPos(E:toWorld(vec(0,10,-20)))
  96. }
  97. #it's for Max ;p this is just a cube but it's nice
  98. #That work with a specific angle press alt + e to sit on Z = forward Q = left S = back D = right :p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement