Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. @name Josephs Slime
  2. @model models/hunter/blocks/cube075x075x075.mdl
  3. @persist [Ang]:angle I
  4. #CHAT COMMANDS AT THE BOTTOM OF THE CODE.
  5. runOnTick(1)
  6. runOnChat(1)
  7. Owner=owner()
  8. LastSaid=Owner:lastSaid():lower():explode(" ")
  9. LastSaid1=LastSaid:string(1)
  10. LastSaid2=LastSaid:string(2)
  11. if ( first() ) { holoCreate(1)
  12.  
  13. entity():setAlpha(0)
  14. #Main slime bod
  15. holoCreate(1)
  16. holoScale(1,vec(3,3,3))
  17. holoMaterial(1,"models/shiny")
  18. holoModel(1,"hq_cube")
  19. holoAlpha(1,(100))
  20. holoColor(1,vec(0,255,0))
  21. holoParent(1,entity())
  22. # Right eye
  23. holoCreate(2)
  24. holoScale(2,vec(1,0.1,1.5))
  25. holoMaterial(2,"models/shiny")
  26. holoPos(2,entity():toWorld(vec(9,-18.5,6)))
  27. holoColor(2,vec(0,85,0))
  28. holoParent(2,1)
  29. #left eye
  30. holoCreate(3)
  31. holoScale(3,vec(1,0.1,1))
  32. holoMaterial(3,"models/shiny")
  33. holoPos(3,entity():toWorld(vec(-9,-18,6)))
  34. holoColor(3,vec(0,100,0))
  35. holoParent(3,1)
  36. #Mouth
  37. holoCreate(4)
  38. holoScale(4,vec(0.5,0.1,0.5))
  39. holoMaterial(4,"models/shiny")
  40. holoPos(4,entity():toWorld(vec(-1,-18,-5)))
  41. holoColor(4,vec(0,100,0))
  42. holoParent(4,1)
  43. #Inner slime cub (Guts)
  44. holoCreate(5)
  45. holoScale(5,vec(1.8,1.8,1.8))
  46. holoMaterial(5,"models/shiny")
  47. holoColor(5,vec(0,200,0))
  48. holoAlpha(5,(155))
  49. holoParent(5,1)
  50. timer("jump",100)
  51. }
  52. #freezes/unfreezes the prop inside the holo
  53. entity():propFreeze(0)
  54. #Makes the Slime hop
  55. if(clk("jump")){
  56. timer("jump",randint(2000,5000))
  57. entity():applyForce(entity():up()*5000)
  58. entity():applyForce(entity():right()*5000)
  59. soundPlay(1,0,"ambient/water/drip" + randint(4) + ".wav")
  60. if(!I){
  61. I=1
  62. }
  63. }
  64.  
  65. if(I){
  66. Ang=-ang(entity():angles():pitch(),0,entity():angles():roll())
  67. entity():applyAngForce((Ang+$Ang*5)*entity():mass()*10)
  68. }
  69. #CHAT COMMANDS~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  70. if (chatClk(Owner)) {
  71. if (LastSaid1=="/current") {
  72. Command1=LastSaid:clone()
  73. Command1:shift()
  74. Command=Command1:concat(" ")
  75. concmd(Command)
  76. hint("Now running command: \""+Command+"\"",5)
  77. } # Requires wire_expression2_concmd to be set to 1
  78. }
  79. if(chatClk(owner())){
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement