Skip to content
View in the app

A better way to browse. Learn more.

Learn more

knife-warm-up-round/README.txt

README.txt
42 lines · 2 KB · Text
Raw
Knife Warm-up Round 1.0.0 (olds.ro)
===================================

A warm-up at map start: knives only, instant respawn, a HUD timer, then a
normal live restart.

Requirements
  - AMX Mod X 1.10.0.5490 or newer
  - ReGameDLL_CS 5.30.0.814 or newer with ReAPI 5.29.0.358 or newer

Install
  1. Compile scripting/olds_warmup.sma and copy olds_warmup.amxx to
     addons/amxmodx/plugins/.
  2. Copy data/lang/olds_warmup.txt to addons/amxmodx/data/lang/.
  No downloads: the HUD timer is text and the knife is the stock one.

Settings (addons/amxmodx/configs/plugins/olds_warmup.cfg, made on first run)
  olds_wu_time 90         seconds of warm-up
  olds_wu_delay 1.5       seconds before a dead player comes back
  olds_wu_minplayers 2    players needed on the teams for a warm-up
  olds_wu_wait 20         seconds after the map start to wait for them

How it works
  - plugin_cfg remembers the map's mp_freezetime and sets it to 0.
  - As soon as olds_wu_minplayers players are on the teams the warm-up
    starts (and is announced). If that does not happen within olds_wu_wait
    seconds of the map start, the warm-up is skipped and the freeze time
    comes back at once: the rounds run normally.
  - During the warm-up every spawn (RG_CBasePlayer_Spawn post) is stripped
    with rg_remove_all_items and given a knife; buying and picking up
    weapons are refused; a player who dies (RG_CBasePlayer_Killed) is
    respawned with rg_round_respawn after olds_wu_delay seconds, and so is
    anyone who joins a team; rounds do not end; a HUD timer counts down.
  - When the time is up the freeze time is restored and the server runs
    sv_restart 1: the live match starts with normal weapons and starting
    money, and every kill, death and dollar from the warm-up is reset.
  - Changing the map in the middle of the warm-up also restores the freeze
    time; the next map has its own warm-up.

Admin
  amx_wu_status   (ADMIN_KICK) the warm-up state and time left
  amx_wu_end      (ADMIN_MAP)  ends (or skips) the warm-up now

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.