@name Bonus Spook
@inputs 
@outputs 
@persist M1 A1 SOUND
@trigger 
@model models/Gibs/HGIBS.mdl
interval(1)
ENT=entity()
O=owner()
EYE=owner():eyeAngles()*ang(0.7,1,1)+ang(0,0,-M1)
X=O:velL()*2*O:inertia()+ENT:inertia()
if(first()){
holoCreate(1,ENT:pos())
holoParent(1,ENT)
holoModel(1,"models/player/items/demo/demo_ttg_max.mdl")
holoCreate(2,ENT:pos()+vec(0,0,-5))
holoParent(2,ENT)
holoModel(2,"models/player/items/demo/japan_hachimaki.mdl")
holoCreate(3,ENT:pos()+vec(0,0,-2))
holoParent(3,ENT)
holoModel(3,"models/player/items/sniper/c_bet_brinkhood.mdl")
holoCreate(7,ENT:toWorld(vec(0,0,-20)))
holoParent(7,ENT)
holoModel(7,"models/effects/resist_shield/resist_shield.mdl")
holoCreate(8,ENT:toWorld(vec(0,0,-20)))
holoParent(8,ENT)
holoModel(8,"models/effects/cappoint_hologram.mdl")
holoCreate(9,ENT:toWorld(vec(0,0,-10)))
holoParent(9,ENT)
holoModel(9,"models/props_lakeside_event/wof_plane.mdl")
holoAng(9,ang(0,90,-90))
holoCreate(10,ENT:toWorld(vec(0,0,-1)))
holoParent(10,ENT)
holoModel(10,"models/pac/jiggle/base_jiggle_1.mdl")
holoAng(10,ang(-90,0,0))
holoCreate(11,ENT:toWorld(vec(0,0,-1)))
holoParent(11,ENT)
holoModel(11,"models/buildables/p2rec_placed.mdl")
holoAng(11,ang(-0,0,0))
holoCreate(12,ENT:pos())
holoParent(12,ENT)
holoModel(12,"models/player/items/spy/dust_mask.mdl")
holoScale(2,vec(1.2,1.2,1.2))
holoScale(7,vec(0.7,0.7,0.5))
holoScale(8,vec(0.3,0.3,0.4))
holoScale(9,vec(0.1,0.1,0.1))
holoScale(12,vec(1.5,1.5,1.5))
holoScale(11,vec(0.01,0.01,0.01))}
ENT:setPos(O:toWorld(X+vec(70,50+M1,19)))
ENT:setAng(EYE)
if(M1>7){
A1-=0.1}
if(M1<-7){
A1+=0.1}
if(A1>1){M1+=0.2}
if(A1<1){M1-=0.2}
SOUND+=1

    S = array(
    "npc/headcrab/idle1.wav",
    "npc/headcrab/idle2.wav",
    "npc/headcrab/idle3.wav",
    "npc/headcrab_fast/idle1.wav",
    "npc/headcrab_fast/idle2.wav")
if(SOUND>359)
{
   SOUND=0
    
    ENT:soundPlay(11,5,S[randint(1,S:count()),string])
    soundPitch(11,random(80,200))
}
holoAlpha(12,0)
holoColor(8,vec(0,200,200))
holoColor(3,vec(0,0,0))
holoAng(8,ang(0,SOUND,0))
holoColor(7,vec(0,0,200))
if(O:keyPressed("n")){
ENT:soundPlay(12,5,"npc/fast_zombie/fz_scream1.wav")
soundPitch(12,random(80,100))
holoAlpha(12,255)
holoColor(8,vec(255,0,0))
holoColor(3,vec(255,0,0))}

