@name Slime V3 Final
@model models/hunter/blocks/cube075x075x075.mdl
@persist [Ang]:angle I E:entity
#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)
}


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())){
    if(owner():lastSaid()=="!b"){
        holoColor(5,vec(0,0,255))
        holoColor(1,vec(0,0,255))
        holoColor(2,vec(10,8,130))
        holoColor(3,vec(10,8,130))
        holoColor(4,vec(10,8,130))
        hideChat(1)
    }
    
    if(owner():lastSaid()=="!r"){
        holoColor(5,vec(255,0,0))
        holoColor(1,vec(255,0,0))
        holoColor(2,vec(142,7,7))
        holoColor(3,vec(142,7,7))
        holoColor(4,vec(142,7,7))
        hideChat(1)
    }    
    
    if(owner():lastSaid()=="!normal"){
        holoColor(1,vec(0,255,0))
        holoColor(2,vec(0,85,0))
        holoColor(3,vec(0,100,0))
        holoColor(4,vec(0,100,0))
        holoColor(5,vec(0,255,0))    
    
    }

    }




if(tickClk()){    E:applyAngForce(ang(randvec(0,360))*100999)}

