Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Steam Games Hacks & Cheats › Garry's Mod Hacks & Cheats › Garry's Mod Coding & Resources › Bhop & Strafe Script

Bhop & Strafe Script

Posts 1–15 of 16 · Page 1 of 2
SaganTM
SaganTM
Bhop & Strafe Script
Hi folks,
Here is the Source to the Bunny Hopping and strafing script I have made.
Code:
local bhop_cv = CreateClientConVar("bocui_bhop", 0);
local auto_cv = CreateClientConVar("bocui_strafe", 0);
 
local FW = true; -- forward
local BW = false; -- backwards
local NONE = nil; -- neither
 
local cd = 6; -- cooldown
local ccd = 0; -- current cooldown
local lastc = 0; -- last cmd number
local lp = LocalPlayer(); -- localplayer
 
local function FWorBW(vel, ang)
        local a = vel;
        a:Rotate(-ang)
        if(a.x > 0) then
                return FW;
        elseif(a.x < 0) then
                return BW;
        end
        return NONE
end
 
local function bhopper(cmd)
        if(lp:GetMoveType() == MOVETYPE_NOCLIP or lp:WaterLevel() >= 2) then return; end --does it make sense to jump?  -- noclip src 12
        if (cmd:KeyDown(IN_JUMP)) then
                if(auto_cv:GetBool()) then
                        local mul = FWorBW(lp:GetVelocity(), lp:EyeAngles()) == BW and -1 or 1;
                        if(cmd:GetMouseX() < 0) then
                                cmd:SetSideMove(-10000 * mul);
                                ccd = -cd;
                        elseif(cmd:GetMouseX() > 0) then
                                cmd:SetSideMove(10000 * mul);
                                ccd = cd;
                        elseif(ccd < 0) then
                                cmd:SetSideMove(-10000 * mul);
                                ccd = ccd + 1;
                        elseif(ccd > 0) then
                                cmd:SetSideMove(10000 * mul);
                                ccd = ccd - 1;
                        end
                end
                if (lp:OnGround() and cmd:CommandNumber() ~= lastc + 1) then
                        cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_JUMP));
                        if(cmd:CommandNumber() ~= 0) then lastc = cmd:CommandNumber(); end
                        return;
                end
        end
        cmd:RemoveKey(IN_JUMP);
end
 
 
-- preperation
hook.Remove("CreateMove", "bunnyhop");
if(bhop_cv:GetBool()) then
        hook.Add("CreateMove", "bunnyhop", bhopper);
end
-- end of prep
 
 
cvars.AddChangeCallback("bocui_bhop", function()
        if(bhop_cv:GetBool()) then
                hook.Add("CreateMove", "bunnyhop", bhopper);
        else
                hook.Remove("CreateMove", "bunnyhop");
        end
end)
 
MsgC(Color(0,255,0), "\nBocui Bhop initialized!\n");
#1 · 11y ago
IM
Im Friendly
thats meeps bhop and autostrafe not yours
http://pastebin.com/sxi0pD0E
#2 · edited 11y ago · 11y ago
DA
dakilla345
Quote Originally Posted by SaganTM View Post
Hi folks,
Here is the Source to the Bunny Hopping and strafing script I have made.
Code:
local bhop_cv = CreateClientConVar("bocui_bhop", 0);
local auto_cv = CreateClientConVar("bocui_strafe", 0);
 
local FW = true; -- forward
local BW = false; -- backwards
local NONE = nil; -- neither
 
local cd = 6; -- cooldown
local ccd = 0; -- current cooldown
local lastc = 0; -- last cmd number
local lp = LocalPlayer(); -- localplayer
 
local function FWorBW(vel, ang)
        local a = vel;
        a:Rotate(-ang)
        if(a.x > 0) then
                return FW;
        elseif(a.x < 0) then
                return BW;
        end
        return NONE
end
 
local function bhopper(cmd)
        if(lp:GetMoveType() == MOVETYPE_NOCLIP or lp:WaterLevel() >= 2) then return; end --does it make sense to jump?  -- noclip src 12
        if (cmd:KeyDown(IN_JUMP)) then
                if(auto_cv:GetBool()) then
                        local mul = FWorBW(lp:GetVelocity(), lp:EyeAngles()) == BW and -1 or 1;
                        if(cmd:GetMouseX() < 0) then
                                cmd:SetSideMove(-10000 * mul);
                                ccd = -cd;
                        elseif(cmd:GetMouseX() > 0) then
                                cmd:SetSideMove(10000 * mul);
                                ccd = cd;
                        elseif(ccd < 0) then
                                cmd:SetSideMove(-10000 * mul);
                                ccd = ccd + 1;
                        elseif(ccd > 0) then
                                cmd:SetSideMove(10000 * mul);
                                ccd = ccd - 1;
                        end
                end
                if (lp:OnGround() and cmd:CommandNumber() ~= lastc + 1) then
                        cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_JUMP));
                        if(cmd:CommandNumber() ~= 0) then lastc = cmd:CommandNumber(); end
                        return;
                end
        end
        cmd:RemoveKey(IN_JUMP);
end
 
 
-- preperation
hook.Remove("CreateMove", "bunnyhop");
if(bhop_cv:GetBool()) then
        hook.Add("CreateMove", "bunnyhop", bhopper);
end
-- end of prep
 
 
cvars.AddChangeCallback("bocui_bhop", function()
        if(bhop_cv:GetBool()) then
                hook.Add("CreateMove", "bunnyhop", bhopper);
        else
                hook.Remove("CreateMove", "bunnyhop");
        end
end)
 
MsgC(Color(0,255,0), "\nBocui Bhop initialized!\n");
skid
/2shrt
#3 · 11y ago
DA
David.
Thank You For This Soruce CodE Man
#4 · 11y ago
MeepDarknessMeep
MeepDarknessMeep
Quote Originally Posted by SaganTM View Post
Hi folks,
Here is the Source to the Bunny Hopping and strafing script I have made.
Code:
local bhop_cv = CreateClientConVar("bocui_bhop", 0);
local auto_cv = CreateClientConVar("bocui_strafe", 0);
 
local FW = true; -- forward
local BW = false; -- backwards
local NONE = nil; -- neither
 
local cd = 6; -- cooldown
local ccd = 0; -- current cooldown
local lastc = 0; -- last cmd number
local lp = LocalPlayer(); -- localplayer
 
local function FWorBW(vel, ang)
        local a = vel;
        a:Rotate(-ang)
        if(a.x > 0) then
                return FW;
        elseif(a.x < 0) then
                return BW;
        end
        return NONE
end
 
local function bhopper(cmd)
        if(lp:GetMoveType() == MOVETYPE_NOCLIP or lp:WaterLevel() >= 2) then return; end --does it make sense to jump?  -- noclip src 12
        if (cmd:KeyDown(IN_JUMP)) then
                if(auto_cv:GetBool()) then
                        local mul = FWorBW(lp:GetVelocity(), lp:EyeAngles()) == BW and -1 or 1;
                        if(cmd:GetMouseX() < 0) then
                                cmd:SetSideMove(-10000 * mul);
                                ccd = -cd;
                        elseif(cmd:GetMouseX() > 0) then
                                cmd:SetSideMove(10000 * mul);
                                ccd = cd;
                        elseif(ccd < 0) then
                                cmd:SetSideMove(-10000 * mul);
                                ccd = ccd + 1;
                        elseif(ccd > 0) then
                                cmd:SetSideMove(10000 * mul);
                                ccd = ccd - 1;
                        end
                end
                if (lp:OnGround() and cmd:CommandNumber() ~= lastc + 1) then
                        cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_JUMP));
                        if(cmd:CommandNumber() ~= 0) then lastc = cmd:CommandNumber(); end
                        return;
                end
        end
        cmd:RemoveKey(IN_JUMP);
end
 
 
-- preperation
hook.Remove("CreateMove", "bunnyhop");
if(bhop_cv:GetBool()) then
        hook.Add("CreateMove", "bunnyhop", bhopper);
end
-- end of prep
 
 
cvars.AddChangeCallback("bocui_bhop", function()
        if(bhop_cv:GetBool()) then
                hook.Add("CreateMove", "bunnyhop", bhopper);
        else
                hook.Remove("CreateMove", "bunnyhop");
        end
end)
 
MsgC(Color(0,255,0), "\nBocui Bhop initialized!\n");
nice paste from lenny skripts dude
#5 · 11y ago
LE
LennyPenny
what a loseR
#6 · 11y ago
FoldedHam
FoldedHam
Quote Originally Posted by LennyPenny View Post
what a loseR
HE'S ALIVE!!!!!!!!
#7 · 11y ago
D3M0L1T10N
D3M0L1T10N
Quote Originally Posted by SaganTM View Post
Hi folks,
Here is the Source to the Bunny Hopping and strafing script I have made.
Code:
local bhop_cv = CreateClientConVar("bocui_bhop", 0);
local auto_cv = CreateClientConVar("bocui_strafe", 0);
 
local FW = true; -- forward
local BW = false; -- backwards
local NONE = nil; -- neither
 
local cd = 6; -- cooldown
local ccd = 0; -- current cooldown
local lastc = 0; -- last cmd number
local lp = LocalPlayer(); -- localplayer
 
local function FWorBW(vel, ang)
        local a = vel;
        a:Rotate(-ang)
        if(a.x > 0) then
                return FW;
        elseif(a.x < 0) then
                return BW;
        end
        return NONE
end
 
local function bhopper(cmd)
        if(lp:GetMoveType() == MOVETYPE_NOCLIP or lp:WaterLevel() >= 2) then return; end --does it make sense to jump?  -- noclip src 12
        if (cmd:KeyDown(IN_JUMP)) then
                if(auto_cv:GetBool()) then
                        local mul = FWorBW(lp:GetVelocity(), lp:EyeAngles()) == BW and -1 or 1;
                        if(cmd:GetMouseX() < 0) then
                                cmd:SetSideMove(-10000 * mul);
                                ccd = -cd;
                        elseif(cmd:GetMouseX() > 0) then
                                cmd:SetSideMove(10000 * mul);
                                ccd = cd;
                        elseif(ccd < 0) then
                                cmd:SetSideMove(-10000 * mul);
                                ccd = ccd + 1;
                        elseif(ccd > 0) then
                                cmd:SetSideMove(10000 * mul);
                                ccd = ccd - 1;
                        end
                end
                if (lp:OnGround() and cmd:CommandNumber() ~= lastc + 1) then
                        cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_JUMP));
                        if(cmd:CommandNumber() ~= 0) then lastc = cmd:CommandNumber(); end
                        return;
                end
        end
        cmd:RemoveKey(IN_JUMP);
end
 
 
-- preperation
hook.Remove("CreateMove", "bunnyhop");
if(bhop_cv:GetBool()) then
        hook.Add("CreateMove", "bunnyhop", bhopper);
end
-- end of prep
 
 
cvars.AddChangeCallback("bocui_bhop", function()
        if(bhop_cv:GetBool()) then
                hook.Add("CreateMove", "bunnyhop", bhopper);
        else
                hook.Remove("CreateMove", "bunnyhop");
        end
end)
 
MsgC(Color(0,255,0), "\nBocui Bhop initialized!\n");
thank you you are a very talented coder, +rep
#8 · 11y ago
Aethi
Aethi
lmao dude did you even try
#9 · 11y ago
Color
Color
Move to coding section.
#10 · 11y ago
KO
Kona-chan
NICE DUDE THIS IS TOP HERA TYLER WAREING QUALITY!
#11 · 11y ago
Xx Majestic xX
Xx Majestic xX
Quote Originally Posted by LennyPenny View Post
what a loseR
I really hope falco's scripts was made before well you know...
#12 · 11y ago
MeepDarknessMeep
MeepDarknessMeep
Quote Originally Posted by Xx Majestic xX View Post
I really hope falco's scripts was made before well you know...
nice bump that doesn't make sense at all!!! high quality post!!
#13 · 11y ago
LE
LennyPenny
Quote Originally Posted by Xx Majestic xX View Post
I really hope falco's scripts was made before well you know...
ok















......
#14 · 11y ago
N0t-KGB
N0t-KGB
stop bumping this autistic thread
#15 · 11y ago
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Similar Threads

  • Are there any free BHOP scripts and possible auto strafe scripts that actually work?By TristanForthe in CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    5Last post 12y ago
  • [CS1.6]Undetected strafe script for A4tech bloody mouseBy rowikas in CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    16Last post 11y ago
  • & [Help] Counter-Strike; Source (CSS) Bhop "AUTO-STRAFE" HackBy syn156 in CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    16Last post 12y ago
  • BunnyHop/LongJump strafe script?By gozy69 in CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    1Last post 13y ago
  • Simple BHOP Auto Jumper. (Script)By FatEmoLLaMa in CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    22Last post 14y ago

Tags for this Thread

None