@name Tank Shooter
@inputs Shoot
@persist Ps:entity E:entity
@trigger all

if(first()){
runOnTick(1)
propSpawnEffect(0)    

E = entity()
}


if(~Shoot & Shoot){
Ps:propBreak()
Ps = propSpawn("models/props_phx/misc/potato_launcher_explosive.mdl",E:pos(),E:angles() + ang(90,0,0),0) 
Ps:setMaterial("models/props_pipes/pipeset_metal")   
}

