Useful commands and includes for server owners & plugin developers alike.
Include
Description
chat.inc
Chat utilities
open_fortress.inc
Open Fortress utilities
shared.inc
Source Engine shared utilities
steam.inc
Steam utilities
tf2.inc
Team Fortress 2 (and if applicable, mod ) utilities
tf2classified.inc
Team Fortress 2 Classified utilities
ConVar
Default
Description
sm_serverexplosion_sound_alarm
ambient/alarms/klaxon1.wav
Sound to play for the alarm.
sm_serverexplosion_sound_explosion
ambient/explosions/explode_1.wav
Sound to play for the explosion.
sm_serverexplosion_max_flashes
3
Maximum number of flash effects.
sm_serverexplosion_flash_interval
1.0
Interval between flash effects.
sm_serverexplosion_duration
0.25
Duration of the explosion effect.
sm_serverexplosion_execute_command
_restart
Command to execute when the explosion sequence is complete.
sm_serverexplosion_text_display
SERVER EXPLOSION IMMINENT
Text to display during the explosion sequence.
sm_serverexplosion_text_color
255 0 0 100
Background color and alpha of the text warnings.
sm_serverexplosion_text_color2
255 255 255 255
Fade background color and alpha of the text warnings.
server_explosion.mp4
ConVar
Default
Description
sm_convert_mobster_vip
1
Convert Mobster VIP to TF2C VIP.
sm_truce_active
0
Toggle truce mode .
Command
Usage
Description
sm_(set)team
[target] <team>
Set player's team
sm_(set)class
[target] <class>
Set player's class
sm_respawn
[target]
Force respawn player(s)
sm_health
[target] <amount>
Set player's health
sm_maxhealth
[target] <amount>
Set player's max health
sm_currency
[target] <amount>
Set player's currency
sm_scale
[target] <amount>
Set player's scale
sm_addattr(ibute)
[target] <attribute> [value] [duration]
Add attribute to player
sm_removeattr(ibute)
[target] <attribute>
Remove attribute from player
sm_getattr(ibute)
[target] <attribute>
Get attribute value from player
sm_fireinput
<target> <input> <value>
Fire entity input on player
sm_hint
<target> <message> <duration> [icon]
Show instructor hint to player
sm_addcond
[target] <condition> [duration]
Add condition to player
sm_removecond
[target] <condition>
Remove condition from player
sm_giveweapon
[target] <defindex> [classname]
Give weapon to player
sm_removeweapon
[target] <defindex>
Remove weapon from player
sm_stripweapons
[target]
Strip all weapons from player
Command
Description
sm_fp / sm_firstperson
Switch to first-person view
sm_tp / sm_thirdperson
Switch to third-person view
sm_credits
View server contributors
addons/sourcemod/configs/sm_utilities/credits.cfg
Example config:
" Credits"
{
" Maxxy"
{
" steam" " 76561198033547232"
" contributions"
{
" 0"
{
" url" " https://steamcommunity.com/sharedfiles/filedetails/?id=416722824"
" name" " Deathmatch Mercenary"
}
}
}
}
Filter
Description
@teamname
Target players on a specific team by name (e.g. @spectator)
@vips
Target Civilian players
Command
Description
sm_reloadmap
Reloads the current map
Stripped FCVAR_CHEATS flag out of the following commands:
Command
nav_generate
nav_generate_incremental
sm_nav_generate
sm_nav_generate_incremental
bot_kick
ConVar
Default
Description
sm_quit_retry
1
Send retry command to clients on quit.
sm_restart_retry
1
Send retry command to clients on restart.
ConVar
Default
Description
sm_friendlyfire_endround
1
Enable friendly-fire at the end of rounds.