addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt1.9 KB
No file matches.
Deathmatch Warm-up 1.0.0 (olds.ro)
==================================
Until enough players have joined, the map runs a deathmatch warm-up:
- dead players respawn after 1 second with a random primary weapon (full
backpack ammo) from configs/olds_dmwarm.ini;
- nobody gets the bomb and rounds do not end (objectives are off);
- friendly fire is off.
When olds_dmwarm_players players are on the server a countdown of
olds_dmwarm_count seconds starts. If the count drops below the threshold it is
cancelled; otherwise the game restarts into normal rounds (sv_restart 1) and
the warm-up is over for the rest of the map.
Requirements
- AMX Mod X 1.10.0.5490 or newer, with ReAPI (ReGameDLL_CS)
Install
1. Compile scripting/olds_dmwarm.sma and copy olds_dmwarm.amxx to
addons/amxmodx/plugins/.
2. Copy configs/olds_dmwarm.ini to addons/amxmodx/configs/ and
data/lang/olds_dmwarm.txt to addons/amxmodx/data/lang/.
No downloads.
Settings (addons/amxmodx/configs/plugins/olds_dmwarm.cfg, made on first run)
olds_dmwarm 1 run the warm-up at map start
olds_dmwarm_players 6 players on the server (get_playersnum, bots count)
that end the warm-up
olds_dmwarm_count 10 countdown seconds before the restart
olds_dmwarm.ini
One weapon_* name per line (unknown names are skipped and logged). An empty
list falls back to weapon_ak47 and weapon_m4a1.
How it works
- Starts in plugin_cfg (map load). A HUD line shows the player count.
- RG_CBasePlayer_Killed (post) schedules rg_round_respawn 1 s later;
RG_CBasePlayer_Spawn (post) removes the bomb (rg_remove_item) and gives
the random primary (rg_give_item, replacing the old one).
- RG_CSGameRules_GiveC4 and RG_RoundEnd are blocked during the warm-up.
- mp_friendlyfire is set to 0 for the warm-up and put back to its old
value when the warm-up ends (or when the map ends during it).
- After the restart every hook is disabled: normal rounds, no respawn.