@name 
@inputs 
@outputs 
@persist Ent:entity T
@trigger 
runOnTick(1)
  if(first()){T = 0}
if (owner():weapon():type()=="weapon_physgun"){
    if(owner():keyAttack1()){
T = 1
}}

 if (owner():weapon():type()=="weapon_physgun"){
    if(!(owner():keyAttack1())){
        if(T == 1){
        Ent:propDelete()
}}}

if(owner():weapon():type()=="weapon_physgun"){
    if(changed(owner():keyReload())){
Ent = propSpawn("models/props_c17/door01_left.mdl",owner():aimPos(),1)
}}
