Skip to content
View in the app

A better way to browse. Learn more.

Learn more

dropped-weapon-cleanup/README.txt

README.txt
63 lines · 2.9 KB · Text
Raw
Dropped Weapon Cleanup 1.0.0 (olds.ro)
======================================

Weapons that players drop, by hand or when they die, are removed after a set
number of seconds (or at once), so the map does not fill up with guns and
the server does not run short of entities. The dropped bomb can be kept, and
the weapons placed on the map itself (armoury_entity) can be cleared at
every round start.

  - Each dropped weapon gets its own timer, counted from the moment it is
    dropped. Picking it up cancels its timer.
  - The weapon entities packed inside the dropped box are removed together
    with the box, the same way the game cleans up, so nothing is left
    behind in the entity list.
  - A timer only ever removes the box it was made for, even if the box is
    gone and its entity number is used again by something else.
  - Map weapons are removed only at a round start, never in the middle of a
    round. Once removed they come back with the next map.
  - The plugin shows nothing to players.

Requirements
  - ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  - AMX Mod X 1.10.0.5490 or newer, with the fakemeta and hamsandwich
    modules (enabled by default)

Install
  1. Compile scripting/olds_weaponcleanup.sma and copy olds_weaponcleanup.amxx
     to addons/amxmodx/plugins/. The compiler needs ReAPI's include files
     (reapi.inc and the reapi_*.inc files from the ReAPI release, in
     addons/amxmodx/scripting/include/) next to the stock AMX Mod X includes.
  2. Copy configs/plugins/olds_weaponcleanup.cfg to
     addons/amxmodx/configs/plugins/ and change the values you want.
     (If the file is missing, the plugin writes one with the defaults the
     first time it starts.)
  3. Add olds_weaponcleanup.amxx to addons/amxmodx/configs/plugins.ini.

Settings (addons/amxmodx/configs/plugins/olds_weaponcleanup.cfg)
  olds_wcl_life 20.0       seconds a dropped weapon stays on the ground (1 - 600);
                           a new value applies to weapons dropped after the change
  olds_wcl_instant 0       1 = remove dropped weapons on the next frame
  olds_wcl_mapweapons 0    1 = remove the map's own weapons (armoury_entity) at
                           each round start
  olds_wcl_keepbomb 1      1 = a dropped bomb is never removed; 0 = it is removed
                           like any other weapon (the round then has no bomb)

  The game's own mp_item_staytime still applies: a weapon is removed by
  whichever comes first.

Commands
  None.

Tested on
  ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814, Metamod-r 1.3.0.149,
  AMX Mod X 1.10.0-git5490, ReAPI 5.29.0.358, with YaPB bots
  (de_dust2, and de_storm for the map weapons).

No sounds, models or sprites are added, and there is no language file
because the plugin shows no text.

Credits and licence
  Written from scratch by alexit (olds.ro workshop) for workshop card
  LIB-0232. Licence: GNU General Public License v3.0 or later
  (GPL-3.0-or-later).

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.