Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Purchasable Long Jump Module

Featured Replies

  • Administrator

Players buy a long jump module that gives a boosted jump for the round, using money and a short cooldown between jumps.

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

  • Compile scripting/olds_ljbuy.sma and copy olds_ljbuy.amxx to addons/amxmodx/plugins/.
  • 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.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_ljbuy.sma, test/lj_stub.sma

Idea: olds.ro workshop library · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-0974).

Purchasable Long Jump Module
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads3.4 KBUpdated 4 hours ago
Sign in to download
Pawn (AMX Mod X) · 197 lines
/*
 * Purchasable Long Jump Module (olds.ro workshop card LIB-0974)
 *
 * Long Jump: players buy a long jump module for the round. With it, the
 * +ljump key throws them far forward from the ground, with a cooldown.
 *   say /longjump        buy the module (olds_ljbuy_price)
 *   bind <key> +ljump    the long jump key
Show all 197 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.