@name 
@inputs Pod:wirelink Cam:wirelink
@outputs 
@persist 
@trigger 
runOnTick(1)
E = entity()
W = Pod["W",number]
A = Pod["A",number]
S = Pod["S",number]
D = Pod["D",number]
Space = Pod["Space",number]
Shift = Pod["Shift",number]
Mouse1 = Pod["Mouse1",number]

if(changed(W)){
 E:applyForce(vec(0,0,200))   
}

if(Mouse1){
    G = propSpawn("models/props_c17/oildrum001_explosive.mdl",E:pos() + vec(0,0,5),0)
    G:propBreak()
}


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

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

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

