@name E2 FireWork By croco
@inputs 
@outputs 
@persist E:entity
@trigger 

if(first()){
    
    holoCreate(1)
    holoModel(1,"models/props_phx/misc/flakshell_big.mdl")
    holoPos(1,vec(99999,99999,99999))
    holoMaterial(1,"phoenix_storms/gear")
    holoScale(1,vec(0.9555,0.9555,0.9555))}
runOnTick(1)
runOnChat(1)
if (chatClk(owner())) {
    Array = owner():lastSaid():lower():explode(" ")   
    if (Array[1,string] == "/l") {
    hideChat(1)
E = propSpawn("models/props_c17/oildrum001_explosive.mdl",entity():pos() + vec(0,0,50),1)
F = propSpawn("models/props_junk/PopCan01a.mdl",entity():pos() + vec(0,10,50),1)
F:setTrails(255,255,255,"trails/physbeam",vec(255,255,255),255,255,255)
F:propFreeze(0)
F:propFreeze(0)
F:weld(E)
F:setMass(1)
G = propSpawn("models/props_junk/PopCan01a.mdl",entity():pos() + vec(0,-10,50),1)
G:setTrails(255,255,255,"trails/physbeam",vec(255,255,255),255,255,255)
G:propFreeze(0)
G:propFreeze(0)
G:weld(E)
G:setMass(1)
H = propSpawn("models/props_junk/PopCan01a.mdl",entity():pos() + vec(10,0,50),1)
H:setTrails(255,255,255,"trails/physbeam",vec(255,255,255),255,255,255)
H:propFreeze(0)
H:propFreeze(0)
H:weld(E)
H:setMass(1)
I = propSpawn("models/props_junk/PopCan01a.mdl",entity():pos() + vec(-10,0,50),1)
I:setTrails(255,255,255,"trails/physbeam",vec(255,255,255),255,255,255)
I:propFreeze(0)
I:propFreeze(0)
I:weld(E)
I:setMass(1)
    E:setMaterial("phoenix_storms/gear")
   E:propFreeze(0)
E:setTrails(255,255,255,"trails/physbeam",vec(255,255,255),255,255,255)
holoPos(1,entity():pos() + vec(0,0,75))
holoParent(1,E)
E:applyForce(vec(0,0,1000000))
timer("test",3000)
}}
if(clk("test"))
{ E:propBreak()
selfDestructAll()}


