silEnT Server Manual

Updated for silEnT 0.9.0

Server CVAR Reference
Statistics / Rankings Terms
Server Console Commands
Shrubbot
User Database
Banners
Shortcuts
Forcing Client Settings
Announcement Sounds
Hit Sounds
Lua
Change Log

Table of all server cvars

Announcements, Hit Sounds and Messages
g_privateMessages g_spreeOptions g_multikillTime g_obituary
g_dropMsg g_landmineNotifyType g_defaultHitSounds g_recognition
User Database, XP Save, Shrubbot and Bans
g_dbDirectory g_dbUserMaxAge g_XPSave g_XPSaveMaxAge_xp
g_XPSaveMaxAge g_XPSaveMinXP g_maxXP g_maxXPResetWarn
g_damageXP g_damageXPLevel g_XPDecay g_XPDecayRate
g_XPDecayFloor g_minCommandWaitTime g_tyranny g_warningOptions
g_maxWarnings g_warningDecay g_autoTempBan g_autoTempBanTime
g_minConnectLevel g_greetingPos g_clientBinaries g_identOptions
g_adminProtection g_protectMinLevel g_dbMaxAliases g_muteRename
g_ssDirectory
Flood Protection
g_floodprotect g_floodthreshold g_floodWait g_voiceChatsAllowed
Player Statistics, Rating and Team Balance
g_playerRating_minplayers g_stats g_shuffle_rating g_killRating
g_playerRating g_unevenTeamDiff g_unevenTeamFreq
Team and Match Restrictions
team_maxPanzers team_maxMortars team_maxFlamers team_maxMG42s
team_maxGrenLaunchers team_maxMedics team_maxEngineers team_maxFieldOps
team_maxCovertOps g_teamDamageRestriction g_minHits g_minAirstrikeTime
g_minArtyTime g_maxTeamLandmines g_maxTeamTripmines g_minGameClients
g_maxGameClients
Team Death Match (TDM)
g_TDMType g_TDMOptions g_TDMScore g_TDMObjBonus
Custom Configs
g_mapConfigs g_mapScriptDirectory g_campaignFile g_banners
g_playerCounting
Censoring
g_censor g_censorNames g_censorPenalty g_censorNeil
g_censorNeilNames g_censorMuteTime g_censorXP
Voting
g_voting vote_limit vote_percent vote_allow_comp
vote_allow_gametype vote_allow_kick vote_allow_map vote_allow_matchreset
vote_allow_mutespecs vote_allow_nextmap vote_allow_pub vote_allow_referee
vote_allow_shuffleteamsxp vote_allow_swapteams vote_allow_friendlyfire vote_allow_timelimit
vote_allow_warmupdamage vote_allow_antilag vote_allow_balancedteams vote_allow_muting
vote_allow_surrender vote_allow_restartcampaign vote_allow_nextcampaign vote_allow_poll
vote_allow_maprestart vote_allow_shufflenorestart vote_allow_cointoss vote_allow_putspec
vote_block_maprestart vote_block_matchreset vote_block_shuffleteamsxp vote_block_shufflenorestart
vote_block_nextmap vote_block_swapteams vote_block_surrender vote_block_map
vote_block_timelimit vote_block_poll vote_block_nextcampaign vote_block_restartcampaign
g_mapVoteFlags g_maxMapsVotedFor g_minMapAge g_resetXPMapCount
g_includedMaps g_excludedMaps g_noVoteTime g_voteResultsMinLevel
g_votedMuteLength
Weapons, Classes and Skills
g_poison g_poisonFlags g_medics g_adrenDmgReduction
g_medicHealthRegen g_throwableKnives g_maxKnives g_knifeChargeTime
g_constructibleXPSharing g_asblock g_panzersSpeed g_panzersGravity
g_dyno g_canisterKick g_canisterKickOwner g_reflectFriendlyFire
g_reflectFFWeapons g_friendlyFireOpts g_staminaRecharge g_mineid
g_medicSelfhealTime g_maxPanzerSuicides g_panzerPackDistance g_weapons
g_classWeapons g_mg42 g_coverts g_enableTMines
skill_soldier skill_medic skill_engineer skill_fieldops
skill_covertops skill_battlesense skill_lightweapons g_noSkillUpgrades
g_panzersVulnerable g_maxMarkers g_enableDemolition
Weapon Damage and Radius Settings
g_dmgKnife g_dmgSten g_dmgFG42 g_dmgPisto
g_dmgSMG g_dmgMG42 g_dmgMG g_dmgFG42Scope
g_dmgInfRifle g_dmgSniper g_dmgFlamer g_dmgGrenade
g_dmgGrenadeRadius g_dmgGLauncher g_dmgGLauncherRadius g_dmgTMine
g_dmgLandmine g_dmgLandmineRadius g_dmgSatchel g_dmgSatchelRadius
g_dmgPanzer g_dmgPanzerRadius g_dmgMortar g_dmgMortarRadius
g_dmgDynamite g_dmgDynamiteRadius g_dmgAir g_dmgAirRadius
g_dmgArty g_dmgArtyRadius g_dmg g_dmgHeadShotMin
g_dmgHeadShotRatio g_knifeThrowDamage g_dmgPPSh
Miscellaneous
g_packDistance g_dropHealth g_dropAmmo g_tossDistance
g_intermissionTime g_intermissionReadyPercent g_skills g_misc
g_skipCorrection g_maxWarp g_moverScale g_slashKill
g_maxSelfkills g_ammoCabinetTime g_healthCabinetTime g_spectator
g_truePing g_dropObj g_doubleJumpHeight g_serverInfo
g_fear g_realBody g_inactivity g_spectatorInactivity
g_gametype g_antilagDelay g_fixedphysics g_fixedphysicsfps
g_maxNameChanges g_disableComplaints g_watermark g_watermarkFadeAfter
g_watermarkFadeTime g_antiwarp g_panzerwar g_sniperwar
g_riflewar g_countryFlags g_flushItems g_maxConnsPerIP
shoutcastPassword g_headshot g_instagibDamage g_inactivityOptions
g_ettvFlags g_mode g_hitsounds g_playDead
g_shove g_shoveNoZ g_dragCorpse g_classChange
g_forceLimboHealth g_goomba g_goombaFlags g_spawnInvul
g_spawnInvulFair g_spinCorpse g_teamChangeKills g_extraStatistics
g_realPlayTime g_maxIgnoresPerMap g_min_crazyspeed g_max_crazyspeed
g_min_crazygravity g_max_crazygravity g_silentac g_proneDelay
g_goatSound g_rifleshootwar g_riflenadewar g_stenwar
g_pistolwar g_incognitoCountryFlag
Logs
g_logOptions g_logAdmin g_cheatLog
Omni-Bots
omnibot_enable omnibot_path g_bot_maxXP omnibot_flags
Lua
lua_modules lua_allowedModules


Server CVAR Reference

Announcements and Messages

g_privateMessages

Description
If set to 1, players can send private messages to one another with the m command.
Parameters
Type: [0|1]
Default: 0
Note
Clients can reject private message from other individual clients with the /ignore client command. Also, private messages can be disabled from individuals/levels using shrubbot flag '/'.

g_spreeOptions

Description
Options to control the display of killingsprees.
Parameters
Type: bitmask
1Enable killingsprees
2Enable killingspree ends
4Enable multikills
8When set, a top 3 current killing sprees message will be printed every minute, similar to binoc masters, and a map's longest killing spree will be printed every two minutes
16At the beginning of the intermission the highest spree will be shown
32/kill will end a spree
64Teamswitching will end a spree
128Multikill messages will be delayed g_multikillTime milliseconds, to prevent the doublekill -> multikill -> megakill -> etc. flooding
256Killing bots doesn't count for multikills or killingsprees (Note: they DO count for ending kill/deathsprees)
512Display the map and overall spree record when entering intmission
1024Summary: don't enable this flag if you don't have enabled g_spreeOptions flag 512 OR g_XPSave flag 16 or Shrubbot flag t
Spree records are automatically saved into XPSave file when a map ends. By enabling this flag, you also store the spreerecord at the points where g_XPSave flag 16 would store XP. When you don't have set XPSave flag 16 and g_spreeOptions flag 512 and not allow users to use !spreerecord you should NOT set this flag as it takes some extra resources. When XPSave flag 16 is set this doesn't matter (it actually takes much less resources then). When only g_spreeOptions flag 512 or shrubbot flag t is set it won't do much harm anyway (your server won't explode)
2048Enable revivesprees ([revive] blocks)
Default: 0

g_multikillTime

Description
The time (in milliseconds) in which two kills should be made in order to count them as multikills.
Parameters
Type: integer
Default: 1000

g_obituary

Description
This cvar controls will the server send obituary events to the clients. If this is set to 0, no obituary events will be sent. If set to any nonzero value, obituary events will be sent.
Parameters
Type: [0|1]
Default: 1

g_dropMsg

Description
Message to add to the drop screen when a client is kicked or banned.
Parameters
Type: string
Default: ""

g_landmineNotifyType

Description
Decide which landmine reveal notifications server should send.

Server can send two types of landmines reveal notification. Standard one, generated (sent) for each landmine revealed and summary one,
which is sent after player spotting landmines stops using binoculars.
It's generated after each binculars zoom.

Parameters
Type: [0|1|2|3]
0Only standard notfications (for each landmine revealed).
1Only single summary notifications for one binocs zoom. New type of notification.
For example: during one binocs zoom, 3 mines were revealed, but only 1 summary notification is sent. It contains information: 3 mines spotted by "player name" and last one was in location "some location".
2Don't send any landmine notifications.
3Send all notifications.
For example: for 3 spotted landmines send 4 notifications (3 for each landmine + 1 summary notification).
Default: 3

g_defaultHitSounds

Description
Selects the default hit sounds on the server. Starting from silEnT 0.6.0, it is possible for the players to choose what kind of hit sounds are played. If the client cvar cg_hitSoundType is 0, the g_defaultHitSounds determines what type of hit sounds are used. Also, if the client cvar cg_hitSoundType is 0, the server may also add custom hit sound files to a custom pk3 file. These sounds are automatically loaded if available. However, if the client cvar cg_hitSoundType is 1,2 or 3, the client will use strictly the hit sounds they have selected. Custom hit sounds are placed to the root folder "sounds/hitsounds" in the custom pk3. They must never overload any of the files in the subfolders, silent, etpro or etpub.
Parameters
Type: [0|1|2|3]
0No selection, will default to silEnT in the client end.
1Defaults silEnT hitsounds.
2Defaults ETPro hitsounds.
3Defaults ETPub hitsounds.
Default: 1

g_recognition

Description
Enables additional recognition notifications for players doing objective, e.g. for planting dynamite, disarming it, destroying objective.
Parameters
Type: [0|1]
0Additional recognition notifications disabled.
1Additional recognition notifications enabled.
Default: 0

User Database, XP Save, Shrubbot and Bans

g_dbDirectory

Description
If set the server stores various information about server statistics, map information, sprees, users, bans and XP save. To use any of the functionalities, this must be set. The cvar defines a directory and only a directory that is relative to fs_game. All the used filenames are predefined and cannot be changed. For security reasons, this cvar must be set during server initialisation. (i.e. It may not be changed when the server is running.) In this directory there can be 5 files, depending of other server settings.
All the required files will be created automatically to the folder when needed if there aren't any suitable files already present.

You can freely edit the human readable files by hand as long as their correct format remains and the server is notified of the changes using appropriate shrubbot commands. With the exceptions of serverstat.cfg and mapvoteinfo.cfg that will be overwritten by the server. If you want to hand edit the values of these files, the server be shutdown.
Parameters
Type: string
Default: "database"
Note
The server reads the value of this cvar only from the config file or from the command line. It cannot be edited using RCON. If you want to store all the files in the same root directory where all the pk3 files and binaries are, you can set this cvar to value ".". It will then use the fs_game directory.

g_dbUserMaxAge

Description
The number of seconds that user is saved to the database since any data of this user was last saved to database.

The database cleaning is done during intermission so this should not cause any performance problems when actions are taken. However, by setting this value to 0 or not setting the value at all, will disable the feature.
For servers with high database sizes, this can improve performance since users that are not needed will be removed automatically.

You can use a modifiers with this value. Here are some examples:

set g_dbUserMaxAge "1o" - 1 month
set g_dbUserMaxAge "2w" - 2 weeks
set g_dbUserMaxAge "5d" - 5 days
set g_dbUserMaxAge "36h" - 36 hours
set g_dbUserMaxAge "120m" - 120 minutes

Parameters
Type: integer
Default: 0

g_XPSave

Description
Controls XP save behaviours.
Parameters
Type: bitmask
1Store xp when a client disconnects. This is always required for the XP save to work.
2Don't reset xp to the pre-map start values on a map restart, shuffle, etc.
4Never reset xp (ever).
8Force the disconnection of clients with the same GUID as the connecting client. This is useful in saving the stored XP of players with unreliable network connections since they should still get their stored XP even if reconnecting immediately with a new IP address.
This feature is enabled by default unless you have sv_wwwDlDisconnected enabled. sv_wwwDlDisconnected seems to interfere with this feature, so do not enable this flag if you change pk3's on your server often because stored XP will be lost over disconencted downloads.
16Store the XP at restarts, nextmaps, mapvotes, campaignvotes and similar cases.
Default: 0

g_XPSaveMaxAge_xp

Description
The number of seconds that must pass without saving XP from this player before XPSave forgets his/her xp skills. Admins can adjust the amount of required XP to save with g_XPSaveMinXP server cvar.

You can use a modifier with this value. Here are some examples:

set g_XPSaveMaxAge_xp "1o" - 1 month
set g_XPSaveMaxAge_xp "2w" - 2 weeks
set g_XPSaveMaxAge_xp "5d" - 5 days
set g_XPSaveMaxAge_xp "36h" - 36 hours
set g_XPSaveMaxAge_xp "120m" - 120 minutes

Parameters
Type: integer
Default: 1d
Note
If g_XPSaveMaxAge is less than g_XPSaveMaxAge_xp, g_XPSaveMaxAge will be used.

g_XPSaveMaxAge

Description
The number of seconds that must pass without saving XP from this player before XPSave forgets his/her skills/killrating/playerrating/mute status. Admins can adjust the amount of required XP to save with g_XPSaveMinXP server cvar.

You can use a modifier for this value. Here are some examples:

set g_XPSaveMaxAge "1o" - 1 month
set g_XPSaveMaxAge "2w" - 2 weeks
set g_XPSaveMaxAge "5d" - 5 days
set g_XPSaveMaxAge "36h" - 36 hours
set g_XPSaveMaxAge "120m" - 120 minutes

See also g_XPSaveMaxAge_xp

Parameters
Type: integer
Default: 1w

g_XPSaveMinXP

Description
The increment of XP that is required for the time of the latest XP save to get updated. The silEnT mod separates the XP save and connection times so that players who visit spectators without playing will not be removed by the g_dbUserMaxAge but can still lose their stored XP if they do not play. Admins can adjust the requirement with this value. Using -1 will disable the requirement and XP save will consider every connect valid for the XP save. Using value 0, will consider XP save valid if the player has gained even 1 XP point during the map. Please note that the this value is only for one map and using high values may cause some players to not achieve enough XP to get their last stored XP time to get updated and also new XP to get saved. Also notice that this does not prevent SMG weapon statistics to get updated but it can prevent class XP and rating values to get updated into the database.
Parameters
Type: integer
Default: -1

g_maxXP

Description

This is a vicious cvar that will reset a players XP once their overall XP score reaches it.

Set this to -1 to disable it.

Parameters
Type: integer
Default: -1

g_maxXPResetWarn

Description

Displays a message warning players whose XP is close to being reset due to the g_maxXP setting. The warning is displayed every thirty seconds once the warning threshold is passed.

This setting can have an integer value (eg, 950), in which case it means that the player will be warned every thirty seconds once he has more than 950 XP.

This setting can also have percentage value (eg, "90%"), and that will cause the warnings to start when the player reaches 90% of g_maxXP XP.

If you specify a negative value, players will be warned when that offset is hit. For example:

For a value of -75, warnings will to display then players have g_maxXP - 75 XP

For a value of -2%, warnings will display when players have 98% of g_maxXP

Set this to 0 to disable it.

Parameters
Type: integer
Default: 0

g_damageXP

Description
Optionally enables the awarding of XP based upon the amount of damage a player has done to the opposing team.
Parameters
Type: integer
0Disabled: use normal ET XP awarding methods
11 point of XP is awarded per g_damageXPLevel points of damage done. The XP is placed in the skill category of the weapon used. When this mode is enabled, kills (regardless of method) are awarded a fixed value of 1 point of XP.
21 point of XP is awarded per g_damageXPLevel points of damage done. The XP is placed in the Battle Sense category. Normal XP amounts are awarded for kills (typically 3-5 XP).
Default: 0

g_damageXPLevel

Description
This setting determines the amount of damage that a player must do to earn 1 point of XP. See g_damageXP for additional information.
Parameters
Type: integer
Default: 50

g_XPDecay

Description
This is a bitmask that controls the XP decay feature.

See also g_XPDecayRate.

Parameters
Type: bitmask
1Enable XP Decay
2Do not decay a player's XP when they are disconnected from the server
4Do not decay a player's XP for the class they are currently playing as (e.g. Medic).
8Do not decay a player's XP while they are spectating
16Do not decay a player's XP during warmup/intermission
32Do not decay a player's XP when he/she is playing. This means that they are on a Allies or Axis and the game is active.
64Do not decay a player's Battle Sense XP when he/she is playing.
128Do not decay a player's Light Weapons XP when he/she is playing.
Default: 0

g_XPDecayRate

Description

This is the rate (in skillpoints per second) that XP skill points for each skill will decay when g_XPDecay is enabled.

Setting this to 0.1 would result in a player losing 6 points per minute IN ALL SKILLS, so up to 42XP per minute if the player has skill points for each skill.

You can use a modifier with this value. Here are some examples:

set g_xpDecayRate "5000/o" - Decay 5000xp per skill per month
set g_xpDecayRate "1000/w" - Decay 1000xp per skill per week
set g_xpDecayRate "500/d" - Decay 500xp per skill per day
set g_xpDecayRate "40/h" - Decay 40xp per skill per hour
set g_xpDecayRate "2/m" - Decay 2xp per skill per minute

Parameters
Type: float
Default: 0.0

g_XPDecayFloor

Description

This is the minimum that any particular skill can be reduced to by g_XPDecay.

For example, setting this to 140.0 will ensure that no player will ever lose rank or skill levels due to g_XPDecay.

Parameters
Type: float
Default: 0.0

g_minCommandWaitTime

Description
Time you have to wait between using 2 shrubbot commands in milliseconds.
Parameters
Type: integer
Default: 0

g_tyranny

Description

This cvar controls the use of administrator commands that could be used by admins to cheat or abuse players. If it is set to 0 you will not be able to use commands on your server such as !gib, !slap, !burn, etc.

Also, you will not be able to use g_logOptions flag 256 (log private messages) unless g_tyranny is enabled.

g_tyranny must also be enabled in order to specify a client in using the 'playsound' server command.

'g_tyranny' and its value appear in the serverInfo string to serve as a warning for perspective players.

Parameters
Type: [0|1]
Default: 0
Note:
If you enable this, you MUST do so immediately when the server starts (before the first map is loaded). This means putting "set g_tyranny 1" in the .cfg file that is exec'ed on server start. If you try to change this on a running server, you will get the message "g_tyranny is read only."

g_warningOptions

Description
This cvar changes the behaviour of the shrubbot !warn command. By setting flag 1 or 2 you activate the advanced warning (storage) system
Parameters
Type: bitmask
1Link stored warnings to the guid of a player
2Link stored warnings to the ip of the player
4Remove the oldest warning when the total maximum ammount of warnings is reached
8Auto-kick a player for 2 minutes when he has more than g_maxWarnings warnings
16Allow clients to see their own warnings with the /warnings command
Default: 0

g_maxWarnings

Description
The ammount of warnings that can be stored for 1 player.
Parameters
Type: integer
Default: 3

g_warningDecay

Description
The time in hours that a warning will be stored.
Parameters
Type: integer
Default: 24

g_autoTempBan

Description
When set, anyone kicked for the reasons you specify, will be temporarily banned for g_autoTempBanTime seconds.
Parameters
Type: bitmask
1Tempban when reaching g_teamDamageRestriction
2Tempban when someone is kicked by a shrubbot admin (using the !kick command). A normal shrubbot !kick kicks for 120 seconds
4Tempban when someone is kicked by the advanced warning system. A normal kick by the warning system lasts 120 seconds
Default: 0

g_autoTempBanTime

Description
The number of seconds kicked for when g_autoTempBan is set.
Parameters
Type: integer
Default: 1800

g_minConnectLevel

Description
The minimum shrubbot adminlevel required for players to be able to connect.
Parameters
Type: integer
Default: 0
Note
This only works for positive levels, any value <= 0 will allow everyone to connect. Bots won't be able to connect either.

g_greetingPos

Description
Location where the shrubbot greetings are displayed.
Parameters
Type: [ 0 | 1 | 2 | 4 ]
0Chat area
1Center of screen
2Left notification area
3Top of the screen
4Console only
Default: 0

g_clientBinaries

Description
silEnT mod can be configured to not allow players with unknown client binaries to play on the server. This cvar controls the server behaviour when the client binary is not one of the recognized ones.
List of recognized binaries
Parameters
Type: bitmask
1Don't allow players with unknown client executables.
2Log unknown executables to the g_cheatLog. Note, if the server does not allow unknown client binaries the log message will be different for message.
4Report unknown executables to admin chat. Note, if the server does not allow unknown client binaries the players will not be reported to admin chat.
Default: 0

g_identOptions

Description
Starting from version 0.3.0, the silEnT mod can be configured to enforce bans using hardware based identification. This is not any fool proof system but it is made to be an addition to the already existing ban methods. The hardware identification cannot be seen in human readable form by admins while on the server. The data that is sent to the server can be seen in the client by writing /cg_ident to the console. The result is a hexadecimal string that changes its value between maps. The format and data used to create the client identification may change between different versions of the silEnT mod. The server can be configured with the g_identOptions server cvar.
Parameters
Type: bitmask
1Kick clients that are spoofing the client identification to enter the server
2Kick clients that are not sending the identification to the server
4Enforce bans using the identification
8Report all actions taken based on client identification to the adminchat
16If a player is caught of circumventing a ban, a new ban is created with for it. The ban reason will have additional (Automated copy of a ban for xxxxxxxx) where xxxxxxxx is replaced with the 8 character PB GUID of the old ban.
Default: 0

g_adminProtection

Description
Starting from silEnT 0.5.0, admin levels can be protected against spoofing. The protection works by establishing trust between the client and the server. The trust must be confirmed by an online human admin for the new trusted admins to gain access to their assigned level. Specific command !confirm is used for it. Do note that establishing the trust between the server and the player is not the same as assigning admin level. In fact, anyone who is capable of recognizing the real admin can be safely allowed to use the !confirm command. The !setlevel command will automatically establish the trust if the admin level protection is enabled and the level is above or equal to the g_protectMinLevel. The admin protection is designed so that only the important admin levels are protected. This means that the levels above the g_protectMinLevel require established trust between the server and the client. Normal guests do not need this. It is also advisable to not set the g_protectMinLevel too low to avoid server load with these admins.
Parameters
Type: bitmask
1Log succesfull authentications to the cheat log
2Log admin spoofing attempts to the cheat log
4Report admins waiting for confirmation on their level to the admin chat
Default: 7

g_protectMinLevel

Description
Starting from silEnT 0.5.0, admins can be protected against spoofing. The protection works by establishing trust between the client and the server if the admin level is higher then the g_protectMinLevel. Setting this to -1 will disable the freature. Do note that when you enable the feature, noone has yet established trust with the server and the first one to have it, must be confirmed by an rcon command. Either !setlevel if the database still doesn't have admins or !confirm if the admin has been set in the database already.
Parameters
Type: integer
Default: -1

g_dbMaxAliases

Description
Starting from silEnT 0.6.0, the silEnT mod can store player aliases in an additional database. To enable this database, set this value to higher then 0. If this value is a positive integer, it defines how many aliases are stored in the database for one player. If the player has more aliases then this value, the oldest aliases are dropped.
Parameters
Type: integer
Default: 0

g_muteRename

Description
If this cvar is set to 1 the muted player won't be allowed to change his name while he is muted.
Parameters
Type: [0|1]
Default: 0

g_ssDirectory

Description
Officially since 0.9.0. This cvar is required for the Screenshot System (SS) to work correctly. It defines where to store the screenshots.
Parameters
Type: string
Default:

Flood Protection

g_floodprotect

Description
Enable/disable silEnT flood protect. Flooding means that a client is sending too many messages to the server (vsays, callvotes, etc...). Enabling g_floodprotect disables the engine's sv_floodprotect functionality. If you enable g_floodprotect, make sure you set a value for g_floodthreshold.
Parameters
Type: [0|1]
Default: 1

g_floodthreshold

Description
The number of messages per second before ignoring the client's messages. Only in effect when g_floodprotect is turned on.
Parameters
Type: integer
Default: 6

g_floodWait

Description
The minimum number of milliseconds between two messages when g_floodprotect is enabled. This is a hard limit so admins aren't allowed to override it. 1000 milliseconds copies sv_floodprotect behaviour. This CVAR should not have a value below 500 in order to keep a public server playable.
Parameters
Type: integer
Default: 1000

g_voiceChatsAllowed

Description
The number of voicechats allowed in minute?? (Undocumented ETPub cvar).
Parameters
Type: integer
Default: 4

Player Statistics, Rating and Team Balance

g_playerRating_minplayers

Description
The minimum number of players that must participate in a map in order for it to count towards each player's player rating.
Parameters
Type: integer
Default: 8

g_stats

Description
This is a bitflag cvar used to control the way statistics are handled.
Parameters
Type: bitmask
1When shooting a corpse to gib, do not count it as a hit.
2When shooting a corpse to gib, do not count it as a shot.
Default: 0
Note
Set this to 3 to use the behaviour of etmain and shrubet.

g_shuffle_rating

Description
Sets the rating system used by shuffle.
Parameters
Type: [ 1 | 2 | 3 | 4 | 5 ]
1Use player XP
2Use the rate at which players have gained XP since connecting.
3Use the killRating (g_killRating must be nonzero)
4Use the playerRating (g_playerRating must be nonzero)
5Use the playerRating (g_playerRating must be nonzero), but take the map into account and give the teams closest to 50/50
Default: 3

g_killRating

Description

When not set to 0 silEnT will track a player's killing ability using an ELO type statistic similar to chess. Each kill will increase a player's kill rating based on how hard the kill was. Killing unskilled players will result in very few points whereas an unskilled player killing a skilled player will result in more points. Kill rating also takes into account the weapon used (less for arty, more for knife).

See also g_shuffle_rating.

Parameters
Type: bitmask
1Use kill rating. A dummy flag since any non-zero value for g_killRating will enable it.
2Make kill rating visible. Players can use /killrating and at the end of each map a message will display the top killers for the map and overall.
4Log files will include the GUIDs of the players involved in kills. This makes kill tracking a lot easier.
8Disable kill rating from the score board. This can prevent players from playing for higher kill rating alone. This does not prevent the "killrating" client command enabled with flag 2 from working.
Default: 3

g_playerRating

Description

When not set to non zero positive value, silEnT will track a player's ability to win against good teams using an ELO type statistic similar to chess. Each win will increase a player's rating based on how hard the opposing team was. Skilled teams defeating less skilled teams will result in very few points whereas an relatively low- rated team defeating a good team will result in more points. Player rating also takes into account the number of players on each team (less points when a very large defeats a small one) and which side tends to win more often on the current map (e.g. Allies tend to win tc_base).

See also g_shuffle_rating.

Parameters
Type: bitmask
1Use player rating. A dummy flag since any non-zero value for g_playerRating will enable it.
2Make player rating visible. Players can use /playerrating and at the end of each map a message will display the top player.
4Put player rating on the scoreboard instead of the XP.
8Print out extra info at the end of a round that can be used to further refine the playerrating model.
16The same as flag 8 except a lot more info is output.
Default: 3

g_unevenTeamDiff

Description
If g_teamForceBalance is set, setting g_unevenTeamDiff will notify all players when team numbers are off by g_unevenTeamDiff or more. See also g_unevenTeamFreq

Set to 0 to disable this feature

Parameters
Type: integer
Default: 0

g_unevenTeamFreq

Description
>How often the team disparity notification occurs. Only valid when g_unevenTeamDiff is set to a positive value. Value is in seconds.

See also g_unevenTeamDiff

Parameters
Type: integer
Default: 30

Team and Match Restrictions

team_maxPanzers

team_maxMortars

team_maxFlamers

team_maxMG42s

team_maxGrenLaunchers

Description

Server cvars team_maxPanzers, team_maxMortars, team_maxFlamers, team_maxMG42s, team_maxGrenLaunchers have identical behaviour.

Limits the number of the given weapon per team.

You can either set it to a whole number to set a hard limit, or you can set it to a percentage value using the % symbol to limit based on the number of players on the team. When using percentage values, any partial values are rounded up

You can also use a number such as "20%-" for this setting, in which case partial values will be rounded down

Only use integer values like 1 or 2 and NOT 1.0 or 2.5. If you refuse to do this and use a . in your cvar, the client will not display the restriction in the right way and people might not be able to use heavy weapons while they actually are available!

Example:set team_maxFlamers "2" This will limit each team to 2 flamethrowers, regardless of how many players are on the team

Example:set team_maxFlamers "10%"This will limit each team to having only 10% of their players as flamethrowers, and a team with few players (for example, 5) will be able to have 1 flamethrower. They will be able to have their second flamethrower when they have 11 players on the team.

Example:set team_maxFlamers "10%-"This will limit each team to having only 10% of their players as flamethrowers, and a team will not be able to have any flamethrowers until there are 10 players in the team. They will be able to have their second flamethrower when there are 20 players on the team.

Set this to -1 to disable limits

Parameters
Type: integer
Default: -1

team_maxMedics

team_maxEngineers

team_maxFieldOps

team_maxCovertOps

Description
Restricts the number of players that can play a specific class / team. You can either set it to a whole number to set a hard limit, or you can set it to a percentage value using the % symbol to limit based on the number of players on the team. When using percentage values, any partial values are rounded up

You can use a number such as "20%-" for this setting, in which case partial values will be rounded down

Example:set team_maxMedics "5" This will limit each team to 5 medics, regardless of how many players are on the team

Example:set team_maxMedics "15%"This will limit each team to having only 15% of their players as medics, and a team with few players (for example, 3) will be able to have 1 medic. They will be able to have their second medic when they have 7 players on the team.

Example:set team_maxMedics "15%-"This will limit each team to having only 15% of their players as medics, and a team will not be able to have medics until there are 7 players in the team. They will be able to have their second medic when there are 14 players on the team.

Set this to -1 to disable limits

Parameters
Type: string
Default: -1

g_teamDamageRestriction

Description
When greater than 0, anybody that has this percentage of hits inflicted on a teammate will automatically be kicked. A minimum of g_minhits hits total required before this is calculated. Client can see current stats for themselves by doing a /damage in console. Implemented to mimic shrub behavior as much as is possible, there are other ways to implement this feature, which may be implemented in addition to current manner.
Parameters
Type: integer
Default: 0

g_minHits

Description
Minimum number of damaging hits required before calculating if player has reached g_teamDamageRestriction threshold. Flamethrower and landmine hits are adjusted similar to shrub. Medics get -2 hits for every revive.
Parameters
Type: integer
Default: 6

g_minAirstrikeTime

Description
The time (in seconds) that must elapse between airstrikes PER TEAM.
Parameters
Type: integer
Default: 10

g_minArtyTime

Description
The time (in seconds) that must elapse between airtillery strikes PER TEAM. Attempts to do airstrike before the timeout will get "Insuffient fire support" message.
Parameters
Type: integer
Default: 10

g_maxTeamLandmines

Description
Sets the maximum number of landmines a team can have planted at any given time. This value should be 0 or greater.
Parameters
Type: integer
Default: 10

g_maxTeamTripmines

Description
Sets the maximum number of tripmines a team can have planted at any given time. This value should be 0 or greater.
Parameters
Type: integer
Default: 3

g_minGameClients

Description
The number of clients needed to start a match.
Parameters
Type: integer
Default: 0

g_maxGameClients

Description
The maximum allowed amount of active clients.
Parameters
Type: integer
Default: 0

Team Death Match (TDM)

g_TDMType

Description
The type of the played Team Death Match.
Parameters
Type: [ 1 | 2 | 3 ]
1Map ends only when timelimit hits
2Map ends when either the target score is reached or the timelimit hits
3Map ends only when the target score is reached
Default: 0

g_TDMOptions

Description
Possible options for the played Team Death Match.
Parameters
Type: bitmask
1Map voting is enabled during the intermission (i.e. The players vote for the next map to play during the intermission.)
2Completing the map objective will give the team score bonus that is controlled by the g_TDMObjBonus server cvar
4Teams get negative points when they do selfkills or teamkills
8Players cannot selfkill during the TDM. Regardless of other selfkill settings the server has configured
Default: 5

g_TDMScore

Description
This is the target score the teams attempt to make to win the game in TDM game types 2 and 3.
Parameters
Type: integer
Default: 100

g_TDMObjBonus

Description
This is the value that is added to the team score if the team completes the map objective. Adding the bonus does not depend of the TDM type.
Parameters
Type: integer
Default: 20

Custom Configs

g_mapConfigs

Description

On each map load, the silEnT server will execute 2 configs if possible. The default.cfg and after that a map specifig config file [mapname].cfg. For example if you set g_mapConfigs to 'mapcfg', when the map fueldump starts, the server will try to exec 'mapcfg/fueldump.cfg'.

Set this to "" to disable it.

Set this to "." to look for the cfg file in the current directory (fs_home_path).

Starting from silEnT version 0.5.2, admins can add settings that executed for specific player amounts. The commands are enclosed in [players low-high] ... [/players] blocks. The low is the lowest amount of players for those settings and high is the maximum amount of players for those settings. For example:

[players 0-10]
set team_maxPanzers 0
[/players]
will disable panzerfaust when player amount is less or equal to 10. The blocks can be placed anywhere in the map config files. If the block is closed with [/players], the following commands do not depend on the player amounts. The player blocks can not be nested. If two player blocks follow each other, the second definition opens a new one and the old one closes. For example:
[players 0-15]
set g_excludedMaps ":mlb_temple:"
[players 16-*]
set g_excludedMaps ":adlernest:"
[/players]
will esclude map mlb_temple if the player amount is less or equal to 15 and exclude map adlernest if the player amount is 16 or more. The player amount counting is controlled with g_playerCounting server cvar.

When in g_gametype 6 mode (Map Voting) and g_resetXPMapCount is set, an additional file named vote_X.cfg is also exec'ed. X indicates the position of the next map in the campaign. For example, vote_2.cfg will exec'ed such that when map 1 ends, any cvars in vote_2.cfg will affect map voting for map 2. Player blocks are not used with vote_X.cfg files.

Parameters
Type: string
Default: ""

g_mapScriptDirectory

Description

Similar to ETPro's b_mapscriptsdirectory. Set it to the name of a directory in your fs_path that contains custom map scripts.

For example you can copy the 'etpromapscripts' directory from the ETPro distribution to your 'silent' directory and add:

set g_mapScriptDirectory "etpromapscripts"
to your cfg.

NOTE: It is strongly recommended that you use the map scripts distributed with silEnT or ETPub since these updated scripts fix very important bugs in some of the original map scripts.

Setting g_mapScriptDirectory to "" disables any use of map .script files.

Parameters
Type: string
Default: ""

g_campaignFile

Description

Similar to ETPro's b_campaignFile. If you set this to the name of a file in your fs_path it will be interpreted as a .campaign script and all other .campaign scripts in your pk3 files will be ignored.

This is useful for making custom campaigns since you don't need to offer a pk3 file containing a custom .campaign script for all clients to download. However, if the client has not downloaded this .campaign file in a pk3, they will not see information about the campaign. Such information includes:

Also, even though the built-in campaigns cmpgn_centraleurope and cmpgn_northafrica will not be valid, they will still appear in the client's VOTE -> MAP menu. If a vote for one of them passes, nothing will happen.

Setting this to "" disables it.

Parameters
Type: string
Default: ""

g_banners

Description
This should be set to the name of your banners.cfg file if you want to enable banners. See banners documentation for more information about this file.

Example:

set g_banners "banners.cfg"

Parameters
Type: string
Default: ""

g_playerCounting

Description

This cvar controls how the player amount is calculated for the mapconfigs. The player amount value is the highest number of simultaneously fully connected players during the map or warmup. The player counting can be disabled from the warmup period. If the player counting is enabled during the warmup, the players are counted right at the end of the warmup. This allows the teams to stabilize after intermission. Similarly the counting is triggered always with a 3 second delay from the change in the teams. Team changes include players joining the server and staying in the spectators.

Parameters
Type: bitmask
1Enable filtering. This will add the 2 latest values together and divide them by 2.
2No player counting during warmup.
4Count spectators into players. Without this flag, only players in the playing teams are counted.
8Does not include server bots into the player count.
Default: 1

Censoring

g_censor

Description
A comma delimited string of words that will be censored from chat.
Type: string
Default: ""

g_censorNames

Description
A comma delimited string of words that will be censored from player names.
Type: string
Default: ""

g_censorPenalty

Description
This controls the censoring behaviour.
Parameters
Type: bitmask
1Kill the player
2Kick players with names containing words in g_censorNames
4Kill, but don't gib
8Auto-mute for g_censorMuteTime [60] seconds
16Lose the amount of xp specified in g_censorXP
32Burn
Default: 0
Note
If you use both 1 and 4, it will gib (like shrub did).

g_censorNeil

Description
Use Neil Toronto's censor filter. It'll catch some symbol and number replacements, and spaces now. It also adds some common words and common words with "swears" in them that should really be OK. For example, it will not censor "assassin" but it will censor "ass".
Parameters
Type: [0|1]
Default: 0

g_censorNeilNames

Description
Use Neil Toronto's censor filter for player names. See g_censorNeil description for details.
Parameters
Type: [0|1]
Default: 0

g_censorMuteTime

Description
The number of seconds to auto-mute as a censor penalty. Only works if bitflag 8 is added to g_censorPenalty.
Parameters
Type: integer
Default: 60

g_censorXP

Description
The amount of XP to lose as a censor penalty. Only works if bitflag 16 is added to g_censorPenalty.
Parameters
Type: integer
Default: 5

Voting

g_voting

Description
Control voting behaviour.
Parameters
Type: bitmask
1Votes will pass on the number of votes cast rather than total eligible voters.
2Votes that pass do not count against the vote_limit for the caller.
4" (called by NAME)" is appended to the vote description where NAME is the name of the player that called the vote.
8Show the number of YES and NO votes after a votes has passed or failed. This also shows if a vote is canceled or passed by an admin.
Default: 0

vote_limit

Description
This value defines how many votes one player can invoke during one map.
Parameters
Type: integer
Default: 5

vote_percent

Description
The required percentage of yes votes for the vote to pass.
Parameters
Type: integer
Default: 50

vote_allow_comp

vote_allow_gametype

vote_allow_kick

vote_allow_map

vote_allow_matchreset

vote_allow_mutespecs

vote_allow_nextmap

vote_allow_pub

vote_allow_referee

vote_allow_shuffleteamsxp

vote_allow_swapteams

vote_allow_friendlyfire

vote_allow_timelimit

vote_allow_warmupdamage

vote_allow_antilag

vote_allow_balancedteams

vote_allow_muting

vote_allow_surrender

vote_allow_restartcampaign

vote_allow_nextcampaign

vote_allow_poll

vote_allow_maprestart

vote_allow_shufflenorestart

vote_allow_cointoss

vote_allow_putspec

Description
All vote_allow_* cvars behave identical. Cvars that restrict the rights of players to use the respective /callvote command.
Parameters
Type: [0|1]
Default: 1

vote_block_maprestart

vote_block_matchreset

vote_block_shuffleteamsxp

vote_block_shufflenorestart

vote_block_nextmap

vote_block_swapteams

vote_block_surrender

vote_block_map

vote_block_timelimit

vote_block_poll

vote_block_nextcampaign

vote_block_restartcampaign

Description
All vote_block_* cvars behave identical. Cvars that define the time in seconds, how long each respective vote is allowed from the start of map. Each integer value is independent. When set to 0, the votes are not blocked at all.
Parameters
Type: integer
Default: 300

g_mapVoteFlags

Description
Controls the behaviour of the map voting.
Parameters
Type: bitmask
1Changes the tie breaker so that the map not played in the longest wins
2Intermission doesn't end until g_intermissionReadyPercent people have voted. If there are no players connected to the server, intermission will end at the timeout. (WARNING: This means that if there are spectators connected and not voting, the next map will not load until those spectators either vote, disconnect, or get kicked by the system)
4Multi vote: Allows everybody to vote for 3 maps instead of one, first choice map gets 3 votes, second choice gets 2, third choice gets one
8Don't randomize the maps, so they will always appear in the same order
Default: 0

g_maxMapsVotedFor

Description
How many maps are presented to users for voting upon during intermission
Only valid when map voting is enabled.
Parameters
Type: integer
Default: 6

g_minMapAge

Description
How long a map is ineligible for voting, after it is played
Only valid when map voting is enabled.
Parameters
Type: integer
Default: 3

g_resetXPMapCount

Description
How many maps occur before XP is reset. If g_XPSave flag 4 is set, g_resetXPMapCount is ignored. Similarly, if g_resetXPMapCount is set to 0, it is the same as setting g_XPSave flag 4
Only valid when map voting is enabled.
Parameters
Type: integer
Default: 0

g_includedMaps

Description
Used to include map regardless of any other restrictions. Including g_excludedMaps setting. The format is ":map1:map2:map3:", where mapX is the .bsp name. Note that each mapname must be fully surrounded by ":" otherwise the map will be ignored in the list.
Only valid when map voting is enabled.
Parameters
Type: string
Default: ""

g_excludedMaps

Description
Used to exclude map that would otherwise be listed in the map voting list. The format is ":map1:map2:map3:", where mapX is the .bsp name. Note that each mapname must be fully surrounded by ":" otherwise the map will not be excluded.
Only valid when map voting is enabled.
Parameters
Type: string
Default: ""

g_noVoteTime

Description
The minimum time (in seconds) that players must wait between two votes.
Parameters
Type: integer
Default: 0

g_voteResultsMinLevel

Description
Show results of votes per team to everyone with at least this shrubbot level. Set to -1 to disable. Referees can always see the results when this CVAR is set greater than 0.
Parameters
Type: integer
Default: -1

g_votedMuteLength

Description
Defines the length of the mute when players have voted on it so that unmuting won't be forgotten. Set value to 0 or negative for permanent mutes. Modifiers can be used with this value.
Parameters
Type: integer
Default: 3h

Weapons, Classes and Skills

g_poison

Description
Gives medics the ability to poison enemies by sticking with their medic syringe. Enemies will be damaged at g_poison/second when g_poison is set to a value more than 0. Setting to 0 will disable poison needles.
Parameters
Type: integer
Default: 0

g_poisonFlags

Description
Controls the effects of g_poison.
Parameters
Type: bitmask
1Poisoned player's screen shakes.
2Other players see the poisoned player's head shaking.
4Poisoned player appears to bend over (hurl) every 2 seconds. (poisoned player does not see this happen.)
8Poisoned player cannot use +attack. NOTE: because of client side prediction, the client may see the gun firing occasionally if they hold down +attack, but no shots are fired.
16Poisoned player is disoriented (view turned upside down).
Default: 7

g_medics

Description
Controls various aspects of the medic, to nerf or otherwise change their behavior.
Parameters
Type: bitmask
1Medics can't pick up their own health packs to cure themselves of poison needle effects
2Medics can't pick up their own health packs at all
4A level 4 medic will always be revived to full health (no matter what the level of the reviving medic is)
8Value is not in use
16Medics do not spawn with akimbo pistols, regardless of their light weapons skill
32Medics spawn with pistol only, and can't pick up SMG of either team However, any class can steal a medics uni, if g_classChange is set to 1, and receive the medic benefits while retaining their current weapons, including akimbos and SMG
64Medics can use syringes to heal living teammates as an alternative to the tk/revive cycle.
128Level 4 medics can inject other players with their adrenaline. This can be done when holding the revive needle by pressing the alt-fire button, or with the /adrenother client command.
256Level 4 medics cannot adrenaline self. If this flag is on, Medics will not receive adrenaline upon reaching level 4. (This won't affect flag 128)
512Adrenaline uses only half of the chargebar.
Default: 0

g_adrenDmgReduction

Description
The percentage damage reduction after injecting adrenaline. g_adrenDmgReduction is now independent percentage of the caused damage that is inflected when the adrenaline is on. 0 means no damage and 100 means full damage from the weapon.
Parameters
Type: integer
Default: 50

g_medicHealthRegen

Description
The rate at which medics regenerate health (in HP per second). This rate is divided into two parts: The first is from 1 to 110-125 HP (depending on the number of medics per team), and then above that. The system default is 3/2 (3 HP per second, then 2 HP per second).
Parameters
Type: [ 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ]
03/2
12/2
22/1
32/0
41/1
51/0
60/0
70/1
80/2
Default: 0

g_throwableKnives

Description
Enable knife throwing. The amount of throwable knives is g_maxKnives - 1. Any non zero value will enable knife throwing.
Parameters
Type: [0|1]
Default: 0

g_maxKnives

Description
Maximum number of knives a player can posses. Take note that if g_throvableKnives is enabled, the last knife cannot be thrown.
Parameters
Type: integer
Default: 5

g_knifeChargeTime

Description
How long it takes in milliseconds for the "knife" to charge to the maximum throw speed/force.
Parameters
Type: integer
Default: 800

g_constructibleXPSharing

Description
When multiple engineers help build a constructible, each gets his share of XP once the constructible is build. The share of gained XP is proportional to how much the engineer built.
Parameters
Type: [0|1]
Default: 0

g_asblock

Description
Airstrike blocking.
Parameters
Type: bitmask
1Make an announcement whenever an airstrike is blocked.
2A player may easily block an airstrike by crouching, standing, or proning over the enemy's canister to block the airstrike.
4Reserved.
8Lvl 3 FieldOPs and higher cannot have the airstrikes blocked by players.
16Disables teammates blocking airstrikes.
32Give 2 Battle Sense XP to player that blocks the air strike. No XP given for blocking teammates or your own air strike.
Default: 0

g_panzersSpeed

Description
Speed of the panzers. Normal panzer speed is 2500.
Parameters
Type: integer
Default: 2500

g_panzersGravity

Description
If set to 1, panzer trajectory will be affected by gravity.
Parameters
Type: [0|1]
Default: 0

g_dyno

Description
Dynamite Behaviour.
Parameters
Type: bitmask
1Sudden Death Dynamites enabled. If there is 30 seconds or less on the clock and dynamite is planted on an objective, the clock will continue to run past zero. The match will not end until the dynamite either explodes, or is disarmed. You are not allowed to plant additional dynamite during sudden death.
2Dynamite chaining enabled. Dynamite will cause other similar dynamites to explode when exploding (only if within blast radius). Dynamites not planted on an objective will blow any other dynamite not on an objective. Dynamite planted on an objective will only blow dynamite on the same objective.
4Adds a dynamite symbol with the location and the time remaining to all the players on the team of the player who plants the dynamite. This will only happen when dynamite is placed on an objective. The players in the other team will see the dynamite symbol too, but they won't see the time remaining.
8Dynamite cannot be disarmed by your team (inlcuding yourself), so only the other team can defuse it.
16Enable dynamite ID. You can see the owner of a dynamite when you point at it.
Default: 0

g_canisterKick

Description
Canister and grenade kicking.

Allows players to kick smoke, and air strike canisters, along with grendaes. The integer adjust the amount of force put behind the kick. 75 is a good value, anything below 60 is about useless, and above about 125 is probably too much.

Parameters
Type: integer
Default: 0

g_canisterKickOwner

Description
Kicked Canister Ownership
Parameters
Type: [0|1]
0Kicker does not take ownership of the canister.
1Kicker takes ownership of the canister.
Default: 0

g_reflectFriendlyFire

Description
Similar to Shrub's g_friendlyfire 2 cvar.

A multiplier value that determines how much friendly-fire damage, if any, is reflected back to the player that caused the damage. This setting is independent of g_friendlyfire, so damage can be set to reflect on both FF and non-FF servers.

A value of 1.0 would reflect full damage.
A value of 0.5 would reflect half damage.
Set to 0 to disable reflected friendly fire.

Parameters
Type: float
Default: 0.0

g_reflectFFWeapons

Description
Selects which category of weapon will reflect when g_reflectFriendlyFire is non-zero.
Parameters
Type: bitmask
1Enable reflected damage for Firearms (all types of guns)
2Enable reflected damage for Grenades and grenade launchers
4Enable reflected damage for Knives (includes thrown knives)
8Enable reflected damage for Panzers
16Enable reflected damage for Flamethrowers
32Enable reflected damage for Mortars
64Enable reflected damage for Satchel Charges
128Enable reflected damage for Artillery and Air Strikes
256Enable reflected damage for Dynamite and Construction Damage
512Enable reflected damage for Landmines
Default: 31
Note
Setting this value to zero will override any multiplier set via g_reflectFriendlyFire, effectively disabling reflecting damage.

g_friendlyFireOpts

Description
Allows greater control over friendly fire events.
Parameters
Type: bitmask
1Landmines ALWAYS damage teammates regardless of g_friendlyfire setting
2Allow 'grenade boosting' when friendly fire is off
4Non-engineer players do not trigger landmines on their own team
8Players do not trigger trip mines on their own team
16Tripmines ALWAYS damage teammates regardless of g_friendlyfire setting
32Only engineer that planted the landmine can trigger/defuse it (concerns team landmines only)
Default: 0

g_staminaRecharge

Description
Multiplies the rate at which stamina is rebuilt. Setting this value to zero will cause players to not regain any stamina once it is used except through the use of adrenalin.
Parameters
Type: float
Default: 1.0

g_mineid

Description
Turns on identification of your teammates landmines.
Parameters
Type: [0|1]
Default: 0

g_medicSelfhealTime

Description
The time in milliseconds that a medic cannot heal himself after being hit
Parameters
Type: integer
Default: 0

g_maxPanzerSuicides

Description
When set, a player can kill himself g_maxPanzerSuicides times with a panzerfaust. The next panzerselfkill will result in a panzer shooting medpacks.

The amount of suicides is reset every map.

Set to -1 to disable, -2 to always enable (no normal panzers anymore)

Parameters
Type: integer
Default: -1

g_panzerPackDistance

Description
Set the g_packDistance for the medpacks fired by the panzerfaust when g_maxPanzerSuicides is enabled.

Set to 0 to use default (etmain)

Parameters
Type: integer
Default: 0

g_weapons

Description
This is meant to match the shrubmod g_weapons cvar, but so far the only implemented flags are:
Parameters
Type: bitmask
1Level 0 field ops doesn't get binoculars (unless he has >= level 1 Battle Sense)
2Syringes work underwater
4Pliers work underwater
8Fully restore Field ops charge bar if airstrike is aborted
16Half restore FIeld ops charge bar if airstrike is aborted
32Ammo packs restore helmets
64Drop binoculars if player has them
128Soldiers with level 4 heavy weapons don't lose their pistols
256Garands can reload when clip is not empty
512Balance the clip size between the allies and axis rifles. allied rifles get same clip sizes and max ammo as the k43.
1024Creates a hitbox for mortar shells. This reduces (or eliminates in some cases) the ability to fire mortars through smaller windows and bunker slits.
2048Knives will always gib a body (not a player, use g_dmgKnife instead if you want that)
4096Extra ammo is included with dropped weapons.
8192"Ammo"/"No ammo" icon is shown for dropped weapons.
16384Enable fast shooting for Thompson, MP40, PPSh and Sten.
32768Kill by the shot tripmine is counted for the shooter not the player that planted it.
Default: 0

g_classWeapons

Description
This cvar enables certain weapons per class. So far, only PPSH enablement is implemented:
Parameters
Type: bitmask
1Enable PPSH for soldiers.
2Enable PPSH for engineers.
4Enable PPSH for fieldops.
8Enable MP40 and Thompson to be available to both teams in limbo menu.
16Enable MP40 for soldiers.
32Enable Thompson for soldiers.
Default: 63

g_mg42

Description
This cvar controls optional machine gun behaviour.
Parameters
Type: bitmask
1Machine Guns can make headshots
2Machine Guns can reload when clip is not empty
Default: 0

g_coverts

Description
Controls various aspects of the Covert Op class.
Parameters
Type: bitmask
1Level 4 Coverts have more accurate scoped weapons.
2Disguised coverts can only be identified with the "crosshair name" by level 4 Field Ops.
4After detonating a satchel charge, the primary weapon will be selected instead of satchel again.
8Coverts in disguise take half the normal combat damage.
16Coverts in disguise take no splash damage.
32Coverts do not automatically lose their uniform if an enemy sees them firing a weapon.
64Coverts do not automatically lose their uniform if they fire a non-silent weapon.
128Coverts do not automatically lose their uniforms if they attach to an emplaced MG weapon. Note that this flag has nothing to do with firing.
256Coverts are awarded xp for constructive use of smoke.
512Coverts will lose their uniform if an enemy sees him using ANY weapon (otherwise knife/satchel/smoke/binoc will never lose uni).
1024A disguised covert can still steal enemy uniforms.
Default: 0

g_enableTMines

Description
Disables/enables tripmines. Tripmines are available only for engineers.
Parameters
Type: [0|1]
Default: 1

skill_soldier

skill_medic

skill_engineer

skill_fieldops

skill_covertops

skill_battlesense

skill_lightweapons

Description

All skill_* variables are identical.

These variables allow customization of the experience points necessary to go up in ranks. These settings consist of four space-separated integers indicating the number of XP required to go up a rank. A string such as "3 10 10 10" indicates that 3 points are required to go up the first rank, and the next three ranks are granted when the players has 10 points. If, for example, you want to grant akimbo pistols upon the first kill, you would set skill_lightweapons to "3 3 3 3". The default for each of these variables is "20 50 90 140". You can also grant levels upon connection byt using a value like "0 0 20 100". This would mean that the first two ranks would be granted upon connection, and the third and fourth ranks would be granted at 20 and 100 points, respectively.

Starting from silEnT 0.6.0, these cvars also allow disabling skills. Also, 0 value will always enable skill regardless of the order. For example, a string "0 -1 0 -1" always enables the skill from the first and the third level and completely disables the skills on the second and the fourth level. The only limitation is, that the values other then 0 and -1 must be ordered from the smaller to the higher. For example "0 20 -1 50" always enables the first skill, second skill takes 20 points to unlock, third skill is always disabled and the fourth skill requires 50 points to unlock. Furthermore, the g_noSkillUpgrades now locks skills to any always enabled levels. Meaning skills that are set to require 0 points to unlock.

Parameters
Type: string
Default: "20 50 90 140"

g_noSkillUpgrades

Description
When set to 1, disables player skill upgrades. Sarting from silEnT version 0.6.0, it will lock the skills to the always enabled levels. See the skill_x cvars. Also, it is possible to hide the skill levels from the player HUDs setting this cvar to value 2.
Parameters
Type: [0|1|2]
0Disabled
1Lock skill levels
2Lock skill levels and disable all skill status information from the player HUD and limbo menu.
Default: 0

g_panzersVulnerable

Description
If set to 1, panzers that are shot in mid-air will explode.
Parameters
Type: [0|1]
Default: 0

g_maxMarkers

Description
Defines how many danger zones can be marked by the covert ops.

Danger zones were introduced in 0.7.0 version of the silEnT mod.
They can be marked by Covert Ops to indicate that some area can be considered dangerous.
Such area is then visible on the command map as the red circle zone. Additionally, when the Command Post is built, players are notified by sound and visual signs about entering the danger zone. Players can customize the way they are notified via the HUD editor and the silEnT customize HUD menu.
To mark the danger zone Covert Ops needs to look through his binoculars and press the left mouse button (attack button). The same way Field Ops calls for an airstrike.

To disable the feature set the g_maxMarkers to 0.

Parameters
Type: integer
Default: 2

g_enableDemolition

Description
Enable Improvised Demolition weapon for soldier class.

Improvised Demolition weapon was introduced in 0.8.0 version of the silEnT mod.
As mentioned in the original WWII Tank-destruction manual, a big charge could be made of 6 stickgrenade heads around one complete grenade, fixed with wire or rope. The central grenade would make the other 6 grenade detonate as well causing an explosion which could damage the light armoured vehicles.
In silEnT mod this weapon is designed to suit exactly the purpose described above. To gain the weapon player has to gain 3rd engineer level and 4th soldier level.

Parameters
Type: [0|1] 0 - enable, 1 - disable
Default: 1

Weapon Damage and Radius Settings

g_dmgKnife

Description
Amount of damage done by the knife.
Parameters
Type: integer
Default: 10

g_dmgSten

Description
Amount of damage done by the sten.
Parameters
Type: integer
Default: 14

g_dmgFG42

Description
Amount of damage done by the FG-42.
Parameters
Type: integer
Default: 15

g_dmgPistol

Description
Amount of damage done by pistol weapons.
Parameters
Type: integer
Default: 18

g_dmgSMG

Description
Amount of damage done by the SMG weapoins (MP40 and Thompson).
Parameters
Type: integer
Default: 18

g_dmgMG42

Description
Amount of damage done by the MG42.
Parameters
Type: integer
Default: 18

g_dmgMG

Description
Amount of damage done by an emplaced MG.
Parameters
Type: integer
Default: 20

g_dmgFG42Scope

Description
Amount of damage done by the FG-42 when scoped.
Parameters
Type: integer
Default: 30

g_dmgInfRifle

Description
Amount of damage done by unscoped rifles (K43 and Garand).
Parameters
Type: integer
Default: 34

g_dmgSniper

Description
Amount of damage done by a scoped Garand or K43.
Parameters
Type: integer
Default: 50

g_dmgFlamer

Description
Amount of damage done, per tick, by a flamethrower.

Also controls the per-tick damage done to a player who has been set on fire by a flamethrower and is still burning.

Parameters
Type: integer
Default: 5

g_dmgGrenade

Description
Amount of damage done by a grenade.
Parameters
Type: integer
Default: 250

g_dmgGrenadeRadius

Description
Blast radius of a grenade.
Parameters
Type: integer
Default: 250

g_dmgGLauncher

Description
Amount of damage done by an engineer's grenade-launcher grenades.
Parameters
Type: integer
Default: 250

g_dmgGLauncherRadius

Description
Blast radius of an engineer's grenade-launcher grenades.
Parameters
Type: integer
Default: 250

g_dmgTMine

Description
Amount of damage done by the tripmine.
Parameters
Type: integer
Default: 260

g_dmgLandmine

Description
Amount of damage done by a landmine.
Parameters
Type: integer
Default: 250

g_dmgLandmineRadius

Description
Blast radius of a landmine.
Parameters
Type: integer
Default: 250

g_dmgSatchel

Description
Amount of damage done by a satchel.
Parameters
Type: integer
Default: 250

g_dmgSatchelRadius

Description
Blast radius of a satchel.
Parameters
Type: integer
Default: 250

g_dmgPanzer

Description
Amount of damage done by a panzerfaust rocket.
Parameters
Type: integer
Default: 400

g_dmgPanzerRadius

Description
Blast radius of a panzerfaust rocket.
Parameters
Type: integer
Default: 300

g_dmgMortar

Description
Amount of damage done by a mortar round.
Parameters
Type: integer
Default: 400

g_dmgMortarRadius

Description
Blast radius of a mortar round.
Parameters
Type: integer
Default: 400

g_dmgDynamite

Description
Amount of damage done by a dynamite.
Parameters
Type: integer
Default: 400

g_dmgDynamiteRadius

Description
Blast radius of a dynamite.
Parameters
Type: integer
Default: 400

g_dmgAir

Description
Amount of damage done PER BOMB by an airstrike.
Parameters
Type: integer
Default: 400

g_dmgAirRadius

Description
Blast Radius PER BOMB of an airstrike.
Parameters
Type: integer
Default: 400

g_dmgArty

Description
Amount of damage done PER BOMB by Artillery fire.

If this value is non-zero, the spotting round will follow normal ET behavior (can do damage, but to a VERY small radius, making damage unlikely)

Parameters
Type: integer
Default: 400

g_dmgArtyRadius

Description
Blast Radius PER BOMB of Artillery fire.

If this value is non-zero, the spotting round will follow normal ET behavior (can do damage, but to a VERY small radius, making damage unlikely)

Parameters
Type: integer
Default: 400

g_dmg

Description
Enables experimental advanced combat options.
Parameters
Type: bitmask
0Use traditional ET settings for combat.
1Use Advanced Hit Locations: Differentiates between Head, Body, Arm, and Leg shot when computing damage.
2Applies a more realistic damage vs. range equation for short-ranged weapons. This will reduce the effectiveness of these weapons at longer ranges.
4Gives a damage bonus to short-range weapons when used in close combat situations. This will increase the effectiveness of these weapons at closer ranges.
8Use bullet fall-off approximations when computing shot trajectory.
16Improve accuracy of non-scoped single-shot rifles.
32Use alternate bullet-spread characteristics for automatic or rapid-fire weapons.
64Damage from players who are spectators or have disconnected is ignored, and XP is not awarded.
Default: 0

g_dmgHeadShotMin

Description
This represents the minimum damage done by a headshot regardless of the weapon used to make the shot.

Headshots that would do damage below this value will be adjusted upward to equal g_dmgHeadshotMin.

Headshots from a weapon with damage at or above this value will do a multiple of their damage, as specified by g_dmgHeadShotRatio.

(The actual damage may undergo additional modification due to range and other conditions)

Parameters
Type: integer
Default: 50

g_dmgHeadShotRatio

Description
This specifies the multiplier used for headshots that do damage ABOVE g_dmgHeadShotMin.
Parameters
Type: float
Default: 2.0

g_knifeThrowDamage

Description
The amount of damage a thrown knife will cause to enemy.
Parameters
Type: integer
Default: 50

g_dmgPPSh

Description
The amount of damage done by PPSh.
Parameters
Type: integer
Default: 19

Miscellaneous

g_packDistance

Description
Set the distance at which health packs and ammo packs are thrown. Set this to 0 to make it just like etmain. The settings should be similar to shrubet so set this to 2 for a subtle improvement.
Parameters
Type: integer
Default: 0

g_dropHealth

Description
If set to a positive integer, medics will drop [integer] number of health packs when they are gibbed. If set to -1, medics will drop the number of health packs that they could have dropped at the moment of their death.

Set this to 0 to turn it off.

Parameters
Type: integer
Default: 0

g_dropAmmo

Description
If set to a positive integer, fieldops will drop [integer] number of ammo packs when they are gibbed. If set to -1, fieldops will drop the number of ammo packs that they could have dropped at the moment of their death.

Set this to 0 to turn it off.

Parameters
Type: integer
Default: 0

g_tossDistance

Description
Set the velocity at which health or ammo packs are tossed from the dead body when g_dropHealth or g_dropAmmo are activated. This changes the distance that these packs travel from the corpse.
Parameters
Type: integer
Default: 0

g_intermissionTime

Description
Set the length of time the end of game screens displays before loading the next map.
Parameters
Type: integer
Default: 60

g_intermissionReadyPercent

Description
The percent of connected players who need to hit the "READY" button to move on to the next map without waiting g_intermissionTime to run out.
Parameters
Type: integer
Default: 100

g_skills

Description
Optional skill related flags.
Parameters
Type: bitmask
1Players with level 4 battle sense can spot landmines for teammates
2Players with level 4 engineering can keep the flak jacket for other classes
4Players with level 4 first aid can keep adrenaline for other classes
Default: 0

g_misc

Description
Miscellaneous options.
Parameters
Type: bitmask
1Enable double jump
2Enable binoc master competition. Requires g_weapons 64 to be set.
4When a player is killed he can see the HP the killer has left
8Disable self damage
16Players can not jump if stamina is too low
32Enable Jaymod style doublejump.
64Disable Falling Damage
128Announce revives
256Disable first blood message
512Fullbody predict. This makes it harder to get inside for example walls and stones. Same as ETPub g_misc 32 + 256. Do note that this can cause problems when proning through windows and similar narrow passages.
1024Enable the enemy team objective carry indicator.
Default: 0

g_skipCorrection

Description

Set this to 1 to enable Neil Toronto's unlagged2 skip correction. This will smooth out the movement of players with high packet loss (to a degree). This is similar to etpro's antiwarp, but has some differences. Neil likes this version better, bani likes his better.

This replaces g_smoothClients from etmain.

Parameters
Type: [0|1]
Default: 1

g_maxWarp

Description

This allows you to control the amount of "warping" that players with high packet loss can do. The [integer] is the number of server frames that you allow a player to miss before their next movement is put in check.

A server frame is 50ms on a typical server (sv_fps set to 20). This means that if you set g_maxWarp to 5 you won't allow players to warp from point A to point B if that distance takes an normal player 1/4 of a second to travel. Setting this to 1 is a good way to drive off just about everyone from your server.

As far as I can tell, 1000ms is allowed by default in the game, so setting this to any value higher than 39 should have no effect if sv_fps is set to 10.

Parameters
Type: integer
Default: 4

g_moverScale

Description
Multiply the speed of movers (e.g. tanks) by float.
Parameters
Type: float
Default: 1.0

g_slashKill

Description

Controls the behavior of the /kill command.

See also g_fear and g_maxSelfkills

Parameters
Type: bitmask
1Player spawns with half charge bar after /kill
2Player spawns with 0 charge bar after /kill
4Restores the charge bar to the same state it was in at the moment the player issued /kill (regardless of how long they were in limbo)
8Disable /kill when player is frozen
16Disable /kill when player is poisoned
Default: 0

g_maxSelfkills

Description

Amount of times a player can use /kill per map.

Setting this to -1 will result in normal behaviour (infinite selfkills).

Setting this to 0 will disable /kill.

Parameters
Type: integer
Default: -1

g_ammoCabinetTime

Description
The time between ammo cabinet regenerations in milliseconds.
Parameters
Type: integer
Default: 60000

g_healthCabinetTime

Description
The time between health cabinet regenerations in milliseconds.
Parameters
Type: integer
Default: 10000

g_spectator

Description
Controls spectator behaviour.
Parameters
Type: bitmask
1When in freelook mode, you can 'fire' at a player to follow. If you miss a player, nothing happens.
2When in freelook mode with the 1 flag set, if you shoot and miss you start following the next available player.
4When the player you're following goes into limbo, don't move to the next available player.
8When the player you're following goes into limbo, go to freelook instead of following the next available player. (4 has precedence)
Default: 0

g_truePing

Description
Allows players to see the true amount of time it takes until their actions are processed on the server. Pings will show around 50 ms higher than normal, but it's more accurate. Shows in the scoreboard.
Parameters
Type: [0|1]
Default: 0

g_dropObj

Description

Sets the number of times a player can drop/toss the objective (e.g. parts on radar) per life.

The parts are dropped by pressing the +activate key (usually bound to F) when there's nothing else around to be activated.

Before enabling this recall how spammy the voiceovers can be. Then picture a player tossing the parts to himself over and over again. For this reason you probably don't want to set this very high.

Players must switch to knife in order to drop the objective. If they are not holding knife and hit +activate they will see a message that notifies them that they must switch to knife. This change was made to prevent accidental dropping of the objective when trying to push, drag, pick up, or activate something else.

Parameters
Type: integer
Default: 0

g_doubleJumpHeight

Description
Adjusts the height of the second jump in a double jump. This value is a multiplier to the default jump velocity. The greater g_doubleJumpHeight is, the greater the height of the second jump. This setting has no effect if double jump is disabled in g_misc.
Parameters
Type: float
Default: 1.4

g_serverInfo

Description
Use this cvar to change the behaviour of the 'serverinfo' string. This string is printed in response to the 'getstatus' primative command used by game browsers.
Parameters
Type: bitmask
1Display player team information using the 'P' cvar in the server info string. (etpro and etmain 2.60 behaviour)
2Display player team information using the 'Players_Axis' and 'Players_Allies' cvars in the server info string. (etmain < 2.60 behaviour)
4Display the 'campaign_maps' cvar in the server info string. This contains a comma delimited list off all the maps in the current campaign. Only works if you have g_gametype set to 4.
8Displays the 'C' CVAR in the server info string. This is a string containing the current map number in the campaign, and total maps in current campaign, in the form of "xx,yy". Only works if you have g_gametype set to 4.
16The class charge times will not be present in the server info string unless this flag is set. They are removed by default in order to make room in the serverInfo string for more useful information. These cvars are g_medicChargeTime, g_engineerChargeTime, g_LTChargeTime, g_covertopChargeTime, g_soldierChargeTime.
32Send KR (KillRating) instead of XP in SERVERINFO string. This is overriden by flag 64.
64Send PR (PlayerRating) instead of XP/KR in SERVERINFO string. Overrides flag 32.
Default: 1
Note

This cvar MUST be set prior to loading the first map. You will not be able to change this cvar once the game code is loaded.

The serverInfo string has a fixed length of 1024 characters. This space is shared with any cvar you create on your server with the 'sets' command. If you use up too much space with 'sets', your server will fail to start. It will print the message "Info string length exceeded" if you don't have enough space left in your serverinfo string to handle the g_serverInfo flags you've selected. To fix this, either remove some sets cvars from your config, or use different g_serverInfo flags.

g_fear

Description

If a player uses the /kill command within g_fear milliseconds after taking damage from an enemy, the attacker that last damaged that player will recieve full credit for the kill and the mode of death will be recorded as MOD_FEAR. Other restrictions are that the attacker must be on the opposite team and the attacker must still be alive.

g_fear applies also to players that try to switch teams within g_fear milliseconds. The player will remain in the same team and the usual g_fear behavior applies.

In-game statistics will reflect that the death was caused by the weapon that did the last recorded damage to the player.

Set this to 0 to disable this behaviour.

Parameters
Type: integer
Default: 2000

g_realBody

Description
If server admin sets this, the player hitboxes are adjusted smaller and harder to hit. With value 0, the hitboxes used up to 0.5.0 are used.
Parameters
Type: [0|1]
0Hitboxes used up to 0.5.0
1Smaller hitboxes
Default: 0
Note
To see the differences in the hitboxes, use g_debughitboxes server cvar. Do note that this kind of testing should not be done with many players because it will cause huge amount of lag.

g_inactivity

Description
The number of seconds of player inactivity before the player is made a spectator.
Parameters
Type: integer
Default: 0

g_spectatorInactivity

Description
g_spectatorInactivity kicks only when the server is full.
Parameters
Type: integer
Default: 0

g_gametype

Description
Please see Map Voting
Parameters
Type: integer
Default: 4

g_antilagDelay

Description
Manually delay the antilag of every player on the server. Might give very weird behaviour, so use at own risk.
Parameters
Type: integer
Default: 0

g_fixedphysics

Description
Creates a smoother movement when enabled.
Parameters
Type: [0|1]
Default: 0

g_fixedphysicsfps

Description
Makes the fixedphysics act like all the clients have the same framerate, so that players with "magic" quake engine framerates don't have an unfair advantage. This CVAR must be between 60 and 333.
Parameters
Type: integer
Default: 125
Note
This doesn't actually change the framerates in clients, so the clients can keep their own framerates.

g_maxNameChanges

Description
Limit the number of namechanges per player per map by setting this cvar. This is especially needed if you have cheaters that autochange their name every second.

Set to -1 to disable.

Parameters
Type: integer
Default: 3

g_disableComplaints

Description
Disable teamkill complaints for some weapons or completely.
Parameters
Type: bitmask
1Landmines
2Artillery and airstrikes
4Mortar
8Dynamite
16Tripmines
32Completely
Default: 0

g_watermark

Description
Set a watermark that will be displayed to all clients. The watermark must be put in a folder named "watermark" and then this whole folder needs to be zipped into a .pk3 file
Parameters
Type: string
Default: ""

g_watermarkFadeAfter

Description
When g_watermark is set, the watermark will fade out after [integer] number of seconds.
Parameters
Type: integer
Default: 0

g_watermarkFadeTime

Description
When g_watermarkFadeAfter is set, the watermark will fade out in [integer] seconds. (So the fading process from 1.0 alpha to 0.0 alpha takes [integer] seconds.
Parameters
Type: integer
Default: 0

g_antiwarp

Description
Enable ETPro-style antiwarp. This gives non-lagging players a much better game but for laggers it will be a bit more uncomfortable. This CVAR overrides both g_maxWarp AND g_skipCorrection in order to keep things consistent.
Parameters
Type: [0|1]
Default: 1

g_panzerwar

Description
Enables/Disables Panzerwar. 1 is enabled, 0 is disabled.
Parameters
Type: [0|1]
Default: 0

g_sniperwar

Description
Enables/Disables Sniperwar. 1 is enabled, 0 is disabled.
Parameters
Type: [0|1]
Default: 0

g_riflewar

Description
Enables/Disables Riflewar. 1 is enabled, 0 is disabled.
Parameters
Type: [0|1]
Default: 0

g_countryFlags

Description
Sets whether the players will see the GeoIP country flags in the crosshair when aiming at someone and in the scoreboard.

Players can enable/disable it with cg_countryFlags (default 1).

You will need the GeoIP.dat file in your server's silent folder. You should read and accept the license of the GeoIP.dat database!

Read the database license at http://geolite.maxmind.com/download/geoip/database/LICENSE.txt.
Download the latest database at http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz.

Parameters
Type: [0|1]
Default: 1

g_flushItems

Description
Evens the dropped items out with the surface.
Parameters
Type: [0|1]
Default: 1

g_maxConnsPerIP

Description
Maximum number of connections allowed from one particular IP. This prevents the fake clients Denial of Service attack.
Parameters
Type: integer
Default: 4

shoutcastPassword

Description
Enables shoutcaster status on the server.
Parameters
Type: string
Default: "none"

g_headshot

Description
This is a bitflag cvar that supports the following values:
Parameters
Type: bitmask
1Headshots only
2Instagib damage (controlled by g_instagibDamage)
4Instagib damage in pistol war (controlled by g_instagibDamage)
Default: 0

g_instagibDamage

Description
Damage used for instagib mode (e.g. set this to 160 so that a player can still be revived after being shot.).
Parameters
Type: integer
Default: 400

g_inactivityOptions

Description
This is a bitflag cvar that supports the following values:
Parameters
Type: bitmask
1Don't drop shoutcasters
2Don't drop spectators when in following mode
4ETmain inactivity behavior (don't wait for a full server)
8Shrubbot flag '0' admins will be moved to spectators due to team inactivity
Default: 3

g_ettvFlags

Description
This is a bitflag cvar that supports the following values:
Parameters
Type: bitmask
1Prevent ettv slaves from being callvote kicked
2Grant shoutcaster status to ettv slaves
Default: 3

g_mode

Description
This is a bitflag cvar that supports the following values:
Parameters
Type: bitmask
1Players will spawn instantly
2Each class receives adrenaline
4No damage on players
8Players can pick up any weapon on the ground (Removing this bitflag will force all players to respawn!)
Default: 0

g_hitsounds

Description
Server side hitsound options.
Parameters
Type: bitmask
1Enable hitsounds
2Disable hitsounds when shooting wounded players
4Disable the headshot sound when shooting wounded player in the head. (default hitsound will be used in it's place)
8Enable warning sound from hitting team mates
16Disable hitsounds from poison damage
32Disable hitsounds from explosive weapons
Default: 1
Note
A client can disable hitsounds with cg_hitSounds client cvar. Also an option to play only headshots is available.

g_playDead

Description
Allows players to use the 'playdead' command and their character will act like it is dead until the playdead command is used again (or they really die).
Parameters
Type: [0|1]
Default: 0

g_shove

Description
Allows players to push other players with the "use" key. The integer adjusts the amount of force players shove with. 80 seems fair.
Parameters
Type: integer
Default: 0

g_shoveNoZ

Description
Set this to 1 if you want to disable shove in the up/down direction (a.k.a "boosting").
Parameters
Type: [0|1]
Default: 0

g_dragCorpse

Description
Allows players do drag wounded players with the use key when moving backward slowly. Works best when crouching or prone.
Parameters
Type: [0|1]
Default: 0

g_classChange

Description
Allows players to take the class of a gibbed teammate temporarily similarly to how a covert steals an uniform. Class changing does not latch, so the original class the player had will be restored on respawn.
Parameters
Type: [0|1]
Default: 0

g_forceLimboHealth

Description
If set to 0 it takes about 3 shots to gib a wounded player, if set to 1 it takes about 5.
Parameters
Type: [0|1]
Default: 1

g_goomba

Description

If set to a positive integer, players can damage each other by landing on each other. The integer is multiplier that determines how much damage should be done to the player that was fallen on. Also the impact for the falling player will be broken so that they only recieve 20% of the damage they would have normally. It is also possible to do small amounts of damage (5HP) to other players by hopping up and down on them.

Falling damage can be either 500, 50, 25, 15, or 10 depending on the length of the fall. So if you set g_goomba to 5 and land on a player from a fall that would have damaged you 10HP, you will inflict 50HP of damage on the player you land on, and you will only recieve 2HP of damage.

See also g_goombaFlags

Set this to 0 to disable it

Parameters
Type: integer
Default: 0

g_goombaFlags

Description
This is a bitflag cvar that controls the way g_goomba is handled.
Parameters
Type: bitmask
1Cannot do goomba damage to teammates.
2Short falls (hopping) on another player does no damage.
4Short falls (hopping) does no damage to teammates. (not necessary if 1 or 2 flag is set)
8Falling player recieves no damage when landing on any other player. (default is to recieve 20% of the damage the fall would have given if not landing on a player).
16Insta-gib goomba. All goomba damage will be 500HP regardless of fall distance. The exception is hopping on anther player which still does 5HP of damage.
32Falling corpses won't cause damage.
Default: 0
Note
Set this to 31 to have g_goomba work like shrubet.

g_spawnInvul

Description
The number of seconds players will be invincible after they spawn.
Parameters
Type: integer
Default: 3

g_spawnInvulFair

Description
Removes the spawn protection when the player fires his first shot (note : the spawn protection will still be removed after the g_spawnInvul time)
Parameters
Type: [0|1]
Default: 1

g_spinCorpse

Description
Allow players to use +left and +right binds to spin their corpse when dead or playing dead.
Parameters
Type: [0|1]
Default: 0

g_teamChangeKills

Description
If set to 0, players are allowed one non-killing team change per respawn cycle. If a player changes teams, he will be instantly spawned in the other teams default spawn point. Players will die (but not lose a life) if they change teams a second time in one spawn cycle.
Parameters
Type: [0|1]
Default: 1

g_extraStatistics

Description
Additional statistics displayed at the end of the map.
Parameters
Type: [0|1]
Default: 1

g_realPlayTime

Description
Show additional real play time of the payer (without spec time) in the debriefing screen at the end of the map.
For instance: 6/10
would mean that player played 6 minutes, was on the server for 10 minutes and 4 minutes was in spec.
Parameters
Type: [0|1]
Default: 1

g_min_crazyspeed

Description
Set minimum speed for !crazyspeed command.
Parameters
Type: integer
Default: 200

g_max_crazyspeed

Description
Set maximum speed for !crazyspeed command.
Parameters
Type: integer
Default: 540

g_min_crazygravity

Description
Set minimum speed for !crazygravity command.
Parameters
Type: integer
Default: 10

g_max_crazygravity

Description
Set minimum speed for !crazygravity command.
Parameters
Type: integer
Default: 1200

g_silentac

Description
Enables actions based on silEnT AntiCheat. The g_cheatLog will always have one line telling if a player is found with cheats. The cheat detections are based mostly on heuristically detecting hacking techniques. If you suspect a false positive, please supply the silEnT team a method to reproduce it. Programs needed etc. Do note that this feature has been in extensive testing well before the 0.8.0 version.
Parameters
Type: integer
1Show player AntiCheat status in the !finger output.
2Automatically ban players with cheats.
Default: 0

g_maxIgnoresPerMap

Description
The maximum number of times one player can ignore another player during one map. This can prevent spamming other players with the ignore command. The value can be between 0 and 255. Any value higher then 255 will always allow ignoring. Any value below 1 will disable ignoring completely.
Parameters
Type: integer
Default: 2

g_proneDelay

Description
If set, there will be 1750 ms delay after every prone or getting up before the player can prone or get up again. Also, weapon spread will be maxed for 1 second after proning.
Parameters
Type: [0|1]
Default: 0

g_goatSound

Description
If set, a goat sound will be played on every knife kill to both the attacker and the victim.
Parameters
Type: [0|1]
Default: 1

g_riflenadewar

Description
Enables/Disables Riflenadewar. 1 is enabled, 0 is disabled.
Parameters
Type: [0|1]
Default: 0

g_rifleshootwar

Description
Enables/Disables Rifleshootwar. 1 is enabled, 0 is disabled.
Parameters
Type: [0|1]
Default: 0

g_stenwar

Description
Enables/Disables Stenwar. 1 is enabled, 0 is disabled.
Parameters
Type: [0|1]
Default: 0

g_pistolwar

Description
Enables/Disables Pistolwar. 1 is enabled, 0 is disabled.
Parameters
Type: [0|1]
Default: 0

g_incognitoCountryFlag

Description
Defines the country flag to be used for the incognito admin.
If the incognito admin joins the server, the country flag set by this cvar is displayed for him. Please check this table silEnT geoIP countries to check what to use as the value.
GeoIP has to be enabled for this cvar to work, please read: g_countryFlags. To disable set to -1.
Parameters
Type: [-1|255]
Default: -1

Logs

g_logOptions

Description
Configuration options for different data to be logged.
Parameters
Type: bitmask
1Server outputs obituaries to chat
2Adrenaline countdown displayed
4Disable display of tap-out confirmation box
8Display connection attempts by banned players
16Display gib reports ("<victim> was gibbed by <attacker>")
32Omit "item" lines from log file
64Value not in use
128GUID's are logged in the game log
256Log all private messages (/m commands). This setting won't have any effect unless g_tyranny is enabled.
512Logs the real time into logs, instead of the normal uptime of the server.
1024Logs every dropped player. This can be usefull for inspecting server operation, but will cause lots needless log writes. I.e. it does not filter normal or otherwise logged events out.
2048Unused.
4096Log cvar querys to the g_cheatLog. Related to Lua functionality added in version 0.6.2.
8192Log only found values from cvar querys to the g_cheatLog. Note that the flag 4096 must also be set.
16384Admin log will use new format that is more readable.
Default: 0

g_logAdmin

Description
The name of the file that all shrubbot commands will be logged to. For example,
g_logAdmin "admin.log"
Parameters
Type: string
Default: ""

g_cheatLog

Description
The name of the file that will log prints that do not fall under the normal game server loggings. These include Admin Level Loggings, referee hack attempts, spoofings and any other similar information. To enable/disable most loggings, the cvar for the feature that uses the cheat log, will also have control of the log. Some loginformation can be printed without specifically enabling it. If the g_cheatLog is not enabled, the normal g_log is used instead. However, using the g_cheatLog will make it easier to handle non gaming related information. For example,
g_cheatLog "cheat.log"
Parameters
Type: string
Default: ""

Omni-Bots

omnibot_enable

Description
When set to 1, OmniBot functionality is enabled. You still need to have OmniBots installed correctly in order for OmniBots to work.
Parameters
Type: [0|1]
Default: 1

omnibot_path

Description
The path where the OmniBot dll/so file is installed. If you installed omni-bot correctly, then you do not need to modify this cvar. Leaving this cvar blank will search for the OmniBot file in the default locations.
Parameters
Type: string
Default: ""

g_bot_maxXP

Description
Any bots present will have their XP reset after this much XP is reached. If g_maxXP is also set to a value greater than -1, then the bot XP will be reset whenever the lower limit of the two is hit.

Set this to -1 to disable this feature

Parameters
Type: integer
Default: -1

omnibot_flags

Description
Customizes bot management/behavior.
Parameters
Type: bitmask
1Disables XPSave for bots
2Bots cannot mount tanks
4Bots cannot mount emplaced guns
8Don't track bot count in omnibot_playing cvar
16Bots will target ungibbed enemies
32Bots will trigger team and spotted mines
64Bots can use g_shove
65536Bots are granted shrubbot command immunity (the same as shrubbot flag !)
131072Bots cannot be !kicked or !banned
262144Disable shrubbot greeting for bots
Default: 0

Lua

lua_modules

Description
List of files to be loaded by the Lua API engine. Can be separated by space, comma or semicolon. The paths are relative to the mod's directory, and can optionally be placed inside pk3 archieves.

We are aiming for compatibility with ETPro's Lua Mod API

Parameters
Type: string
Default: ""

lua_allowedModules

Description
List of sha1 signatures for the lua modules to be loaded by the Lua API engine. Can be separated by space, comma or semicolon. Only lua modules with the matching sha1 signature listed in this cvar will be allowed to load by the Lua API engine (ACL).
Parameters
Type: string
Default: ""

Map Voting

This gametype allows for the players to decide on the map that is played next. When g_gametype is set to 6 a new screen is introduced during intermission. This screen list, depending on server configuration, a list of up to 32 maps that are loaded on the server, and that all players can vote on. Once intermission ends, the server totals the votes, and plays the next map based upon the vote results

The following cvars control how map voting operates

Miscellaneous notes about mapvoting:

Statistics / Rankings Terms

There are several settings in silEnT that attempt to determine how "good" a player is in terms (hopefully) more meaningful than just XP or XP per unit of time. Here are the terms used and their definitions:

Kill Rating

How good of a killer the player is, based on how many other players the player kills, and their kill rating. In other words, killing players with a high kill rating increases the shooter's kill rating more than killing players with a low kill rating.

Player Rating

This is a measure of how much the player contributes to winning a map. This measure is calculated by seeing how many times this player is on the winning team after every map, and how good the opposing team was. Like kill rating, winning against teams with a high average player rating results in player rating increasing faster.

Win Probability

The probability that a team will win a map (based on the players' player rating, team size, and the map).

These statistics are gathered by silEnT and the data is saved to local files on disk.

This feature is originally from ETPub and no alterations have been made to it by silEnT team.

The etpub development team member responsible for implementing these player rankings and ratings is Josh Menke. He has been kind enough to begin working on an academic write-up to explain the mathematics and statistics methods behind these rankings. Due to time constraints the document is being gradually updated and expanded. The latest version can be seen at: http://axon.cs.byu.edu/~josh/etstats/update_bayes.pdf

If you cannot find the document at the above location, please visit http://etpub.org


Server Console Commands

The following server console commands (for use in the server console or through rcon) commands have been added in the silEnT:


bot [arguments]

Passes commands to the Omni-bot library. See the omni-bot documentation for full details.

chat [message]

Display a message to all users in the chat area.

chatclient [slot#|name] [message]

Display a message to a specific user in the chat area. A partial name match can be used, and in this case the message will be sent to all users that match the partial name.

clearxp

Clears the XP of all users.

bp [message]

Display a message to all users in the top of the screen.

cp [message]

Display a message to all users in the center of the screen.

cpmsay [message]

Display a message to all users in the popup message area of the screen.

forcecvar [cvar] [value]

Forces a client cvar to have a certain value for all clients.

krinfo

List KillRating info by team, sorted.

m [slot#|name] [message]

Send a private message to a player. A partial name match can be used, and in this case the private message will be sent to all users that match the partial name.

playsound [slot#|name] [filename]

Plays the specified sound file. The slot number/player name parameter is optional. If the slot number or playername is specified, only that player hears the sound, otherwise all players hear the sound. g_tyranny must be enabled in order to play a sound to a specific player.

playsound_env [slot#|name] [filename]

Plays the specified sound file, but the sound can be heard by everyone near the specified player. In contrast to playsound, both parameters are required for playsound_env. If playsound_env is used with one parameter (only the the filename is specified), then it is treated exactly as playsound [filename]. The further away nearby players are, the less they hear the sound. g_tyranny must be enabled in order to use this command.

prinfo

List PlayerRating info by team, sorted.

prreseteverything

Completely reset the PlayerRating system.

prresetplayers

Reset only the player ratings part of the PlayerRating system.

prresetstats

Resets the total kills and deaths made by SMG weapons from all the players in the database.

readsettings

Reloads the g_banners file. This is done by the server automatically, but if you decide to change the banners ingame, you can load the new settings with this command.

readxp

(Requires that g_tyranny be enabled) Loads the XPSave file from disk. There is no reason to call this function, silEnT loads the saved XP automatically as needed.

winprob

Prints information about the win probability model.

writexp

Commits the in-memory XPSave info to disk. Normally, silEnT does this automatically every time a map ends or the server is shut down.

clearspreerecords

Clears all the spreerecords stored in map statistics file (doesn't work during warmup or intermission).

lua_status

Shows information about the scripts currently loaded by the Lua API engine.

makeshoutcaster [slot#|name]
makeshoutcast [slot#|name]
makesc [slot#|name]

Promotes the player to be a shoutcaster. Shoutcasters can see floating player names, dynamite counter, truck and tank health and all mines.

removeshoutcaster [slot#|name]
removeshoutcast [slot#|name]
removesc [slot#|name]

Removes players shoutcaster status.

dboptimize

When this command is issued, the server database is optimized during the next user database closing. This command is resource intensive and should not be used often. The target of usefullness is player databases that are very large and have lot of players who have not played on the server for a long time. Do note that it is more effective to keep the player amount in the database smaller then using this command. So be sure to check the g_dbUserMaxAge setting.

dbcleanup

When this command is issued, the server database is cleaned during the next intermission and saved when the database closes next time. Usually during map change. This clean up checks that all the records can be searched and these records have properly formed GUIDs. All duplicated records are deleted from the main database so that the last used record is left. All player alias records, if aliases database is enabled, are checked that they have an associated record in the main database. Alias records without associated records in the main database are deleted. This command is resource intensive and for that reason it is executed during intermission. The command can be issued at any time during the map.

silent_version

Shows information about the running silEnT server version.

takess

If the Screenshot System (SS) is enabled by g_ssDirectory cvar it will take the screenshot of the player game only screen and store it in the directory specified by the g_ssDirectory cvar.
The game screen means it should not take the screenshot of anything outside the game screen, e.g. the system desktop or other windows.

Important:

Don't overuse the command. Downloading consumes the network connection bandwidth and may impact gameplay although we made our best to make it safe in that matter.

It is possible to execute more than 1 command simultanously from different players.

Additionally, all of the shrubbot commands can be used on the server console as well, the leading "!" is optional.


Shrubbot

Shrubbot is an invention of Ryan Mannion. ETPub tries to clone shrubbot as accurately as possible, both in user interface and in the shrubbot configuration file called "shrubbot.cfg". This is silEnT shrubbot based on the work of ETPub team. silEnT extends the functionality of the shrubbot where ever it is needed. Including user database that holds all the players that have visited the server. To access this database, new commands have been added to the original shrubbot command set. Some commands have been renamed to ease their use and so that they resemble commands from other ET mods that have advanced admin systems.

If you want to use shrubbot, the cvar g_dbDirectory must be set. If it is not set, the shrubbot will not be in use. If you want to edit the default levels, you must create or copy existing shrubbot.cfg file to the folder defined by g_dbDirectory setting. In case shrubbot command like !ban is used against a player and shrubbot.cfg file does not already exist, a new shrubbot.cfg file is created to store the needed data.

The created file will also have the default level settings written to it. This file can be freely edited by hand and then after !readconfig command has been issued, the changes take effect on the server.

Below are the shrubbot commands that silEnT currently supports and the corresponding flag to be used in the shrubbot config file to give permission to the command:

COMMANDFLAGg_tyrannyUSAGEDESCRIPTION
!admintesta-!admintest [NAME|SLOT] Prints out player's current shrubbot admin level in global chat. When the NAME or SLOT are added and the user has the right shrubbot permission, the level of another player will be shown
!aliasese-!aliases [NAME|SLOT] [PAGE] Prints out player's stored aliases. Aliases are printed in the last seen first order.If there are more stored aliases then fit in one page, optional page parameter can be used to access different pages. The number of stored aliases depends of the g_dbMaxAliases cvar.
!banb-!ban (NAME|SLOT)
(SECONDS|TIME_WITH_MODIFIER) REASON
Kicks the player in slot number SLOT or with name containing NAME off the server and will not let them connect again for SECONDS seconds, or, if a modifier (m, h, d, or w) is used, a given amount of time. For example:

90 = 90 seconds
15m = 15 minutes
3h = 3 hours
5d = 5 days
1w = 1 week
!baninfoe-!baninfo (BAN NUMBER) Shows detailed information of a ban in the ban list. Find the ban number with !showbans command.
!burnUYES!burn (NAME|SLOT) [REASON] Sets the player in slot number SLOT or with name containing NAME on fire. REASON will be center-printed to the victim.
!cancelvotec-!cancelvote makes a vote in progress fail
!countryi-!country (NAME|SLOT) Displays the country of the player. This command works only if GeoIP is enabled on server (g_countryFlags).
!crazygravityC-!crazygravity [on|off] Enables crazy gravity. Turning this option on will set the gravity to a random value in 30 second intervals.
To customize the crazy gravity use following cvars:
g_min_crazygravity
g_max_crazygravity
!crazyspeedC-!crazyspeed [on|off] Enables crazy speed. Turning this option on will set the speed to a random value in 30 second intervals.
To customize the crazy speed use following cvars:
g_min_crazyspeed
g_max_crazyspeed
!dewarnR-!dewarn (NAME|SLOT) [WARNING#] Shows all the warnings of a user. When warning# is added, the warning with that number will be removed
!disorientdYES!disorient (NAME|SLOT) [REASON] turns the view upside down for the client in slot number SLOT or with name containing NAME. If REASON is specified it is printed to the client.
!fingere-!finger (NAME|SLOT) Display the slot, partial PunkBuster and silEnT GUIDs, ip and the clientversion of a player. The PB GUID can be different then in the output of the !userinfo command. The difference comes from the user database not updating the PunkBuster GUID once it is stored. This is intentional behaviour.
NOTE: this command should only be available to the highest server admins!
!freezeFYES!freeze [NAME|SLOT] [REASON] Freezes the client in slot number SLOT or with name containing NAME. If no parameter is provided it freezes all players. Frozen player(s) cannot receive damage during this time. If REASON is specified it is printed to the client.
!gibgYES!gib (NAME|SLOT) Kills and gibs the player in slot number SLOT or with name containing NAME.
!gibaQYES!giba Kills and gibs all players.
!help-!help Lists all the available shrubbot commands. The command doesn't have a flag but it is available to all clients always.
!howfairI-!howfair Prints a simple summary to everyone on the chat of team fairness based on player kill rating.
!kickk-!kick (NAME|SLOT) REASON kicks the player in slot number SLOT or with name containing NAME off off the server. REASON is given to the client as the drop message. The client will be banned for 2 minutes.
!levlists-!levlist Lists all the admin levels loaded from the shrubbot.cfg.
!levinfos-!levinfo (level) Lists all the details of the specific admin level. The listed information includes The name of the level, the greeting, the greeting sound path and the privilege flags for the level.
!listi-!list Prints out a list of information about the connected players. The columns are:
  • slot number
  • team R=axis B=allies S=spectator C=connecting
  • first letter of fireteam name
  • admin level (and level name)
  • last 8 digits of guid
  • M if muted
  • W if warned
  • name
!listteamsI-!listteams prints out a list of statistical information about each team. This lists ends with ratings information based on how likely each team is to win the current map. The team with more points is LESS likely to win, therefore a good way to balance the teams is to join the team with more points, or move people to that team, until the points are about even.
!lockK-!lock (r|b|s|all) locks the team specified. recognized values are r=AXIS b=ALLIES s=SPECTATORS all=ALL
!lolxYES!lol (NAME|SLOT) [GRENADES] Makes specified players drop grenades. GRENADES is the number of grenades to be dropped (default is 1, maximum is 16).
!mutem-!mute (NAME|SLOT) [SECONDS|TIME_WITH_MODIFIER] REASON Mutes a player in a slot number SLOT or with a name containing NAME. TIME and REASON are optional. See !ban 6 lines above for more information on modifiers
!newsW-!news plays the map specific news audio to all players if it is available.
!nextmapn-!nextmap moves to the next map in campaign or in the objective cycle end game intermission is skipped
!orientdYES!orient (NAME|SLOT) reverses the action of !disorient for the client in slot number SLOT or with name containing NAME.
!panzerwarq-!panzerwar [on|off] Enables panzerwar
!passvoteV-!passvote makes a vote in progress pass
!pauseZ-!pause pauses the match
!pipzYES!pip (NAME|SLOT) Draws sparks (pixie dust) around the player in slot number SLOT or with name containing NAME.
!pistolwarq-!pistolwar [on|off] Enables pistol war.
Use g_headshot flag 4 to enable or disable instagib. Use g_instagibDamage to control the gib damage used by instagib in this war.
!popzYES!pop (NAME|SLOT) Pops the helmet off of player in slot number SLOT or with name containing NAME.
!putteamp-!putteam (NAME|SLOT) (r|b|s) puts the player in slot number SLOT or with name containing NAME on the indicated team.
r - AXIS
b - ALLIES
s - SPECTATORS
!readconfigG-!readconfig read g_shrubbot file
!renameNYES!rename (NAME|SLOT) NEWNAME sets the player in slot number SLOT or with name containing NAME to NEWNAME.
!resetr-!reset resets the match
!resetmyxpM-!resetmyxp clears all XP and skillpoints for the player who runs this command.
!resetxpXYES!resetxp (NAME|SLOT) [REASON] clears all XP and skillpoints for player in slot number SLOT or with name containing NAME. If reason is provided it is printed to the client.
!restartr-!restart restarts the match
!riflewarq-!riflewar [on|off] Enables generic rifle war.
!riflenadewarq-!riflenadewar [on|off] Enables rifle war where only nade shooting is enabled.
!rifleshootwarq-!rifleshootwar [on|off] Enables rifle war where only rifle shooting is enabled and rifle nade firing is disabled.
!setlevels-!setlevel (NAME|SLOT) LEVEL sets the connected player in slot number SLOT or with name containing NAME to the level indicated by LEVEL. A player cannot !setlevel another player to a lever higher than him/herself.
!showbansB-!showbans [SKIP] Lists up to 30 shrubbot bans currently in effect. The columns are:
  • ban number
  • banned player's name
  • silEnT ID of the banned player
  • PunkBuster GUID of the baned player
  • date of the ban
  • name of the banning admin
  • when the ban will expire
  • reason for the ban
If SKIP is provided, that number of bans are skipped before printing starts. SKIP can also be negative (e.g. '!showbans -10' would display the last 10 bans.
!shuffleS-!shuffle Shuffles teams (based on XP), but does NOT restart (see !restart)
!slapAYES!slap (NAME|SLOT) [DAMAGE] [REASON] does DAMAGE (default 20) damage to player in slot SLOT or with name containing NAME. If REASON is specified it's center-printed to the victim.
!sniperwarq-!sniperwar [on|off] Enables sniperwar
!spec999P-!spec999 moves all players with ping of 999 to the spectators team.
!spreeE-!spree Show the players current killing spree count
!spreerecordE-!spreerecord Displays the map and overall spreerecord
!statst-!stats Displays the Thompson, MP40 and PPSh total kills and deaths, kills and deaths during the map and accuracy, headshotratio and headshot distance during the map. Lists all connected players.
!stenwarq-!stenwar [on|off] Enables sten war.
!subnetsB-!subnets This command displays all the issued subnet bans.
!subnetban.-!subnetban [subnet] (time) (reason) With this command admin can issue subnet ban. Subnet ban is a ban where the connecting player IP is matched against a larger IP range. The command accepts only subnets between range x.* - x.x.x.*. If the admin attempts to issue subnet ban that would ban himself the command refuses to add the subnet. This can be circumvented using rcon commands. If admin wants to add a subnet that would ban himself he must first whitelist himself with !userwl command. If silEnT can confirm the admin can connect the subnet ban is added. The command accepts full IP as it's parameter in which case the subnet is created to the x.x.x.* address. To remove subnet bans admin can use the !rmsubnetban command. The syntax with this commnd is the same kind with ban and userban commandand reason andtime can be given. The reason should be given so that any player connecting would know the reason for not being able to connect.
!swapw-!swap swaps the players to the opposite team
!time-!time Prints out localtime of the client in the chat. No other client can see this time message. The command doesn't have a flag but it is available to all clients always.
!teamstatsT-!teamstats (r|b) Show kill and player rating statistics from the players of the selected team.
!tspreeE-!tspree [amount] Show the top n current killing spree (default top 5)
!unbanb-!unban BAN_NUMBER removes the ban that !showbans lists as BAN_NUMBER
!unfreezeFYES!unfreeze [NAME|SLOT] Unfreezes the client in slot number SLOT or with name containing NAME. If no parameter is provided it unfreezes all players.
!unpauseZ-!unpause unpauses the match
!unmutem-!unmute (NAME|SLOT) Unmutes the player in slot number SLOT or with name containing NAME.
!unlockK-!unlock (r|b|s|all) unlocks the team specified. recognized values are r=AXIS b=ALLIES s=SPECTATORS all=ALL
!uptimeu-!uptime Show how long the server has been up and running
!fling
!launch
!throw
lYES!fling (NAME|SLOT) send the player in slot number SLOT or with name containing NAME flying.
!flinga
!launcha
!throwa
LYES!flinga sends all players flying
!warnR-!warn (NAME|SLOT) [WARNING] plays the whistle sound and center-prints WARNING to the player in slot number SLOT or with name containing NAME.
User Database Commands
!aliasesdel[-!aliasesdel [silEnT ID] Command removes all the aliases from the player identified by the 8 character silEnT ID.
!aliassearch]-!aliassearch [name] [start] Searches all the aliases in the database for the name pattern. Prints all the matching aliases by the player. If all the results don't fit in one page, optional start parameter can be used to access more players.
See !aliassearch for details.
!userlist]-!userlist [PAGE] Lists all users in the database. If PAGE is given, the list starts from that page.
See !userlist for details.
!userinfo]-!userinfo [silEnT ID] [aliases [page]] Displays all information that is stored about the user in the database.
See !userinfo for details.
!userinfopb]-!userinfopb [PBGUID] Displays all information that is stored about the user in the database. Compatibility command for accessing old information that is still not linked with the silEnT GUID.
See !userinfo for details.
!useredit[-!useredit [silEnT ID] [add|remove|level|greeting|sound] [new value] Command is used to edit explicit userdata in the database.
See !useredit for details.
!usereditpb[-!usereditpb [PBGUID] [add|remove|level|greeting|sound] [new value] Command is used to edit explicit userdata in the database. Compatibility command for accessing old information that is still not linked with the silEnT GUID.
See !useredit for details.
!givexp[-!givexp [silEnT ID] [sold|med|eng|fops|cov|light|battle] [amount to add] Command gives XP to a player identified by silEnT ID.
See !givexp for details.
!givexppb[-!givexppb [PBGUID] [sold|med|eng|fops|cov|light|battle] [amount to add] Command gives XP to a player identified by PBGUID. Compatibility command for accessing old information that is still not linked with the silEnT GUID.
See !givexp for details.
!userban]-!userban [silEnT ID] [time] [reason] Command bans user indentified by the 8 character silEnT GUID from the server.
See !userban for details.
!userbanpb]-!userbanpb [PBGUID] [time] [reason] Command bans user indentified by the 8 character PB GUID from the server. Compatibility command for accessing old information that is still not linked with the silEnT GUID.
See !userban for details.
!userwl]-!userwl [silEnT ID] Command whitelists player indentified by the 8 character silEnT ID.
See !userwl for details.
!userwlpb]-!userwlpb [PBGUID] Command whitelists player indentified by the 8 character PB GUID. Compatibility command for accessing old information that is still not linked with the silEnT GUID.
See !userwl for details.
!userdel[-!userdel [silEnT ID] Command removes the user identified by the 8 character silEnT ID from the database.
See !userdel for details.
!userdelpb[-!userdelpb [PBGUID] Command removes the user identified by the 8 character PB GUID from the database. Compatibility command for accessing old information that is still not linked with the silEnT GUID.
See !userdel for details.
!usersearch]-!usersearch [name (name)]|&[level (level)]|&[IP (IP)] [page] Command is used to search user database to find players. It will not work with players that are not stored in the database.
See !usersearch for details.
!readadmins)-!readadmins Command can be used to read admin definitions from edmins.cfg file.
See !readadmins for details.
!resetpls(-!resetpls [PBGUID] Command can be used to reset statistics for specified player. The total kills/deaths and also K/D and PRW is resetted.
See !resetpls for details.
!confirm:-!confirm [Client Number] Command generates authentication checks between the server and the client. This command can be issued to players who have admin levels, but they have yet not been confirmed to be the players to who those admin levels were given. This command is not !setlevel and it is safe to use this command at anytime. Command can be given to anyone who is trustworthy enough to identify the real admins when they appear to the new database for the first time. If !setlevel is used to an online player, this command is not needed.
!updatepbguid,-!updatepbguid [Name|Slot] Command updates the PB GUID that is stored in the database to the one player is currently using. With the exception that empty, invalid or dublicated PB GUIDs are not saved to the database.

The following flags are also supported:
1Cannot be vote kicked, vote muted, or complained against.
2Cannot be censored.
3Can run commands silently with /!COMMAND in the console.
4Can see Axis/Allies team chats as a spectator.
5Can switch teams any time, regardless of balance.
6Does not need to specify a reason for !mute, !kick or !ban.
7Can call a vote at any time (regardless of disabled voting or voting limitations).
8Does not need to specify a duration for !mute or !ban (defaults to PERMANENT).
9Can do shrubbot commands via team and fireteam chats.
0Is immune to g_inactivity and g_spectatorInactivity settings.
!Is immune to all shrubbot commands (useful for server admins). Note, this flag must be specified explicitly the * flag does not grant it.
@"incognito" flag shows the admin as level 0 with no a.k.a info in the output of !listplayers. Note, this flag must be specified explicitly the * flag does not grant it.
$Can do !admintest on other players.
~Can read and write the adminchat with the /ma command. All referees and all other players with the ~ flag will be able to read this chat.
&Can rename himself regardless of g_maxNameChanges limit.
?Can see all private messages while being in spectators. g_tyranny must be set for this flag to take effect.
/Cannot send private messages. Otherwise normal privileges.
#Cannot call votes.


The * operator is supported in the flags field:
Example
This means all all available flags are granted (except ! and @). Any flags that come after the * are negated. So for example:
[level]
level    = 5
name     =
flags    = *xU
greeting =
greeting_sound =
would give level 5 admins all commands except !lol and !burn.

Shrubbot is divided into to parts. Users are stored in the user database and other configuration infos and bans are stored in a separate human readable config file.
The configuration file itself is layed out in blocks serpated by blank lines. The types of blocks supported are [level], [command] and [ban]. If you ever need to edit the shrubbot.cfg file by hand, you need to run the !readconfig command (or restart etded) to load it.

When setting up a new shrubbot.cfg file, set the location pointed by g_dbDirectory cvar before starting the server. If this cvar is not set to a valid location, the shrubbot will not initialize. Then simply connect to the server with your et, and run the following command in the server console:

!setlevel ETPlayer 5
(where ETPlayer is your name). This will create the shrubbot.cfg file with default levels and your guid set to level 5 admin (the highest default level). You can then edit the level definitions in this file to match your preferences and run the !readconfig command to load them up. However, the silEnT default zip comes with fully working structure and shrubbot.cfg file so you may not need to do this.

The element [level] in the shrubbot file format.

Level blocks define everything related to the levels in the shrubbot. These definitions include the level name, which is shown with !list command, commands available for the level, the welcome message when a player with the level enters the server, the sound that is played when player enters the server and of course, the number of the level. Do note that while each level can have it's own flags independently from other levels, the immunity against lower level commands is always based on the level number. The levels with bigger level numbers are immune to levels with smaller level numbers.

You can also add a greeting to users specifically and/or [level] blocks. This greeting will be displayed when a shrubbot admin connects to the server. Adding a greeting to a [level] block will show that greeting for every admin with that level, while adding a greeting to any user specifically will only show the greeting when that particular admin connects. When both [level] block and user data contain a greeting, the user specific greeting is used. When you type [n] in a greeting, it will be replaced by the name of the connecting admin. Example:

[level]
level    = 5
name     = Admin
flags    = *
greeting = Level 5 admin [n] is on the floor
greeting_sound =

If TJW is the connecting admin, all players will see: "Level 5 admin TJW is on the floor".

The element [customvote] in the shrubbot file format.

Custom vote blocks allow admins to add new votes to be called with /callvote that are not part of the mod itself. The format of the [customvote] block:

[customvote]
name     = max 15 characters long name of the vote
exec     = max 1023 characters long execute line
description = max 1023 characters long description of the vote
votetext = max 255 characters long text to be shown as the vote
passtext = max 255 characters long optional text to be shown if the vote passes
levels   = max 32 space separated optional level numbers

Where name is used with callvote command, exec is the commands that are executed if the vote passes, description is shown in the /callvote output if a vote is not called, votetext is the text that is shown in the vote, passtext is optional text that is printed to all players if the vote passes and levels is optional definition of levels that can call the vote.

Do note that if the levels are left empty, everyone can call the vote.

The element [command] in the shrubbot file format.

This allows server admins to create their own shrubbot commands for executing server commands. however, you can only give privileges to commands through levels. It is not possible to explicitly give some user a privilege to a custom command. Here are some examples:

[command]
command  = hello
exec     = cp "hello world"
desc     = Center Print the text "hello world" to all connected clients
levels   = 0 1 2 3 4 5

[command]
command  = panzeroff
exec     = set team_maxPanzers 0
desc     = Turn off panzers
levels   = 5

[command]
command  = havefun
exec     = exec fun.cfg
desc     = Load up some crazy settings/commands
levels   = 5

[command]
command  = unlimitedpanzers
exec     = cp "^1Unlimited panzers!"; set team_maxPanzers -1
desc     = Everyone can have a panzerfaust!
levels   = 5

This would create 4 new commands, !hello, !panzeroff, !havefun, and !unlimitedpanzers. !hello can be run by any user with an admin level 0 through 5. !panzeroff, !havefun, and !unlimitedpanzers would be executable by only level 5 users. You must name each level in the space seperated level string (a higher level does not grant authority). As shown in !unlimitedpanzers, you can separate commands with a semicolon (;).

[command] elements can use shortcut characters as described in Shortcuts. Additionally you can use shortcut [i] to replace it with the player ID of the player using the command.

Here are some samples:

[command]
command  = spec
exec     = !putteam [n] s
desc     = Become a spectator
levels   = 0 1 2 3 4 5

[command]
command  = pizza
exec     = cp "[n] ^7orders a big pizza for everyone except [d]^7!"
desc     = Some message
levels   = 3 4 5

[command]
command  = ms
exec     = makeshoutcaster [i]
desc     = Makes you a shoutcaster
levels   = 5

[command] elements can use up to 9 parameter placeholders (from [1] to [9]) in the commands. For example, given the following definition:

[command]
command  = mynameis
exec     = cp "[n]'s ^7real-life name is [1]^7!"
desc     = Print real name
syntax   = (name)
levels   = 0 1 2 3 4 5

When a user types the command like this:

!mynameis bartholomew

Will print out something like:

[JJJJ]zuxx0r's real-life name is bartholomew

Since silEnT 0.2.1 it is possible to add '?' to the parameter placeholders. This will try to match the pattern to a player name on the server. For example, given the following definition:

[command]
command  = crybaby
exec     = chat "[1?]^7 is crying like little baby!"
desc     = Make someone cry
syntax   = (name)
levels   = 0 1 2 3 4 5

When user types the command like this:

!crybaby gao

Will print out something like:

gaoesa is crying like a little baby!

If the player name match fails a response is returned to the user stating either that there were too many matches or that no player matched.

Parameters that the user does not type in are left blank in your command. You can use the parameters in any order (so the user types the parameters in a different order than they are used).

These commands will show up like any other shrubbot command in the output of !help and the !help command will also provide detailed info for the command using the 'desc' paramter (e.g. '!help hello'). Starting from silEnT version 0.6.1, it is possible to add syntax parameter to the command blocks. This helps creating proper !help syntaxes for the commands. See examples of the syntax parameter from !crybaby and !ms commands.

These are the limits on the shrubbot:

Maximum number of levels: 31
Maximum length of shrubbot level name: 35 (includes color codes)
Maximum number of users with a set level: Unlimited
Maximum number of player aliases: limited by g_dbMaxAliases
Maximum number of player bans: 1023
Maximum length of ban reason: 1023
Maximum number of admin-defined commands: 95
Maximum number of custom votes: 32
Maximum admin-defined command name length: 63 characters
Maximum admin-defined command length (executable part): 1023 characters
Maximum admin-defined command length (help string): 1023 characters
Maximum number of warnings: 1023


User Database

User database is intended to store information of all the players that connect to the server. To enable user database g_dbDirectory must be set. The database stores information to identify different players and also XP data, rating data, overall stats data and shrubbot admin data. silEnT GUIDs are used to identify single players.

silEnT can optionally also store player aliases. These aliases are stored to the side of the main database. To enable aliases database, you must set the g_dbMaxAliases to a positive integer. You can change the value later on, if for example there are too many aliases stored, the silEnT will automatically drop excess aliases from the oldest used aliases. The aliases are kept in the order of last seen list and the oldest aliases are deleted when necessary. Do note that the g_dbMaxAliases cvar must be set before the mod launches. This protects the database against the possibility of the rcon password falling into wrong hands.

Shrubbot includes functionality for server admins to handle database userdata. These commands are !aliasesdel, !aliassearch, !userlist, !userinfo, !useredit, !givexp, !userban, !userdelete, !usersearch, !readadmins and !resetpls. All commands that handle users in the database will take the last 8 characters of the player silEnT GUID to identify the player to edit. This is not unique identification but should provide enough uniqueness to prevent collisions. Internally, the complete GUID is used to identify the players.

!aliassearch

This command searches the whole aliases database for the pattern in the names. Note that this command is the most resource intensive shrubbot command of all and it is not recommended to be used without a reason. How it performs in the practice depends of the aliases database size.

For each player the following information is shown:

To see all the aliases of the found player you can use !userinfo <silEnT ID> aliases <page> command. In the case of all the data not fitting in one page, you can give optional start parameter. The start parameter corresponds to the numbers shown in the first column of the results. So that each player has it's own number and under that number all the matching aliases from that player are printed.

!userlist

Lists all users in the database. If PAGE is given, the list starts from that page. If PAGE is not given the first page of the database is printed. The command prints all users, including clients that have connected during the level time and are not yet in the database. The connected clients are always printed first and then the rest of the userbase.

The printed rows have the following columns:

#This is the serial number of the user in the printout. The number doesn't correspond to anything in the database.
silEnT IDThis is the 8 character silEnT GUID of the player. This is used to identify different players in the database.
PBGUIDThis is the 8 character PB GUID of the player. This is used to identify different players in the database.
Last SeenThis tells how long time ago the user was last seen on the server. For connected clients, this will print "connected".
IPThis tells the last IP address user has had on the server.
BanThis tells the ban number of the player if he/she is banned. It may also have white capital W to signify the player is whitelisted.
NameThis tells the last name with user has been saved on the server.

With userlist command an admin can list all the users saved in the database and those that are connected page by page. Optional page number can be given to the command to tell which page is to be displayed about the users. One page can have up to 20 players printed.

!userinfo

Displays all information that is stored about the user in the database.

This information includes:

Command can optionally print player's stored aliases if the optional aliases parameter is given and the aliases database is enabled by setting g_dbMaxAliases to a positive integer. If printed aliases don't fit in one page, optional page parameter can be used to access different pages.

Command requires the last 8 characters of the player's silEnT GUID. This GUID can be found with !userlist or !usersearch commands. This command works for both online and offline players. For compatibility !userinfopb will accept the last 8 characters of the player's PB GUID. The userinfopb does not show aliases however.

!useredit

Command is used to edit explicit userdata in the database. The command format is:

!useredit [silEnT ID] [add|remove|level|greeting|sound] [new value]
The command parameters in detail:
silEnT IDThis is the 8 character silEnT GUID of the player. This is needed to identify the player to edit.
addIf the command is given this parameter, the value(s) in the [new value] field will be added to the player's personal flags.
removeIf the command is given this parameter, the value(s) in the [new value] field will be removed from the player's personal flags.
levelIf the command is given this parameter, the value in the [new value] field will be set as the players new level. The level may not be higher then the level of the player executing the command.
greetingIf the command is given this parameter, the value in the [new value] field will be the players new personal greeting. If the [new value] field is empty, the personal greeting is cleared.
soundIf the command is given this parameter, the value in the [new value] field will be the file path to the players new personal greeting sound. If the [new value] field is empty, the personal greeting sound is cleared.
new valueThis field is used to give values to the command.
If the optional new value field is not set with greeting or sound parameter, the value will be set to empty and level values will be used again with these players.

This command works with online and offline players.

!givexp

Command gives the online or offline player identified by silEnT ID a defined amount of XP points to the selected skill.

The possible skills are:

soldSoldier or Heavy Weapons
medMedics or First Aid
eng Engineering or Explosives and Construction
fopsField Ops or Signals
covCovert Ops or Military Intelligence and Scoped Weapons
lightLight Weapons
battleBattle Sense

!userban

Command bans user indentified by the 8 character silEnT GUID from the server. The data required for ban is taken from the database and the banned user does not need to be online when the command is given. Bot's cannot be banned with this command. Note that the bans are written in the human readable config file and you can still write the bans by hand if desired. Also, removing of the bans can be done by hand if desired.

The command syntax is

!userban [silEnT ID] [time] [reason]
where [time] is the ban time in seconds and [reason] is the stored reason for the ban. Time modifiers can be used with this command.

!userwl

With this command admin can whitelist or remove whitelisting from any player. Whitelisting means that the player IP is not checked against any IP bans. Including subnet bans and individual bans.

!userdel

Command removes the user identified by the 8 character PB GUID from the database. The actual actions are taken at the level end if needed. However, once the !userdelete command has been issued to the user, the information of the user is no longer available and after the shutdown game, it is permanently lost.

If the removed player is connected to the server while removing, a new entry is written to that player.

!usersearch

With this command an admin can search the database for players with specific parameters. Arguments to the command can be pattern in the name, user admin system level and the beginning of the IP address. Additional page number can be given when the amount of found results exceed what can be shown in one page. All the arguments can be given in one command in any order. Any one of the arguments can be omitted, but each time when command is given at least one argument on top of the optional page number must be given. This command searches stored information only from the database. Connected players are not included unless they already have been stored into the database.

This command is performance intensive and it is not recommended to use it on high utilisation server unless it is needed for maintenance operations. The command will internally always try to optimise itself. If the command is given repeatedly with same arguments but only changin the page number, new searches are not performed but only different pages of the already found results are displayed. The optimisations include that silEnT will try to use the already found results as a basis for the new search (e.g. "!usersearch name gao" followed by "!usersearch name gaoe" will first search the whole db to find all users with the pattern gao in their names and the follow up search will refine the already found results for gaoe). The maximum amount of results one search can return is 256 users. Users are displayed in the console in pages with 20 users on each page.

!readadmins

With this command an admin can read admin definitions from a specific admins.cfg file. The file must be placed in the directory pointed by g_dbDirectory server cvar. The file may have only admin definition blocks.

Admin definitions use always the following syntax. The syntax is exactly the same used by the ETPub.

[admin]
name     = name of the admin (can be left empty)
guid     = full 32 character PB GUID (this field is used to identify players in the database)
sguid    = full 32 character silEnT GUID (this field is used to identify players in the database)
level    = level number
flags    = personal admin flags (can be left empty)
greeting = personal greeting (can be left empty)
greeting_sound = path to personal greeting sound (can be left empty)

If the database doesn't yet have the player, it will be added there. Those players will have the last seen field reading NEVER with !userlist and !usersearch command outputs. If the player already exists in the database, the admin values will be overwritten with the ones in read from the admins.cfg file. The admin block can be inserted to the database by either silEnT GUID or by PB GUID. Which ever is available, but one of those must be set.

!resetpls

With this command an admin can reset all stored statistics from an online or an offline player. The stored statistics include total SMG kills and deaths, the player K/D rating and PRW rating.


Banners

The banners file is a file that contains all the information about banners. See g_banners to see how you can enable this file.

The banners file consists of [banner] blocks (similar to shrubbot). A [banner] block adds a banner to the server banner queue.

A [banner] block has the following fields:

[banner]
message    = ^1Check out our banner!
wait       = 30
position   = bp

The "message" is the actual message that is displayed to all the players on the server. The "wait" field determines when the next banner will be displayed. Setting this to 30 means the next banner will show up 30 seconds after this banner. Setting the wait to 0 means the next banner will be displayed at the same moment as this one. This in combination with the "position" field that determines the position of the banner, allows the same text to be displayed at one time at multiple positions. "position" can have the values chat, cpm (popup), cp (center), bp (banner) or print (console).

The maximum amount of banners is 31 and the maximum length of individual banner is 255 characters.


Shortcuts

Server supports the replacement of the following keys in say messages

[a]last player who gave you ammo
[d]last player who killed you
[g]the last 8 characters of your GUID
[h]last player who gave you health
[k]last player you killed
[l]your location (letter,number)
[n]your name
[r]last player who revived you
[p]last player you looked at
[s]health remaining
[w]name of current weapon
[t]ammo for current weapon

Forcing Client Settings

silEnT server is able to force client cvars to certain values or ranges by using forcecvar and sv_cvar commands. sv_cvarempty will clear all the sv_cvar commands the server has loaded.

To use the possibility, the g_mapConfigs must be set. All forcecvar and sv_cvar commands that are placed in the default.cfg, will be executed on every map start. Those settings can be overloaded by using a map specific cfg name [mapname].cfg. More help is available at silEnT forums.


Announcement Sounds

When announcements are enabled on the server, the server admins may choose to install their own announcement sounds to replace the mod default ones or add missing sounds. Any of the following sounds can be installed by the admins:

Killing Spree
sound/announces/spree5.wav
Rampage
sound/announces/spree10.wav
Dominating
sound/announces/spree15.wav
Unstoppable
sound/announces/spree20.wav
Godlike
sound/announces/spree25.wav
Wicked Sick
sound/announces/spree30.wav
Revive Spree 3
sound/announces/revive3.wav
Revive Spree 5
sound/announces/revive5.wav
Revive Spree 10
sound/announces/revive10.wav
Double Kill
sound/announces/doublekill.wav
Triple Kill
sound/announces/triplekill.wav
Multi Kill
sound/announces/multikill.wav
Ultra Kill
sound/announces/ultrakill.wav
Monster Kill
sound/announces/monsterkill.wav
Death Spree 10
sound/announces/deaths10.wav
Death Spree 20
sound/announces/deaths20.wav
Spree End by Enemy
sound/announces/send.wav
Spree End by Team Kill
sound/announces/sendtk.wav
Spree End by Self Kill
sound/announces/sendsk.wav
Spree End by Environment
sound/announces/sendenv.wav
First Blood
sound/silent/firstblood.wav - notice the folder is silent and not announces

To replace any of the sounds, create a pk3 file with the mentioned path and sound file name. The replaced sound will be automatically played. The pk3 files are regular zips with only the zip ending changed with pk3.


Hit Sounds

Starting from silEnT 0.6.0, the players have freedom to choose the type of hit sounds they prefer in the game. On top of that, servers can configure default hit sounds that are used. Also, it is possible to add custom hit sounds. However, custom hit sounds require additional custom pk3 file added to the server. The default hit sounds are defined using the g_defaultHitSounds server cvar. To add custom hit sounds, admins can add any of the following files into a custom pk3 file and the sounds are automatically loaded by the client. If on your server you do not want to have hit sounds, you can configure the g_hitsounds server cvar to disable or enable any of the possible types of hit sounds.

Body Hit Sound
sound/hitsounds/body.wav
Head Hit Sound
sound/hitsounds/head.wav
Team Hit Sound
sound/hitsounds/team.wav

To add any of the sounds, create a pk3 file with the mentioned path and sound file name. The added sound will be automatically played. The pk3 files are regular zips with only the zip ending changed with pk3. Do note that you must never overload the hit sound files that come with the silent pk3.


Lua

Lua support in silEnT mod

silEnT servers support Lua 5.1.4 scripts. Starting from version 0.5.1 the Lua interpreter is inbuilt into the server side mod. Before the vesion 0.5.1, the Lua was installed as an external module. silEnT's Lua API is aiming to be fully compatible to etpro's Lua API. Differences between silEnT's and etpro's Lua API are described in this documentation.

Lua resources

COMMANDS

Client Commands

lua_status

Lists all currently loaded lua modules.
 
Lua modules cannot override this client command.

Server Commands

lua_status

Lists all currently loaded lua modules.

CVARS

Server Cvars

lua_modules

Space separated list of lua modules for silEnT to load. Modules will be run in the order listed.
 
Default is "" (Disabled)

lua_allowedModules

If set, only lua modules with the matching sha1 signatures listed in this cvar will be allowed to load.
 
Default is "" (Disabled)

Changing either cvar will cause all currently loaded modules to quit and be unloaded until the next map_restart, reset_match or map change.

ET LIBRARY CALLS

Clients

*clientnum = et.ClientNumberFromString( string )

Searches for one partial match with string. If one is found the clientnum is returned. If there is none or more than one match -1 is returned.
 
 
LUA CODE EXAMPLE
-- get number from client with partial name match 'ETPla'
clientnum = et.ClientNumberFromString("ETPla")

ET Filesystem

fd, len = et.trap_FS_FOpenFile( filename, mode )

Attempts to open the file filename with the access mode mode (see et.FS_* constants). Returns the filedescriptor fd and file length len. On error, len returns -1.
 
 
LUA CODE EXAMPLE
fd, len = et.trap_FS_FOpenFile("mymodule.log", et.FS_READ)

filedata = et.trap_FS_Read( fd, count )

Reads count bytes from filedescriptor fd.
 
 
LUA CODE EXAMPLE
fd, len = et.trap_FS_FOpenFile("mymodule.log", et.FS_READ)

if len ~= -1 then
	filedata = et.trap_FS_Read(fd, len)
end

et.trap_FS_FCloseFile(fd)

count = et.trap_FS_Write( filedata, count, fd )

Attempts to write count bytes of filedata to filedescriptor fd. Returns number of bytes (count) successfully written.
 
 
LUA CODE EXAMPLE
fd, len = et.trap_FS_FOpenFile("mymodule.log", et.FS_APPEND)
content = "MODEVENT: X Y: Player X does something with player Y.\n"

if len ~= -1 then
	count = et.trap_FS_Write(content, string.len(content), fd)
end

et.trap_FS_FCloseFile(fd)

et.trap_FS_Rename( oldname, newname )

Renames file oldname to newname.
 
 
LUA CODE EXAMPLE
et.trap_FS_Rename("mymodule.log", "mymodule.bak")

et.trap_FS_FCloseFile( fd )

Closes filedescriptor fd.
 
 
LUA CODE EXAMPLE
fd, len = et.trap_FS_FOpenFile("mymodule.log", et.FS_READ)

-- read file content here

et.trap_FS_FCloseFile(fd)

Sound

*et.G_ClientSound( clientnum, soundindex )

Plays the sound soundindex for the client with clientnum only.
 
 
LUA CODE EXAMPLE
-- play a sound for client #3 only
soundindex = et.G_SoundIndex("sound/world/alarm_01.wav")
et.G_ClientSound(3, soundindex)

Miscellaneous

milliseconds = et.trap_Milliseconds()

Returns a number (milliseconds) indicating the current server time in milliseconds.
 
 
LUA CODE EXAMPLE
milliseconds = et.trap_Milliseconds()

et.G_Damage( target, inflictor, attacker, damage, dflags, mod )

Does amount of damage on target inflicted by inflictor and cased by attacker.
 
- target, inflictor and attacker are entity numbers.
- dflags is a bitflag number to decide how the damage is inflicted.
- mod is a number from 0 up to *69 to set the type of damage.
 
 
LUA CODE EXAMPLE
-- do 50 damage with no protection (dflags = 32) on client #0
-- with MOD_UNKNOWN (mod = 0) as <world> entity (inflictor, attacker = 1022)
et.G_Damage(0, 1022, 1022, 50, 32, 0)
DFLAGS LIST
DAMAGE_RADIUS                  1 // damage was indirect
DAMAGE_HALF_KNOCKBACK          2 // do less knockback
DAMAGE_NO_KNOCKBACK            8 // do not affect velocity, just view angles
DAMAGE_NO_TEAM_PROTECTION     16 // armor, shields, invulnerability, and godmode have no effect
DAMAGE_NO_PROTECTION          32 // armor, shields, invulnerability, and godmode have no effect
DAMAGE_DISTANCEFALLOFF        64 // distance falloff

*flooding = et.ClientIsFlooding( clientnum )

Checks if client clientnum is flooding (1) or not (0).
 
Note: There will be done no update to the flood protect behaviour on running this library call. silEnT only checks on callvote, say, m, mt, ma, say_team, vsay, vsay_team, say_buddy, vsay_buddy, fireteam, rconAuth, ready, say_teamnl, specinvite, readyteam client commands for flooding.
 
 
LUA CODE EXAMPLE
if et.ClientIsFlooding(clientnum) == 1 then
	-- client is flooding, do something
end

*et.G_AddSkillPoints( ent, skill, points )

Note: To remove skill points you can also use negative points values.
 
 
LUA CODE EXAMPLE
-- add 100.5 points to heavy weapons skill (skill = 5) of client #0
et.G_AddSkillPoints(0, 5, 100.5)

*et.G_LoseSkillPoints( ent, skill, points )

LUA CODE EXAMPLE
-- remove 100.5 points from heavy weapons skill (skill = 5) of client #0
et.G_LoseSkillPoints(0, 5, 100.5)

*et.G_QueryClientCvar( clientNum, cvarName)

Issues cvar query to the client. The cvar value is returned in et_CvarValue( client, cvar, value ) callback function.
 
 
LUA CODE EXAMPLE
-- get m_pitch value from the client in slot 0
et.G_QueryClientCvar(0, "m_pitch")

Entities

(variable) = et.gentity_get ( entnum, fieldname, arrayindex )

Gets the value of fieldname from entity entnum out of the g_entity struct. For NULL entities, nil is returned.
arrayindex is used to specify which element of an array entity field to get. It is required when accessing array type fields. Entity field array indexes start at 0.

et.gentity_set( entnum, fieldname, arrayindex, value )

Sets the value of fieldname from entity entnum in the g_entity struct to value.
arrayindex is used to specify which element of an array entity field to set.

Shrubbot

*permission = et.G_shrubbot_permission( ent, flag )

Checks if client ent has permission (1) for flag or not (0).
 
Note: Use nil or -1 to check permission for console (Console always returns 1!).
 
 
LUA CODE EXAMPLE
-- check if client #1 has permission for flag "C"
if et.G_shrubbot_permission(1, "C") == 1 then
	-- client has permission, do something
end

*level = et.G_shrubbot_level( ent )

Returns the level for client ent.
 
Note: Use nil or -1 to get the level for console.
 
 
LUA CODE EXAMPLE
-- get shrubbot level for client #2
level = et.G_shrubbot_level(2)

CALLBACKS

qagame Execution

Client Management

et_ClientSpawn( clientNum, revived, *teamChange, *restoreHealth )

Called when a client is spawned. clientNum is the client slot id. revived is 1 if the client was spawned by being revived.

Commands

intercepted = et_ClientCommand( clientNum, command )

Called when a command is received from a client. clientNum is the client slot id. command is the command. The mod should return 1 if the command was intercepted by the mod, and 0 if the command was ignored by the mod and should be passed through to the server (and other mods in the chain).

intercepted = et_ConsoleCommand( *command )

Called when a command is entered on the server console. The mod should return 1 if the command was intercepted by the mod, and 0 if the command was ignored by the mod and should be passed through to the server (and other mods in the chain).

Miscellaneous

(customObit) = et_Obituary( victim, killer, meansOfDeath )

Called whenever a player is killed. *Modules should return a string (customObit) to override the default obituary or nil to leave it as it is.
 
 
LUA CODE EXAMPLE
function et_Obituary(victim, killer, meansOfDeath)
	if victim == killer and meansOfDeath == 26 then
		customObit = "%s ^7had an ^1EXPLOSIVE ^7relationship with his dynamite."
		return string.format(customObit, et.gentity_get(victim, "pers.netname"))
	end
end

et_CvarValue( client, cvar, value )

Called whenever a cvar value is returned from the client.

et_ClientBinary( client, checksum )

Called whenever a player connects with an unknown binary. Called also if a player connects with a known cheat binary.

et_IntermissionStarts( round )

Called one server frame before the game enters intermission. Round is the value from the g_currentRound cvar.

PREDEFINED CONSTANTS

*et.CS_PLAYERS
et.EXEC_NOW
et.EXEC_INSERT
et.EXEC_APPEND
et.FS_READ
et.FS_WRITE
et.FS_APPEND
et.FS_APPEND_SYNC
et.SAY_ALL
et.SAY_TEAM
et.SAY_BUDDY
et.SAY_TEAMNL

et.HOSTARCH

Set to WIN32 or UNIX depending on the host architecture qagame is running on.

*LUA_PATH

Set to fs_homepath/fs_game/?.lua;fs_homepath/fs_game/lualibs/?.lua in order to ease use of the require function. Depending on the configuration fs_basepath/fs_game/?.lua;fs_basepath/fs_game/lualibs/?.lua will be added to the LUA_PATH.

*LUA_CPATH

Set to fs_homepath/fs_game/lualibs/?.(so|dll) in order to ease use of the require function. Depending on the configuration fs_basepath/fs_game/lualibs/?.(so|dll) will be added to the LUA_CPATH.

*LUA_DIRSEP

Set to \ or / depending on the host architecture qagame is running on.

CONFIG

CAVEATS

Like qagame, lua modules are unloaded and reloaded on map_restart and map changes. This means that all global variables and other information is lost. Modules may choose to store persistent data in cvars or external files.

FAQ

Q: OMG I hate the libary prefix et.* on everything!
A: Use the following code to remove the prefix:

LUA CODE EXAMPLE
table.foreach(et, function(func, value) _G[func] = value; end)

Q: How do I reload my lua module without restarting the whole server?
A: Use map_restart, reset_match or simply change the map.

Q: OMG my lua module doesn't work!
A: Make sure you added your module's filename to the lua_modules cvar (e.g. set lua_modules "mymodule.lua").


Change Log

Version 0.9.0

Version 0.8.2

Version 0.8.1

Version 0.8.0

Version 0.7.2

Version 0.7.1

Version 0.7.0

Version 0.6.3

Version 0.6.2

Version 0.6.1

Version 0.6.0

Version 0.5.2

Version 0.5.1

Version 0.5.0

Version 0.4.0

Version 0.4.0.rc1

Version 0.3.3

Version 0.3.2

Version 0.3.1

Version 0.3.0

Version 0.2.1

Version 0.2.0

Version 0.1.4

Version 0.1.2


Credits

Special thanks to Krauersaut for building the Mac OS X binaries. We are greatly thankful to ETPub Dev Team since silEnT mod is based on ETPub 0.9.1. With time, we have done many core code changes, added new features and reworked all code to make it more optimized. We are also thankful to Foxdie, SunLight for the detailed explanation of the cg_zoomDefaultSniper exploit, ailmanki for the help with tripmine wires and to uNhoL for various help. Also, hello to NQ team.

Dev Team gaoesa TheSilencerPL hellreturn jamesplock jowish