SHARE
TWEET

Super pig

a guest Feb 17th, 2020 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @name SuperPiggy
  2. @inputs
  3. @outputs
  4. @persist I
  5. @model models/hunter/blocks/cube05x1x05.mdl
  6.  
  7. if(first() | duped()) {
  8.  
  9. #body#
  10. holoCreate(1)
  11. holoScale(1, vec(2.5,4,2.5))
  12. holoColor(1, vec(250,190,190))
  13. holoParent(1, entity())
  14.  
  15. #head#
  16. holoCreate(2)
  17. holoScale(2, vec(2,2,2))
  18. holoColor(2, vec(250,190,190))
  19. holoParent(2, entity())
  20. holoPos(2, entity():pos() + entity():up()*20 + entity():right()*-20)
  21.  
  22. #cape#
  23. holoCreate(3)
  24. holoScale(3, vec(2,3.8,0.2))
  25. holoColor(3, vec(255,0,0))
  26. holoParent(3, entity())
  27. holoPos(3, entity():pos() + entity():up()*15 + entity():right()*14)
  28.  
  29. #mouth#
  30. holoCreate(4)
  31. holoScale(4, vec(0.5,0.2,0.2))
  32. holoColor(4, vec(255,180,120))
  33. holoParent(4, entity())
  34. holoPos(4, entity():pos() + entity():right()*-31 + entity():up()*18)
  35.  
  36. #left eye#
  37. holoCreate(5)
  38. holoScale(5, vec(0.4,0.4,0.4))
  39. holoColor(5, vec(0,0,255))
  40. holoParent(5, entity())
  41. holoPos(5, entity():pos() + entity():right()*-31 + entity():up()*25 + entity():forward()*-5)
  42.  
  43.  
  44. #right eye#
  45. holoCreate(6)
  46. holoScale(6, vec(0.4,0.4,0.4))
  47. holoColor(6, vec(0,0,255))
  48. holoParent(6, entity())
  49. holoPos(6, entity():pos() + entity():right()*-31 + entity():up()*25 + entity():forward()*5)
  50. holoEntity(3):setTrails(5,0,5,"trails/smoke",vec(255,255,255),255)
  51.  
  52. #Back right leg#
  53. holoCreate(7)
  54. holoPos(7, entity():pos() + entity():right()*15 + entity():forward()*9 + entity():up()*-20)
  55. holoScale(7, vec(1,1,2))
  56. holoParent(7, entity())
  57. holoColor(7, vec(250,190,190))
  58.  
  59. #Back left leg#
  60. holoCreate(8)
  61. holoPos(8, entity():pos() + entity():right()*15 + entity():forward()*-9 + entity():up()*-20)
  62. holoScale(8, vec(1,1,2))
  63. holoParent(8, entity())
  64. holoColor(8, vec(250,190,190))
  65.  
  66. #Front left leg#
  67. holoCreate(9)
  68. holoPos(9, entity():pos() + entity():right()*-15 + entity():forward()*9 + entity():up()*-20)
  69. holoScale(9, vec(1,1,2))
  70. holoParent(9, entity())
  71. holoColor(9, vec(250,190,190))
  72.  
  73. #Front right leg#
  74. holoCreate(10)
  75. holoPos(10, entity():pos() + entity():right()*-15 + entity():forward()*-9 + entity():up()*-20)
  76. holoScale(10, vec(1,1,2))
  77. holoParent(10, entity())
  78. holoColor(10, vec(250,190,190))
  79.  
  80.  
  81.  
  82.  
  83. runOnTick(1)
  84.  
  85. }
  86.  
  87.  
  88. timer("turn",100)
  89.  
  90. Ra = rangerOffset(10, holoEntity(7):pos(), holoEntity(7):up()*-1)
  91. Ra2 = rangerOffset(10, holoEntity(8):pos(), holoEntity(8):up()*-1)
  92. Ra3 = rangerOffset(10, holoEntity(9):pos(), holoEntity(9):up()*-1)
  93. Ra4 = rangerOffset(10, holoEntity(10):pos(), holoEntity(10):up()*-1)
  94.  
  95. entity():applyForce(entity():right()*-1000)
  96.  
  97. if(clk("turn")) {
  98. entity():applyAngForce(ang(0,random(100),0))
  99. }
  100.  
  101. if (Ra:hit()) {
  102. entity():applyForce(entity():up()*200)
  103. }
  104.  
  105. if (Ra2:hit()) {
  106. entity():applyForce(entity():up()*200)
  107. }
  108.  
  109. if (Ra3:hit()) {
  110. entity():applyForce(entity():up()*200)
  111. }
  112.  
  113. if (Ra4:hit()) {
  114. entity():applyForce(entity():up()*200)
  115. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top