Adding Bunnyhopping to a Mod Created 7 years ago2016-12-07 01:36:15 UTC by Toluno Toluno

Created 7 years ago2016-12-07 01:36:15 UTC by Toluno Toluno

Posted 7 years ago2016-12-07 01:36:15 UTC Post #332599
Is it possible to edit the source code and re-implement bhopping into a mod? If so would it be very difficult?
Posted 7 years ago2016-12-07 03:17:16 UTC Post #332600
I'm not sure but I think you just download the bunny hopphing configuration file "cfg" file. Put it where the other one is but in your mod's folder. Or wherever it might belong.

Maybe you can test your own for your mod by editing/ copying and pasting settings. Now go break something. :glad:

Ask zerotech what settings he uses for bh. I play with sv_airaccelerate 1000 and max_speed set to infinity. ;)
Posted 7 years ago2016-12-07 04:40:16 UTC Post #332601
its possible, there is a mod called ag (adrenaline gamer) and it has bhop and there is source code available. Except that the traditional way of bhopping was using a script but valve broke that a few years ago, and its in the engine code, not the game code, so you cant use a script anymore. The ag mod simply has a console variable cl_autojump 1|0 or something... ill try to find the link later

edit: its called OpenAG, there u go https://github.com/YaLTeR/OpenAG
Posted 7 years ago2016-12-07 08:44:26 UTC Post #332603
Just comment PM_PreventMegaBunnyhopJumping in pm_shared.c
Posted 7 years ago2016-12-07 12:50:34 UTC Post #332606
Where exactly can I find pm_shared.c?
Posted 7 years ago2016-12-07 15:03:50 UTC Post #332611
like i said, thats not enough because valve broke the bhop script, so look in openag. I guess most people dont know what bhop really is
Posted 7 years ago2016-12-07 15:16:10 UTC Post #332612
pm_shared.c is in the folder pm_shared in the game codebase.

Valve disabled the _special command, which was used for bunny hopping. You can't change that because it was blocked in the engine. You might be able to add a new command that isn't blocked though, assuming it doesn't need engine level support.
Posted 7 years ago2016-12-07 18:03:06 UTC Post #332615
Okay so will changing the pm_shared.c folder eliminate the bhop velocity cap? I don't really need a script due to it being quite easy to hit jumps in hl1.
Posted 7 years ago2016-12-20 04:38:19 UTC Post #332797
For BHOP in HL1 and other mods with the exception of Counter-Strike its pretty simple.

As what people have stated use the settings that suits your style.

If you ask me what the recommendations are it's what I use assuming you use the scroll wheel to jump.

sv_maxspeed 10000 (Overkill but enough for you to jump at least 700 Velocity)
sv_airaccelerate 100 (A must for Counter-Strike but Half-Life can be less)
sv_gravity 800 (I cannot stress enough, please don't fiddle with gravity)
sv_friction 4 (It's fine leaving friction as it is)

Pretty much these are the speed settings you would use for any HL1 Mods, whereas source it's not fps dependent like in HL1 where increasing the fps will cause you to bhop faster but players stressed that it's cheating.

You can improve the bhop speed a bit by fiddling with some client commands
cl_forwardspeed 999
cl_backspeed 999
cl_sidespeed 999
cl_pitch ???
cl_yawspeed 210
cl_bob 0.5 - 1

In that effect you tend to do more sharp 90 degree turns so the effects feel pretty wild for you to turn sharply.

Another technique to improve speed is tapping the crouch in sync with your mouse wheel so basically you tap the crouch key as well the scroll wheel at the same time to give like an overall 10% speed boost, often people who play Quake will benefit with this technique.

So in terms of configuration, it's pretty simple, use what i recommend and allow more than 10 on airacceleration but 100 is fine, with maxspeed change it to something higher than the default so you are able to bhop at least speeds of 700 velocity on 100fps and please try not to fiddle with gravity because it can cause an undesirable effect on bhopping.

Quake's bhopping behaviour is a little different but it behaves simular or the same as hl1 since the bhop code is the same with each other.
Posted 7 years ago2016-12-30 18:41:14 UTC Post #332910
You see, the problem with that method is that, by changing "sv_maxspeed" it allows the player to walk very fast by simply holding a strafe key.
You must be logged in to post a response.