Sv gametype

From OdaWiki
Revision as of 03:28, 6 August 2010 by Ralphis (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a latched variable, and only takes effect after a map change.

Gametype

Usage: sv_gametype (#)

The sv_gametype cvar was created to allow server administrators an easy way to manage the various different gametypes that Odamex offers without having to juggle a large variety of cvars.

For example, in the past server administrators were required to set three different variables to run a CTF game. deathmatch 1, teamplay 1, and usectf 1. This could not only be confusing but would cause issues for players if one of these was not set correctly.

In an effort to make things easier for Odamex's users, to achieve the same result with the Gametype cvar, a server administrator would now only have to set sv_gametype 3.

This also makes it easier for developers to implement future gametypes, allowing them to simply assign their gametype a number.

The Gametypes

For an explanation on the gametypes within Odamex, visit Game Types.

Cooperative

Usage: sv_gametype 0

Deathmatch

Usage: sv_gametype 1

This variable doesn't determine between classic doom2.exe "-deathmatch" and "-altdeath" rules, so follow this cvar chart:

  • -deathmatch: sv_itemsrespawn 0, sv_weaponstay 1
  • -altdeath: sv_itemsrespawn 1, sv_weaponstay 0
  • "Newschool": sv_itemsrespawn 1, sv_weaponstay 1

Team Deathmatch

Usage: sv_gametype 2

A useful variable server administrators may want to look into for TDM is sv_teamspawns.

Capture the Flag

Usage: sv_gametype 3

There are a few useful variables for server administrators relating to this game mode. Visit Capture_The_Flag for more information.