Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Deathmatch Warm-up

Featured Replies

  • Administrator

Until enough players have joined, the server runs a free-for-all warm-up with random weapons and instant respawn. When the player count is reached, a ten-second countdown restarts the game into normal rounds.

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

  • Compile scripting/olds_dmwarm.sma and copy olds_dmwarm.amxx to addons/amxmodx/plugins/.
  • 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.

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/olds_dmwarm.sma, test/dw_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-5D27EEF3F0D2CC29).

Deathmatch Warm-up
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.2 KBUpdated 3 hours ago
Sign in to download
Pawn (AMX Mod X) · 235 lines
/*
 * Deathmatch Warm-up (olds.ro workshop idea IDEA-5D27EEF3F0D2CC29)
 *
 * Until enough players have joined, the map runs a deathmatch warm-up: dead players
 * respawn after a second with a random primary weapon, nobody gets the bomb and rounds
 * do not end. When olds_dmwarm_players players are on the server a countdown starts;
 * if the count drops below the threshold it is cancelled, otherwise the game restarts
Show all 235 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.