Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Rune Drop on Death

Featured Replies

  • Administrator

A player who dies while holding a rune drops it where they fell, with its remaining time. Anyone can pick it up, so killing a rune holder is worth more than a normal frag.

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

  • 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).
  • 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.

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/include/olds_runes.inc, addons/amxmodx/scripting/olds_runedrop.sma, test/rn_stub.sma

Idea: daemon · 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 (IDEA-1925EAC3DB6BD04F).

Rune Drop on Death
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.9 KBUpdated 4 hours ago
Sign in to download
Pawn (AMX Mod X) · 241 lines
/*
 * Rune Drop on Death (olds.ro workshop card IDEA-1925EAC3DB6BD04F)
 *
 * 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, not a full duration. A dropped rune that
 * nobody takes vanishes after olds_runedrop_life seconds.
Show all 241 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.