Skip to content
View in the app

A better way to browse. Learn more.

Learn more

purchasable-long-jump-module/README.txt

README.txt
36 lines · 1.5 KB · Text
Raw
Purchasable Long Jump Module 1.0.0 (olds.ro)
============================================

Long Jump: players buy a long jump module for the round. With it, a key
throws them far forward from the ground, with a short cooldown.

Requirements
  - AMX Mod X 1.10.0.5490 or newer, ReAPI, fakemeta

Install
  1. Compile scripting/olds_ljbuy.sma and copy olds_ljbuy.amxx to
     addons/amxmodx/plugins/.
  2. Copy data/lang/olds_ljbuy.txt to addons/amxmodx/data/lang/.
  No downloads: the jump plays the stock sound/player/pl_jump2.wav.

Settings (addons/amxmodx/configs/plugins/olds_ljbuy.cfg, made on first run)
  olds_ljbuy_price 4000   price
  olds_ljbuy_force 650    forward speed of the jump
  olds_ljbuy_cd 5         seconds between jumps

Players
  say /longjump           buy the module (refused without enough money, or
                          when you already own it this round)
  bind <key> +ljump       the long jump key

Admins
  amx_ljbuy_status (ADMIN_KICK)   owners, jumps, cooldowns, money, speed

How it works
  - The price is taken with rg_add_account.
  - FM_CmdStart: a fresh +ljump press on the ground sets the velocity to
    olds_ljbuy_force forward (the way the player looks, level) and 300 up,
    and plays pl_jump2.wav. In the air nothing happens; during the cooldown
    the seconds left are shown in chat (once a second at most).
  - The module is removed at round start (RG_CSGameRules_RestartRound) and
    at death (RG_CBasePlayer_Killed): it must be bought again.

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.