@name Prop Surfing e2 V2 By Cenn
@persist Ent:entity T G 
runOnTick(1)
if(first()){T = 1 G = 0}
if(owner():keyReload()){
    if(T == 1){
    Ent = propSpawn("models/props_c17/door01_left.mdl",owner():aimPos(),1)
    Ent:setAng(ang(90,90,0))
    Ent:propFreeze(0)
timer("spawn",500)
T = 0}}
if(clk("spawn")){T = 1}
if(owner():aimEntity():model() == "models/props_c17/door01_left.mdl"){
if(owner():weapon():type()=="weapon_physgun"){
if(owner():keyAttack1()){
G = 1}}}
if(owner():weapon():type()=="weapon_physgun"){
if(!owner():keyAttack1()){
if(G == 1){
Ent:propDelete()
G = 0}}}

