@name DJ BOOTH CAN SHOOTER
@model models/props_c17/pottery07a.mdl
@persist  Ents:array  Limit Ent:entity Y
@inputs A
entity():setMaterial("models/shadertest/shader4")
if (first()) {Y = 1 Limit = 1 A = 1
}
interval(800)
if (Y <= Limit) {
    if(A ==1){
  Ent = propSpawn("models/props_junk/PopCan01a.mdl",1)   
    Ent:propFreeze(0)
    Ent:setTrails(50,50,50, "trails/smoke",vec(randint(500),randint(500),randint(500)),255,255,255)
Ents[Y,entity] = Ent
Y++
}}
if(Y == 2){
Ents:propDelete()
Y = 0
}

