Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Josephs Slime
- @model models/hunter/blocks/cube075x075x075.mdl
- @persist [Ang]:angle I
- #CHAT COMMANDS AT THE BOTTOM OF THE CODE.
- runOnTick(1)
- runOnChat(1)
- Owner=owner()
- LastSaid=Owner:lastSaid():lower():explode(" ")
- LastSaid1=LastSaid:string(1)
- LastSaid2=LastSaid:string(2)
- if ( first() ) { holoCreate(1)
- entity():setAlpha(0)
- #Main slime bod
- holoCreate(1)
- holoScale(1,vec(3,3,3))
- holoMaterial(1,"models/shiny")
- holoModel(1,"hq_cube")
- holoAlpha(1,(100))
- holoColor(1,vec(0,255,0))
- holoParent(1,entity())
- # Right eye
- holoCreate(2)
- holoScale(2,vec(1,0.1,1.5))
- holoMaterial(2,"models/shiny")
- holoPos(2,entity():toWorld(vec(9,-18.5,6)))
- holoColor(2,vec(0,85,0))
- holoParent(2,1)
- #left eye
- holoCreate(3)
- holoScale(3,vec(1,0.1,1))
- holoMaterial(3,"models/shiny")
- holoPos(3,entity():toWorld(vec(-9,-18,6)))
- holoColor(3,vec(0,100,0))
- holoParent(3,1)
- #Mouth
- holoCreate(4)
- holoScale(4,vec(0.5,0.1,0.5))
- holoMaterial(4,"models/shiny")
- holoPos(4,entity():toWorld(vec(-1,-18,-5)))
- holoColor(4,vec(0,100,0))
- holoParent(4,1)
- #Inner slime cub (Guts)
- holoCreate(5)
- holoScale(5,vec(1.8,1.8,1.8))
- holoMaterial(5,"models/shiny")
- holoColor(5,vec(0,200,0))
- holoAlpha(5,(155))
- holoParent(5,1)
- timer("jump",100)
- }
- #freezes/unfreezes the prop inside the holo
- entity():propFreeze(0)
- #Makes the Slime hop
- if(clk("jump")){
- timer("jump",randint(2000,5000))
- entity():applyForce(entity():up()*5000)
- entity():applyForce(entity():right()*5000)
- soundPlay(1,0,"ambient/water/drip" + randint(4) + ".wav")
- if(!I){
- I=1
- }
- }
- if(I){
- Ang=-ang(entity():angles():pitch(),0,entity():angles():roll())
- entity():applyAngForce((Ang+$Ang*5)*entity():mass()*10)
- }
- #CHAT COMMANDS~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (chatClk(Owner)) {
- if (LastSaid1=="/current") {
- Command1=LastSaid:clone()
- Command1:shift()
- Command=Command1:concat(" ")
- concmd(Command)
- hint("Now running command: \""+Command+"\"",5)
- } # Requires wire_expression2_concmd to be set to 1
- }
- if(chatClk(owner())){
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement