Skip to content
View in the app

A better way to browse. Learn more.

Learn more

auto-bunny-hop-item/README.txt

README.txt
47 lines · 2.1 KB · Text
Raw
Auto Bunny Hop Item 1.0.0 (olds.ro)
===================================

A Base Builder extra item: a builder (human) who buys it can hold the jump
key to bunny hop automatically until death or the end of the round.

Requirements
  - AMX Mod X 1.10.0.5490 or newer (fakemeta)
  - ReGameDLL_CS 5.30.0.814 or newer with ReAPI 5.29.0.358 or newer
  - A Base Builder core with a points system. The shop's extra item calls
    olds_abh_buy(id); the points system answers the olds_abh_charge forward
    (include/olds_autobhop.inc). ReBaseBuilder (rebb_api) is used, when
    loaded, for the build-phase rule.

Install
  1. Compile scripting/olds_autobhop.sma and copy olds_autobhop.amxx to
     addons/amxmodx/plugins/ (before the shop that lists it).
  2. Copy data/lang/olds_autobhop.txt to addons/amxmodx/data/lang/.
  3. Give the shop / points plugin scripting/include/olds_autobhop.inc.
  No downloads: the purchase plays the stock items/gunpickup2.wav.

Settings (addons/amxmodx/configs/plugins/olds_autobhop.cfg, made on first run)
  olds_abh_cost 8    points the item costs (0 = free)
  olds_abh_build 0   1 = it also works during the build phase
  olds_abh_team 2    the builders' team (1 = T, 2 = CT)

Players
  say /abh (or /autobhop), or the shop's extra item   buys it

How it works
  - The purchase asks the points system to take olds_abh_cost points
    (forward olds_abh_charge, PLUGIN_HANDLED = paid). Without enough points,
    or without a points plugin, it is refused and nothing is set.
  - RG_CBasePlayer_PreThink: an owner holding jump on the ground gets IN_JUMP
    taken out of pev_oldbuttons, so the engine sees a fresh press and jumps
    again. Nothing is done on a ladder or in water, so nobody is pulled off
    a ladder.
  - The item is lost on death (RG_CBasePlayer_Killed), at every new round
    (RG_CSGameRules_RestartRound) and when the owner leaves the builders'
    team (infected).

Admin (ADMIN_KICK)
  amx_abh [player]   owners, or one player's state

API (library "olds_autobhop", include/olds_autobhop.inc)
  native olds_abh_buy(id), olds_abh_give(id), olds_abh_take(id), olds_abh_has(id)
  forward olds_abh_charge(id, cost)

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.