@name BONK! Atomic Punch by Abysal Rush
@persist Space Time T
runOnTick(1)
if(first()){print("By Abysal Rush. Make sure wire_expression2_concmd is set to 1!")
    }
O = owner()
Trail = "trails/tube"
Speed = 500
Wep = O:weapon():type()
For=keyDown(8)-keyDown(16)
Space=keyDown(2)
if (Wep=="weapon_hands"&changed(Wep)){
    O:setTrails(85,65,0.25,Trail,vec(255,0,0),255) 
    concmd("say I AM A FRICKIN' BLUR HERE!")
    O:soundPlay(1,5,"player/pl_scout_dodge_can_open.wav")
    Time = realtime()
}
elseif (Wep!="weapon_hands"&changed(Wep)){
    O:removeTrails()
}

if (Wep=="weapon_hands"){
    T = -(floor(Time - realtime()))
    if (T == 3 & $T){O:soundPlay(6,5,"player/pl_scout_dodge_can_drink.wav")}
    if (T == 5 & $T){O:soundPlay(6,5,"player/pl_scout_dodge_can_crush.wav")}
    if (T == 6 & $T){O:soundPlay(6,5,"vo/burp04.wav")}
    O:applyPlayerForce(O:eye():setZ(0)*Speed*For)
        if(O:isCrouch()){
            O:applyPlayerForce(O:eye():setZ(0)*(Speed/2)*For)
        }
        if(Space&$Space){
            O:applyPlayerForce(O:eye():setZ(0)*-100)   
            Rand2= randint(1,5)
            if(Rand2==1){O:soundPlay(2,5,"vo/scout_apexofjump01.wav")}
            if(Rand2==2){O:soundPlay(2,5,"vo/scout_apexofjump02.wav")}
            if(Rand2==3){O:soundPlay(2,5,"vo/scout_apexofjump03.wav")}
            if(Rand2==4){O:soundPlay(2,5,"vo/scout_apexofjump04.wav")}
            if(Rand2==5){O:soundPlay(2,5,"vo/scout_apexofjump05.wav")}
        }
        if(Space){
            O:applyPlayerForce(vec(0,0,0))
        }
    Rand = randint(0,150)
    timer("rand",500)
        if (clk("rand")){
            timer("rand",500)
                if (Rand == 15){
                concmd("say Waanaaanananaaa")
                }
                if (Rand == 30){
                concmd("say I AM A FRICKIN' BLUR HERE!")
                }
    }
}



runOnLast(1)
if (last()) {O:removeTrails()}
