Skip to content

Set up Features

Aciz edited this page Dec 17, 2022 · 15 revisions

Overview of the important settings and their related cvars to set up for a server or for customizing your client.

General information

ET: Legacy has new, additional or changed cvars and slightly different Path and File Structure.

Please check the associated pages for more information.

Server

To start a server with default config:

./etlded +exec etl_server.cfg +set omnibot_enable 1 +set omnibot_path "./legacy/omni-bot" 

Default config

See also the comments in the default config files provided in the etmain directory:

Ensure values are surrounded by quotation marks.

Heartbeat and tracking

Cvars:

  • dedicated
  • sv_advert

Logging and security

Cvars:

  • logfiles
  • sv_protect
  • sv_protectLog

Server side demo recording

Commands:

  • demo_record
  • demo_play
  • demo_stop

Wallhack prediction

Cvars:

  • sv_wh_active
  • sv_wh_bbox_horz
  • sv_wh_bbox_vert
  • sv_wh_add_xy
  • sv_wh_check_fov

The default values of the anti-wallhack bounding box (60/100) are considerably larger than the normal player bounding box values of 36 and 72 used by ET. The reason for this is that it is better to predict a player as visible when he is not than the contrary. This may give a slight advantage to wallhackers, but this should not be significant. If you change these cvars, pay attention: if set to smaller values, players may not become immediately visible when players go around corners.

Country flags

Cvar:

  • g_countryflags

Ensure the GeopIP.dat file is into your etmain (or legacy) folder.

Luascripts

Visit our Lua scripts directory for useful scripts.

Copy the Lua scripts into the Legacy mod folder. In order to set up these Lua files you have to set 2 cvars:

  • lua_modules: space-separated list of lua modules to load. Modules will be run in the order listed. Changing this cvar will cause all currently loaded modules to quit and be unloaded until maprestart/nextmap.
  • lua_allowedModules: if set, only lua modules with the matching sha1 signatures listed in this cvar will be allowed to load. Changing this cvar will cause all currently loaded modules to quit and be unloaded until maprestart/nextmap.

Example:

lua_modules medic-syringe-heal.lua spawn-invul-fair.lua

For listen server users ONLY: Status command lua_status (see List of Commands) is only available when the server and a map are started.

Map rotations

Campaign

Cvars:

  • g_gametype 4

Map voting

Cvars:

  • g_gametype 6
  • g_excludedMaps
  • g_mapVoteFlags
  • g_maxMapsVotedFor
  • g_minMapAge
  • g_resetXPMapCount

Omni-bot

To enable bots, ensure to adjust these 2 cvars:

  • omnibot_enable
  • omnibot_path: points to the path of Omni-bot library. Use a relative path, or try an absolute path if the engine still can't load the Omni-bot framework

Start a server:

./etlded +set omnibot_enable 1 +set omnibot_path "./legacy/omni-bot"

Ensure omni-bot is loaded by starting a server and checking for initialization messages in the console:

Omni-bot: Looking for ./legacy/omni-bot/omnibot_et.so, 
Omni-bot: Found Omni-bot: ./legacy/omni-bot/omnibot_et.so, Attempting to Initialize
Omni-bot: Omni-bot Loaded Successfully
ET autoexec script executed. 
Loaded Waypoints.
Bot Initialized in 0.16 seconds.
Omni-Bot Initialization completed in 0.17 seconds.

To add bots, open the console and enter:

/bot minbots -1
/bot maxbots 16

Set the difficulty (1-6, default is 6) and move skill (1-4, default is 3):

/bot difficulty 4
/bot moveskill 3

Enable team balancing:

/bot balanceteams 1

Client

Custom HUDs

Custom HUDs can be written by copying and editing the huds.hud to <fs_homepath>/legacy/hud.dat.

Each HUD requires a unique HUD number and then each element can be modified:

  • position x
  • position y
  • width
  • height
  • component style
  • visibility (boolean)

A single file can contain multiple HUD configurations.

The hudnumber value must be unique, if not then the HUD will be discarded

To lead the HUD, you can

  • switch to it with /cg_altHud <hudnumber>
  • live reload it with /readhuds

Built-in minimizer

Simply press ALT + TAB to minimize or maximize the game. This is much faster than Wolfenstein: Enemy Territory.

Surround sound

To enable surround sound, in the Settings > System menu, ensure the Sound Control System audio option is set to OpenAL (default is SDL2).

Default fonts

To change the default fonts, put your new fonts in the etmain/fonts (or legacy/fonts) folder. Ensure to rename them ariblk.ttf and courbd.ttf.

Custom game resolution

The cvar r_mode -1 enables custom values. It is recommended to use the real desktop resolution with r_mode -2.

To set a custom resolution, open your console and enter:

/r_mode -1
/r_customheight 1600
/r_customwidth 900
/vid_restart

New openGL 3.2 renderer

Note: This is still work in progress!

To try the new renderer, launch the client with the +set cl_renderer opengl2 parameter.

Use +set cl_renderer opengl1 to revert back to the original renderer.