@name 
@inputs Pod:wirelink Cam:wirelink 
@outputs 
@persist TT E:entity
@trigger 
@model models/hunter/blocks/cube4x6x2.mdl
interval(3000)
if(first()){
    
    E = entity()
    entity():setAng(ang(0,90,0))
    entity():setPos(entity():pos() + vec(0,0,30))
    entity():setAlpha(0)
    holoCreate(1)
    holoModel(1,"models/bots/boss_bot/boss_tank.mdl")
    holoPos(1,entity():pos() + vec(0,0,-25))
    holoAng(1,ang(0,90,0))
holoParent(1,entity())  

  holoCreate(2)
    holoModel(2,"models/bots/boss_bot/tank_track.mdl")
    holoPos(2,entity():pos() + vec(0,0,-25))
    holoAng(2,ang(0,90,0))
    holoParent(2,1)
    
  holoAnim(1,2)  
    holoCreate(3)
    holoModel(3,"models/bots/boss_bot/tank_track.mdl")
        holoPos(3,entity():pos() + vec(-110,0,-25))
    holoAng(3,ang(0,90,0))
    holoParent(3,1)
}




Ang = Pod["Entity",entity]:driver():eyeAngles()

W = Pod["W",number]
A = Pod["A",number]
S = Pod["S",number]
D = Pod["D",number]
Space = Pod["Space",number]
Shift = Pod["Shift",number]

Cam["Angle",angle] = E:angles()

Cam["Position",vector] = E:pos()+vec(-100,0,50):rotate(E:angles())

Cam["Activated",number] = Pod["Active",number]

ACTIVE = Pod["Active",number]

E:applyForce(E:forward()*(W-S)*E:mass()*200)

E:applyForce(E:right()*(D-A)*E:mass()*100)

E:applyForce(E:up()*(Space-Shift)*E:mass()*100)

E:applyForce(-E:vel()*E:mass()/7.5)

if(!ACTIVE){
   if(TT == 0){
runOnTick(0)
   holoAnim(1,1)

}
}

if(ACTIVE){
    TT = 1
    holoAnim(1,2)
}
else{TT = 0}

