@name Tf2 Rocket launch Ammut
@inputs 
@outputs 
@persist E:entity
@trigger 
@model models/sprops/rectangles/size_2/rect_12x12x3.mdl
if(first()){
    E = entity()
    E:setAlpha(0)
    holoCreate(1)
    holoModel(1,"models/props_doomsday/cap_point_small.mdl")
    holoScale(1,vec(0.2,0.2,0.2))
    holoCreate(2)
    holoModel(2,"models/props_doomsday/rocket_base_doomsday.mdl")
    holoPos(2,E:pos() + vec(0,0,12))
    holoScale(2,vec(0.05,0.05,0.05))
    holoCreate(3)
    holoModel(3,"models/props_doomsday/rocket_lid_doomsday.mdl")
    holoScale(3,vec(0.05,0.05,0.05))
    holoPos(3,E:pos() + vec(0,0,36))
    holoParent(3,2)

    timer("a1",500)
    timer("a2",5500)
    timer("a3",7000)
    timer("a4",11000)
    timer("a5",12000)
    timer("a6",13000)
    timer("a7",14000)
    timer("a8",15000)
        timer("a9",17000)
}
if(clk("a1")){
    E:soundPlay(1,3.8,"vo/announcer_sd_monkeynaut_end04.wav")
}

if(clk("a2")){
    E:soundPlay(2,20,"weapons/buff_banner_horn_blue.wav")
    soundPitch(2,150)
}

if(clk("a3")){
 E:soundPlay(3,2.85,"vo/announcer_sd_monkeynaut_end05.wav")
   
    
}

if(clk("a4")){
    E:soundPlay(4,5,"vo/announcer_begins_5sec.wav")
}
if(clk("a5")){
    E:soundPlay(4,5,"vo/announcer_begins_4sec.wav")
}
if(clk("a6")){
    E:soundPlay(4,5,"vo/announcer_begins_3sec.wav")
}
if(clk("a7")){
    E:soundPlay(4,5,"vo/announcer_begins_2sec.wav")
}
if(clk("a8")){
    E:soundPlay(4,5,"vo/announcer_begins_1sec.wav")
}
if(clk("a9")){
    E:soundPlay(4,10,"misc/doomsday_missile_launch.wav")
    
    timer("a10",1200)
}
if(clk("a10")){
holoPos(2,holoEntity(2):pos() + vec(0,0,7))
timer("a10",200)
}

if(holoEntity(2):pos():z() > 170){stoptimer("a10")
    timer("a11",1500)}

if(clk("a11")){
    stoptimer("a11")
    holoCreate(10)
       holoScale(10,vec(0.2,0.2,0.2))
    holoModel(10,"models/effects/splode.mdl")
    holoPos(10,holoEntity(2):pos())
 
    E:soundPlay(4,5,"misc/doomsday_missile_explosion.wav")
    timer("a12",5000)
    stoptimer("a11")
    
}

if(clk("a12")){
    stoptimer("a11")
    holoDelete(2)
    holoDelete(10)
    E:soundPlay(4,15,"vo/announcer_sd_monkeynaut_end_crash02.wav")
}

