@name Rapid Rockets
@inputs 
@outputs 
@persist Inv:array
@trigger 
@model models/props_junk/PopCan01a.mdl
S=1.0
S1=0.9
timer("strip",1000*S1)
timer("equip",1000*S)
runOnLast(1)
runOnChat(1)
O=owner()

if(chatClk()&O:lastSaid()=="CF"){selfDestruct()} #cease fire and replace the inventory

if(first()){
    Inv=array()
    Inv:pushString("gmod_tool")
    Inv:pushString("weapon_physgun")
    Inv:pushString("weapon_crowbar")
    Inv:pushString("weapon_357")
    Inv:pushString("weapon_crossbow")
    Inv:pushString("weapon_pistol")
    Inv:pushString("weapon_shotgun")
    Inv:pushString("weapon_smg1")
    Inv:pushString("weapon_ar2")
    Inv:pushString("weapon_frag")
    Inv:pushString("weapon_rpg")
    Inv:pushString("gmod_camera")
    Inv:pushString("weapon_physcannon")
}
if(last()&O:isAlive()){
    for(C=1,Inv:count()){
        entSpawn(Inv[C,string],O:pos())
    }
}


if(O:isAlive()){
    if(clk("strip")){O:stripWeapons()}
    if(clk("equip")){entSpawn("weapon_rpg",O:pos())}

}


        
        
        

