View unanswered posts | View active topics It is currently Mon Mar 18, 2024 11:56 pm



Reply to topic  [ 2 posts ] 
 Better bunny hopping script 
Author Message
★★★★★
User avatar

Joined: Sat Dec 18, 2010 1:33 am
Posts: 59
Has thanked: 0 time
Been thanked: 1 time
I was playing around with the console this morning and decided to make a simple bunny hopping code for OC.

First off, start by going to where OC is installed, it should look something like this:
C>Program Files>Steam>steamapps>sourcemods>obsidian
Then open up the folder named "cfg".

In there should be a bunch of .cfg files. Look for one that says "config_default.cfg" and open it with notepad.
First thing you should do here is change

Code:
Bind "ALT" "+walk"

To:
Code:
Bind "ALT" "bhop"


then scroll to the bottom of where all the binds are and put in:

Code:
alias bhop "bind mwheeldown +jump; bind mwheelup +jump; bind Space +jump; bind ALT norm"
alias norm "bind mwheeldown invprev; bind mwheelup invnext; bind Space +jump; bind ALT bhop"


so that the whole text file should look like this (mine):

Code:
unbindall

bind "TAB"          "+showscores"
bind "ESCAPE"       "cancelselect"
bind "`"          "toggleconsole"
bind "w"         "+forward"
bind "s"         "+back"
bind "a"         "+moveleft"
bind "d"         "+moveright"
bind "SPACE"      "+jump"
bind "CTRL"         "+duck"
bind "e"         "+use"
bind "c"         "impulse 50"
bind "r"         "+reload"
bind "ALT"         "bhop"
bind "SHIFT"      "+speed"
bind "MOUSE1"      "+attack"
bind "MOUSE2"      "+attack2"
bind "f"         "impulse 100"
bind "1"         "slot1"
bind "2"         "slot2"
bind "3"         "slot3"
bind "4"         "slot4"
bind "5"         "slot5"
bind "6"         "slot6"
bind "7"         "slot7"
bind "8"         "slot8"
bind "9"         "slot9"
bind "0"         "slot10"
bind "MWHEELUP"      "invprev"
bind "MWHEELDOWN"   "invnext"
bind "q"         "lastinv"
bind "F5"         "jpeg"
bind "F6"         "save quick"
bind "F9"         "load quick"
bind "PAUSE"       "pause"
bind "z"         "+zoom"
bind "g"         "phys_swap"
bind "y"          "messagemode"
bind "u"          "messagemode2"
bind "k"          "+voicerecord"
bind "'"         "+cloak"
bind ";"         "shield_toggle"
bind "l"         "ironsight_toggle"
bind "m"          "drop"
bind "["         "cl_toggleitemmenu"
bind "]"         "cl_dropselecteditem"
bind "b"         "ch_createairboat"
bind "n"         "ch_createjeep"
bind "o"          "CallForAttention"
bind "l"          "CallForMedic"
bind "p"         "locate_players"
bind "-"         "inventory_store"
bind "v"         "transferpoints"
bind "x"         "dropammo"
bind ","         "ShowMapBriefing"
alias bhop "bind mwheeldown +jump; bind mwheelup +jump; bind Space +jump; bind ALT norm"
alias norm "bind mwheeldown invprev; bind mwheelup invnext; bind Space +jump; bind ALT bhop"

skill   "2"
name   "Obsidian Player"

jpeg_quality "100"
alias "create_map-overview" "exec create_map-overview.cfg"


After you do that, go to file>save to save that shit, then fire up OC.
Go to options and hit the default button for the keyboard binds, and that will run the config_default.cfg file and allow you to use your new script.

HOW IT WORKS

Pressing ALT will 'toggle' the bunny hopping on/off.

Binding the mousewheel to jump helps with the timing. Every time you scroll, instead of activating the +jump action once like you do with the space bar, you activate it every time your mousewheel moves 1 notch. This is almost certainly more than 5 times with every spin, which greatly increases your chances of jumping at exactly the right time, when you hit the ground. Having your mousewheel set to a more sensitive setting increases this chance.

The best technique which I have found with the new script, is to rock the mousewheel up and down on alternate jumps. Step by Step:

1) For the first jump, I rock the mousewheel down.

2) Without lifting my finger, for the second jump, I rock the mousewheel up... etc etc.

This will create as many 'hits' of the +jump command as possible. It is also quite easy to get into a rhythm and you don't have to lift a finger.

And that's pretty much all there is to it, and remember, practice makes perfect. keep trying like the way I showed you above and you'll get it in no time.

Request Sticky? :D

_________________
How to install player models into Sven Co-op:
viewtopic.php?f=4&t=1262
A better bunny hopping script, made by me:
viewtopic.php?f=25&t=1634
A one-button grenade throwing script for Sven Co-op, made by me:
viewtopic.php?f=4&t=1646


Last edited by Supercoke on Sun May 20, 2012 1:27 pm, edited 1 time in total.



Sun May 20, 2012 1:22 pm
Profile
★★★★★
User avatar

Joined: Sat Dec 18, 2010 1:33 am
Posts: 59
Has thanked: 0 time
Been thanked: 1 time
Oh also, this might work for games like Half-Life 2 as well, so if anyone wants to try that out, leave a comment here to let me know.

_________________
How to install player models into Sven Co-op:
viewtopic.php?f=4&t=1262
A better bunny hopping script, made by me:
viewtopic.php?f=25&t=1634
A one-button grenade throwing script for Sven Co-op, made by me:
viewtopic.php?f=4&t=1646


Sun May 20, 2012 1:25 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.
[ Time : 0.048s | 17 Queries | GZIP : On ]