#SingleInstance force ; This script uses "alt" as a modifier for many keys... you may want to use a different key for voice communication... if so, run "unbind alt" at the console so others don't get constantly alerted whenever you run one of these commands. ; TODO: ; - implement any of the old bunnyhop scripts here? ; - could I get any sort of color aimbot working? http://en.wikipedia.org/wiki/Aimbot#Color_Aimbots ; (it wouldn't even necessarily need to point at things, it could just pull the trigger whenever the crosshairs are over an opponent...) ; If the ahk_class changes, use http://www.windows-spy.com/download/ to find the new one #IfWinActive ahk_class Valve001 ; Alt-F: Very quick flashlight (don't hold it down too long or it'll last crazy long, and will even prevent you from alt-tabbing out!) !F::Send FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ; Alt-2: Pistol script !2:: SetMouseDelay 20 ; the default speed is too fast, and NS actually forces us to slow it down ; though 75-100 is actually optimal, we do it faster, to absolutely maximize the number of bullets, and assume several of the below clicks will be ignored Send 2{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click}{click} return ; Alt-1: Rapidly change between main gun, pistol, and knife at the start of the round !1:: SetKeyDelay 130 ; the default speed is way too fast... Send 1231231231231231 SetKeyDelay 10 ; go back to the default speed return ; Alt-4: Hold the mouse1 button down. Manually click the mouse to release it. (eg. so you can weld without your arm getting tired, or just spam spores or acid rocket or whatever) ; Also surprisingly useful for lerk spikes... it's much more convenient to fly around, etc, while spiking the whole time. ; Also not obvious, and it's silly, but you can actually spam nades with this.... the mouse click gets remembered through death, so when you spawn you're still spamming... !4:: Click down ; Alt-5: Hold mouse4 down until it's manually clicked... I have this bound to +hook (eg. gorge hook) !5:: Click X1 down ; Alt-W: Anti-AFK-protection... move yourself around just a small amount, every 30 seconds, so the AFK-protection doesn't kick you off a server. ; notes: if you're a non-skulk, then jumping doesn't count as enough to actually move you around... the only thing that does it is changing your X,Y,Z coordinates.. rotating doesn't do it, though jumping as a skulk (if it makes you permanently move your position, eg. jump off a wall), can do it. !W:: AntiAFKEnabled := !AntiAFKEnabled if AntiAFKEnabled SetTimer, AntiAFK, 1000 ; every 1 second Else SetTimer, AntiAFK, off return AntiAFK: IfWinNotActive ahk_class Valve001 return ToolTip, Anti-AFK (Alt-W to disable), 0, 0 SetTimer, TurnOffTooltip, 1000 ; It might be useful to do front/back for this, but the fact that rines walk faster foward than backwards means that this will make them net move-forwards, so it's better to do left/right ; We also use the shift key just to slow down any long-term creep we might have SetKeyDelay 30 Send {shift down}{a down}{a up} Sleep 200 Send {d down}{d up}{shift up} SetKeyDelay 10 return ; Alt-P: alternate between primal and ocasionally sporing the hive. Optimized for Adren + 1xBloodLust. !P:: PrimalSporeEnabled := !PrimalSporeEnabled if PrimalSporeEnabled SetTimer, PS_Next_Primal, 500 Else { SetTimer, PS_Next_Primal, off SetTimer, PS_Next_Spore, off } return PS_Next_Primal: ToolTip, Auto-Primal-Spore (Alt-P to disable), 0, 0 SetTimer, TurnOffTooltip, 1000 Send 4 sleep 500 Click sleep 100 Click sleep 100 Click sleep 100 Click sleep 100 Click SetTimer, PS_Next_Primal, off SetTimer, PS_Next_Spore, 1000 return PS_Next_Spore: ToolTip, Auto-Primal-Spore (Alt-P to disable), 0, 0 SetTimer, TurnOffTooltip, 1000 Send 3 sleep 100 Click sleep 100 Click SetTimer, PS_Next_Spore, off SetTimer, PS_Next_Primal, 1000 return TurnOffTooltip: Tooltip SetTimer, TurnOffTooltip, off return