mirror of
https://github.com/etlegacy/etlegacy-lua-scripts.git
synced 2024-11-15 01:11:33 +00:00
96 lines
3.7 KiB
Lua
96 lines
3.7 KiB
Lua
-- based on etconst.lua from ETPro but slightly modified to fit for ET: legacy 2.72rc2
|
|
-- never change values here unless you exactly know what you are doing
|
|
|
|
-- misc q_shared.h
|
|
et.MAX_CLIENTS = 64
|
|
et.MAX_MODELS = 256
|
|
et.MAX_SOUNDS = 256
|
|
et.MAX_CS_SKINS = 64
|
|
et.MAX_CSSTRINGS = 32
|
|
et.MAX_CS_SHADERS = 32
|
|
et.MAX_SERVER_TAGS = 256
|
|
et.MAX_TAG_FILES = 64
|
|
et.MAX_MULTI_SPAWNTARGETS = 16
|
|
et.MAX_DLIGHT_CONFIGSTRINGS = 16
|
|
et.MAX_SPLINE_CONFIGSTRINGS = 8
|
|
-- misc bg_public.h
|
|
et.MAX_OID_TRIGGERS = 18
|
|
et.MAX_CHARACTERS = 16
|
|
et.MAX_TAGCONNECTS = 64
|
|
et.MAX_FIRETEAMS = 12
|
|
et.MAX_MOTDLINES = 6
|
|
|
|
-- Config string:
|
|
-- q_shared.h
|
|
et.CS_SERVERINFO = 0 -- an info string with all the serverinfo cvars
|
|
et.CS_SYSTEMINFO = 1 -- an info string for server system to client system configuration (timescale, etc)
|
|
|
|
-- bg_public.h
|
|
et.CS_MUSIC = 2 -- g_motd string for server message of the day
|
|
et.CS_MESSAGE = 3 -- from the map worldspawn's message field
|
|
et.CS_MOTD = 4
|
|
et.CS_WARMUP = 5 -- server time when the match will be restarted
|
|
et.CS_VOTE_TIME = 6
|
|
et.CS_VOTE_STRING = 7
|
|
et.CS_VOTE_YES = 8
|
|
et.CS_VOTE_NO = 9
|
|
et.CS_GAME_VERSION = 10
|
|
|
|
et.CS_LEVEL_START_TIME = 11 -- so the timer only shows the current level
|
|
et.CS_INTERMISSION = 12 -- when 1, intermission will start in a second or two
|
|
et.CS_MULTI_INFO = 13
|
|
et.CS_MULTI_MAPWINNER = 14
|
|
et.CS_MULTI_OBJECTIVE = 15
|
|
|
|
et.CS_SCREENFADE = 17 -- used to tell clients to fade their screen to black/normal
|
|
et.CS_FOGVARS = 18 -- used for saving the current state/settings of the fog
|
|
et.CS_SKYBOXORG = 19 -- this is where we should view the skybox from
|
|
|
|
et.CS_TARGETEFFECT = 20
|
|
et.CS_WOLFINFO = 21
|
|
et.CS_FIRSTBLOOD = 22 -- Team that has first blood
|
|
et.CS_ROUNDSCORES1 = 23 -- Axis round wins
|
|
et.CS_ROUNDSCORES2 = 24 -- Allied round wins
|
|
et.CS_MAIN_AXIS_OBJECTIVE = 25
|
|
et.CS_MAIN_ALLIES_OBJECTIVE = 26 -- Most important current objective
|
|
et.CS_MUSIC_QUEUE = 27
|
|
et.CS_SCRIPT_MOVER_NAMES = 28
|
|
et.CS_CONSTRUCTION_NAMES = 29
|
|
|
|
et.CS_VERSIONINFO = 30 -- Versioning info for demo playback compatibility
|
|
et.CS_REINFSEEDS = 31 -- Reinforcement seeds
|
|
et.CS_SERVERTOGGLES = 32 -- Shows current enable/disabled settings (for voting UI)
|
|
et.CS_GLOBALFOGVARS = 33
|
|
et.CS_AXIS_MAPS_XP = 34
|
|
et.CS_ALLIED_MAPS_XP = 35
|
|
et.CS_INTERMISSION_START_TIME = 6
|
|
et.CS_ENDGAME_STATS = 37
|
|
et.CS_CHARGETIMES = 38
|
|
et.CS_FILTERCAMS = 39
|
|
|
|
et.CS_LEGACYINFO = 40
|
|
et.CS_SVCVAR = 41
|
|
et.CS_CONFIGNAME = 42
|
|
|
|
et.CS_TEAMRESTRICTIONS = 43
|
|
et.CS_UPGRADERANGE = 44
|
|
|
|
et.CS_MODELS = 64
|
|
et.CS_SOUNDS = ( et.CS_MODELS + et.MAX_MODELS )
|
|
et.CS_SHADERS = ( et.CS_SOUNDS + et.MAX_SOUNDS )
|
|
et.CS_SHADERSTATE = ( et.CS_SHADERS + et.MAX_CS_SHADERS )
|
|
et.CS_SKINS = ( et.CS_SHADERSTATE + 1 )
|
|
et.CS_CHARACTERS = ( et.CS_SKINS + et.MAX_CS_SKINS )
|
|
et.CS_PLAYERS = ( et.CS_CHARACTERS + et.MAX_CHARACTERS )
|
|
et.CS_MULTI_SPAWNTARGETS = ( et.CS_PLAYERS + et.MAX_CLIENTS )
|
|
et.CS_OID_TRIGGERS = ( et.CS_MULTI_SPAWNTARGETS + et.MAX_MULTI_SPAWNTARGETS )
|
|
et.CS_OID_DATA = ( et.CS_OID_TRIGGERS + et.MAX_OID_TRIGGERS )
|
|
et.CS_DLIGHTS = ( et.CS_OID_DATA + et.MAX_OID_TRIGGERS )
|
|
et.CS_SPLINES = ( et.CS_DLIGHTS + et.MAX_DLIGHT_CONFIGSTRINGS )
|
|
et.CS_TAGCONNECTS = ( et.CS_SPLINES + et.MAX_SPLINE_CONFIGSTRINGS )
|
|
et.CS_FIRETEAMS = ( et.CS_TAGCONNECTS + et.MAX_TAGCONNECTS )
|
|
et.CS_CUSTMOTD = ( et.CS_FIRETEAMS + et.MAX_FIRETEAMS )
|
|
et.CS_STRINGS = ( et.CS_CUSTMOTD + et.MAX_MOTDLINES )
|
|
et.CS_MAX = ( et.CS_STRINGS + et.MAX_CSSTRINGS )
|
|
|
|
return 1
|