addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt1.9 KB
No file matches.
Bunnyhop Block Unstuck 1.0.0 (olds.ro)
======================================
Hide and Seek: frees players who stick on bunnyhop blocks by nudging them
upward and resetting their velocity when they stay stuck.
Requirements
- AMX Mod X 1.10.0.5490 or newer (fakemeta)
Install
1. Compile scripting/olds_bhopfix.sma and copy olds_bhopfix.amxx to
addons/amxmodx/plugins/.
2. For each map with bhop blocks, make addons/amxmodx/configs/bhop/
<mapname>.ini listing them (see configs/bhop/example_map.ini).
No downloads: this is a movement correction with no client files.
Block list (configs/bhop/<mapname>.ini)
One block per line: the func_door's brush model ("*12") or
"targetname <name>". Only func_door entities are matched. Comments start
with ; or //. Bad lines are logged and skipped. A map without a file
watches no blocks.
Settings (addons/amxmodx/configs/plugins/olds_bhopfix.cfg, made on first run)
olds_bhopfix_ticks 8 ticks without movement on a listed block before
the nudge (2-100)
olds_bhopfix_push 4.0 units the player is nudged upward (1-32)
How it works
- Every FM_PlayerPreThink the plugin looks at living players on the ground
(pev_flags & FL_ONGROUND). If the ground entity is a listed func_door and
the player's speed is zero, a counter goes up; any movement, a jump or
another ground resets it.
- After olds_bhopfix_ticks ticks the velocity is set to zero and the
player is moved up olds_bhopfix_push units (set_pev pev_origin). The
move is traced first with the player's own hull (the small hull when
ducked), so nobody is pushed into a ceiling: the push stops short of it,
or is skipped when there is no room. Moving the origin does no damage.
- Players holding +jump who land frozen on a block are freed the same way.
- Nudges are logged at most once a second per player.
Admin
amx_bhopfix_status (ADMIN_KICK) blocks listed and matched, nudges so far