12 hours ago12 hr Administrator Dropped weapons are removed after a set number of seconds, or at once, and map-placed weapons can be cleared too to save entities and prevent clutter. 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, ReAPIAMX Mod X 1.10.0.5490 or newer, with the fakemeta and hamsandwich modules (enabled by default) Install 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.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.)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). InstallDownload 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_weaponcleanup.sma License: GPL-3.0-or-later.Written for the olds.ro plugin workshop (LIB-0232), by alexit and checked by the automated Claude review. Dropped Weapon Cleanupv1.0.0Counter-Strike 1.6PluginTests passedAMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.3 KBUpdated 12 hours agoSign in to downloadolds_weaponcleanup.smaPawn (AMX Mod X) · 294 lines3 files/* * Dropped Weapon Cleanup (olds.ro workshop card LIB-0232) * * 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 (armoury_entity) can be cleared atShow all 294 linesChangelogVersions (1)Install into: cstrike/Open the full page →
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.