Skip to content
View in the app

A better way to browse. Learn more.

Learn more

rune-drop-on-death/README.txt

README.txt
43 lines · 2.1 KB · Text
Raw
Rune Drop on Death 1.0.0 (olds.ro)
==================================

A RuneMod add-on. A player who dies holding a rune (killed or by suicide)
drops it where they fell, with the seconds it had left. Anyone can pick it
up and gets the rune for those seconds, so killing a rune holder is worth
more than a normal frag.

Requirements
  - AMX Mod X 1.10.0.5490 or newer, ReAPI, fakemeta
  - the olds.ro RuneMod core with the API in scripting/include/olds_runes.inc
    (library "olds_runes"): olds_rune_get (the rune held and its seconds
    left), olds_rune_give (a rune for given seconds) and olds_rune_name.
    The LIB-1362 Rune Pickups 1.0.0 does not have this API yet; the plugin
    does not load without it.
  - the core's rune model models/olds/runes/rune.mdl (its skin is the rune
    type). Without it the stock models/w_backpack.mdl stands in.

Install
  1. Put include/olds_runes.inc next to the compiler's includes, compile
     scripting/olds_runedrop.sma and copy olds_runedrop.amxx to
     addons/amxmodx/plugins/ (after the core in plugins.ini).
  2. Copy data/lang/olds_runedrop.txt to addons/amxmodx/data/lang/.
  No downloads of its own: it reuses the core's rune model.

Settings (addons/amxmodx/configs/plugins/olds_runedrop.cfg, made on first run)
  olds_runedrop 1          drops on (0 = off)
  olds_runedrop_life 20    seconds a dropped rune lies on the ground

Admins
  amx_runedrop_list (ADMIN_KICK)   the dropped runes: type, seconds of rune,
                                   seconds before they vanish, position

How it works
  - RG_CBasePlayer_Killed (pre, before the core clears the rune) reads the
    victim's rune and seconds left. With a rune and at least a second left,
    a rune lies at the body: the core's model with that rune's skin and
    colour, falling to the floor and spinning. Everyone is told in chat.
  - Touching it gives the rune through olds_rune_give for the seconds it had
    left (they do not run down on the ground). The core decides what
    happens to a rune the player already holds.
  - It vanishes after olds_runedrop_life seconds, and at round start. At
    most 32 lie on the map; a 33rd replaces the oldest.

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.