Skip to main content

Configuration and commands

ReGameDLL_CS adds settings on top of the standard Counter-Strike server CVars. Start from the configuration files included in the same release as your GameDLL.

Configuration files​

FileUse it for
<mod>/game.cfgReGameDLL_CS gameplay rules, HUD behavior, movement, respawn, damage, and bot quota extensions.
<mod>/game_init.cfgSettings that must be known while the GameDLL initializes: bot_enable, hostage_ai_enable, and mp_hullbounds_sets.
<mod>/server.cfgNormal server settings such as hostname, passwords, logging, and standard Counter-Strike CVars.

<mod> means cstrike for CS 1.6 or czero for Condition Zero.

important

After changing game_init.cfg, fully restart the server process. A map change alone may not reinitialize features such as built-in bots.

Common ReGameDLL_CS settings​

The values below are the values shipped in the current stable release configuration. Your server can override them.

CVarShipped valuePurpose
mp_freeforall0Enables free-for-all gameplay when set to 1.
mp_round_infinite0Prevents selected scenario conditions from ending a round. It also accepts flags such as a, e, or combinations such as ae.
mp_round_restart_delay5Delay in seconds before the next round after a win.
mp_roundrespawn_time20Time after round start during which a joining player may still spawn; -1 removes the limit.
mp_forcerespawn0Automatically respawns killed players after the specified delay.
mp_maxmoney16000Maximum player money; ReGameDLL_CS permits values up to 999999.
mp_buy_anywhere0Allows buying anywhere for both teams (1), T only (2), or CT only (3).
mp_infinite_ammo01 keeps the weapon clip full; 2 provides infinite reserve ammunition.
mp_infinite_grenades0Enables infinite grenades when set to 1.
mp_free_armor0Gives Kevlar (1) or Kevlar and helmet (2) on spawn.
mp_team_flash1Controls whether flashbangs affect teammates and the thrower.
sv_autobunnyhopping0Automatically jumps while the jump key is held.
sv_enablebunnyhopping0Allows speed to exceed the normal running limit.
mp_scoreboard_showhealth3Controls whose health is sent to and shown on the scoreboard.
mp_scoreboard_showmoney3Controls whose money is sent to and shown on the scoreboard.
mp_allow_point_servercommand0Allows maps to execute server commands. Keep disabled for untrusted maps.

For every available setting, accepted value, and safety note, use the upstream dist/game.cfg as the source of truth.

Server commands​

Run these from the server console or through an authorized RCON session where applicable.

CommandDescription
game versionPrints the loaded GameDLL build version, date, and project URL.
endroundEnds the round as a draw.
endround TEnds the round with a Terrorist win.
endround CTEnds the round with a Counter-Terrorist win.
swapteamsSwaps teams and restarts after the default one-second delay.
swapteams 0Swaps teams without restarting the round.
swapteams <seconds>Swaps teams and restarts after the specified delay.
give weapon_ak47Gives the named weapon; requires sv_cheats 1.
impulse 255Gives all weapons; requires sv_cheats 1.
impulse 200Enables noclip with air acceleration; requires sv_cheats 1.

Bot-specific commands and quota examples are documented on Using bots.

Safe configuration workflow​

  1. Keep a copy of the unmodified configuration from each release.
  2. Change one group of settings at a time.
  3. Restart or change the map as required, then check the effective value in the server console.
  4. Record custom values outside the release archive so an update cannot silently overwrite them.