List of console commands and variables - KitRifty/slender-fortress GitHub Wiki
All the contents listed below are all the console commands and variables that Slender Fortress creates and uses.
Any command that starts with "sm_" can be executed the same way typing it in chat, but make sure that when typing in the command in chat that you replace "sm_" with the "!" or "/" symbol. Otherwise if you're executing it from the console, just leave it as is.
Some commands use parameters in order to be executed properly, so the commands and their required parameters will be listed.
If in doubt about the parameters of a command while in-game, simply type in only the command name and it will print out instructions on how it should be used.
These are commands that any player can execute.
sm_sf2 or sm_slender - Displays the Slender Fortress main menu.
sm_slnext - Displays a list of players/groups with their queue points in the order that they're supposed to be chosen next to play on the RED team. Grayed-out names means that that current player or group is currently chosen to play as RED.
sm_slgroup - Displays the group main menu for creating or administrating groups.
sm_slgroupname - If the player is currently the group leader of his group, then this will change the name of his group to .
sm_slghost - Displays the Ghost Mode menu.
sm_slhelp - Displays the Slender Fortress Help menu.
sm_slsettings - Displays the settings menu. Here, players will be able to mute the other team, opt in/out of Proxy selection, and toggle automatic PvP spawning.
sm_slcredits - Displays the credits menu, showing all those who helped contribute to the mod and possibly more.
sm_flashlight - Custom command that players can bind a key to that toggles their flashlight. This is for players who prefer not to use their secondary-attack button as a way to toggle their flashlight.
These are commands that only admins with the "slay" flag can execute. It is highly recommended that admins instead use the built-in SourceMod command sm_admin (or !admin in chat) to execute these commands safely and more efficiently.
sm_sf2_scare <name|#userid> <bossindex 0-31> - Forces a "scare" on the selected player as if he/she were actually given a "scare" from the specified boss index.
sm_sf2_setplaystate <name|#userid> <0/1> - Forces the specified player in/out of the RED team.
sm_sf2_force_proxy <name|#userid> <bossindex 0-31> - Forces the specified player to become a Proxy for the specified boss index.
sm_sf2_getbossindexes - Prints out a list of active boss indexes to the player's console.
sm_sf2_spawn_boss <bossindex 0-31> - Spawns an active boss at the player's aiming location.
sm_sf2_add_boss - Adds and spawns a boss into the game by boss name.
sm_sf2_add_boss_fake - Adds and spawns a fake boss into the game by boss name. This boss will function just like a normal boss and still drain players' Sanity, but it won't teleport from place to place and it will not make copies of itself. When it attacks, it will quickly fade away before it can finish.
sm_sf2_remove_boss <bossindex 0-31> - Removes an active boss from the game.
sm_sf2_boss_attack_waiters <bossindex 0-31> <0/1> - If set to 1, then the boss will attack BLU team. Applies only to chasing bosses at the moment (type 2 bosses).
sm_sf2_boss_no_teleport <bossindex 0-31> <0/1> - If set to 1, then the boss will not attempt to teleport to the RED team.
The following contents are console variables, which means they cannot be entered as commands in the console or the chat. They have to be either set in the server console, or by using the sm_cvar command.
sf2_enabled - Enables/disables the Slender Fortress gamemode. This will only take effect on map change. Default is 1.
sf2_slendermapsonly - If set to 1, then the Slender Fortress gamemode will only run on maps prefixed with "slender_" or "sf2_". This will only take effect on map change. Default is 1.
sf2_alltalk - If set to 1, then BLU team's messages will no longer be restricted to team chat, including voice.
sf2_timelimit_default - Determines the default time limit (in seconds) of each round. This value is only used if the map lacks an sf2_time_limit_# entity. Default is 300.
sf2_timelimit_escape_default - Determines the time limit (in seconds) players are given to escape. This is only used if the map lacks an sf2_escape_time_limit_# entity. Default is 90.
sf2_time_gain_page_grab - Determines how much time (in seconds) is gained when a page is obtained. This is only used if the map lacks an sf2_time_gain_from_page_# entity. Default is 12.
sf2_gracetime - Determines the length (in seconds) of the grace period at the start of each round. During the grace period, RED is allowed to change classes without getting eliminated and the boss(es) will not spawn. Default is 30.
sf2_maxplayers - Defines the maximum amount of players that can be chosen to play on RED team. This is dynamic and can be changed by the map. Default is 5.
sf2_maxplayers_override - If set to a value other than -1, this will override the maximum amount of players set by sf2_maxplayers. Use this if you feel changing the maximum amount of players per map manually, or set an amount temporarily. Default is -1.
sf2_difficulty - Determines the current difficulty of the round. Can only be a value ranging from 1 to 3. 1 = Normal, 2 = Hardcore, 3 = Insane. The difficulty is reset to 1 at the start of each round. Players on RED team can vote to change the difficulty. Default is 1.
sf2_warmupround - If set to 1, then a "warmup round" will initiate on the "Waiting For Players" round and the round after that. During the warmip round, all players will be set on BLU and given their full loadouts to kill each other with.
sf2_intro_enabled - If set to 1, then whenever a round starts a title sequence will be displayed to RED.
sf2_intro_default_hold_time - Determines the duration of the default intro sequence if the map does not have a custom intro sequence defined.
sf2_intro_default_fade_time - Determines how long the screen takes to fade in after the default intro sequence finishes if the map does not have a custom intro sequence defined.
sf2_block_suicide_during_round - If set to 1, then RED players will not be allowed to suicide when the round is not in a grace period.
sf2_boss_main - Defines the boss that is normally chosen per round, excluding special rounds and new boss rounds. Default is slenderman.
sf2_boss_profile_override - Overrides which boss will be chosen in the next round. This will only apply to the first boss chosen.
sf2_player_voice_distance - Determines the maximum distance (in world units) that RED players will be able to hear each other on voice chat. Set this to 0 if you want them to be able to hear each other at any distance. Default is 800.
sf2_player_voice_scale_blocked - If an object or a wall is between RED players, then the distance required to hear each other will be directly multiplied to this value. Default is 0.5.
sf2_player_viewbob_enabled - Enables/disables player viewbobbing. Default is 1.
sf2_player_viewbob_hurt_enabled - If sf2_player_viewbob_enabled is set to 1 and the player is injured, then his/her screen will start to tilt in several directions, with increasing magnitude the lower the health of the player. Default is 0.
sf2_player_viewbob_sprint_enabled - If sf2_player_viewbob_enabled is set to 1 and the player is sprinting, then the player's view will quickly jerk down with each footstep he makes. Default is 0.
sf2_player_fakelagcompensation - EXPERIMENTAL! Enable/disable fake lag compensation for Sniper Rifles against teammates. Default is 0.
sf2_player_shake_enabled - Enables/disables player view shake during boss encounters or Sanity drain. Default is 1.
sf2_player_shake_frequency_max - Determines the maximum frequency value of the shake. Don't change this if you don't know what you're doing. Should be a value between 1 and 255. Default is 255.
sf2_player_shake_amplitude_max - Determines the maximum amplitude value of the shake. Don't change this if you don't know what you're doing. Should be a value between 1 and 16. Default is 5.
sf2_player_blink_rate - Determines the base duration (in seconds) of each bar on a player's Blink meter. Default is 0.33.
sf2_player_blink_holdtime - Determines how long (in seconds) a player's view will be blacked out when he/she blinks. Default is 0.15.
sf2_player_ultravision_enabled - Enables/disables player Ultravision. Ultravision helps players see in the dark when their flashlight is not available. Default is 1.
sf2_player_ultravision_radius_red - Determines the radius of Ultravision for RED team.
sf2_player_ultravision_radius_blue - Determines the radius of Ultravision for BLU team.
sf2_player_ultravision_brightness - Determines the target brightness of Ultravision.
sf2_player_pvparena_leavetime - Defines how much time a player will have to get back into the Player vs. Player zone before his weapons are automatically removed.
sf2_player_pvparena_collisions - Determines if players should collide with each other in the PvP Arena.
sf2_anticamping_enabled - Enables/disables the built-in anti-camping system for RED players. If set to 1, then the system will kill players that do not move from their spot in a certain amount of time. Default is 1.
sf2_anticamping_maxstrikes - Determines how many "strikes" a player can get before he/she is automatically slayed. A strike is given in a 5-second interval check, so for example, if the player has a maximum of 4 strikes, then he/she can only stay in one particular spot for 20 seconds. Strikes will be automatically deducted every 5 seconds if the player starts moving from place to place as a result of forgiveness. Default is 4.
sf2_anticamping_mindistance - The minimum distance a player has to be from his last checked position in order for a strike to be given to that player. Default is 128.
sf2_anticamping_strikeswarn - If non-zero, then the player will receive warnings if his amount of strikes left reaches this value. Default is 2.
sf2_anticamping_no_strike_sanity - If a player's Sanity level has been reduced by this much, then the anti-camping system will not give the player a strike on normal conditions. This should be a value between 0 and 1. Default is 0.1.
sf2_anticamping_no_strike_boss_distance - If a player is this close to a boss, then the anti-camping system will not give the player a strike on normal conditions. Default is 512.
sf2_specialround_mode - Determines the behavior of Special Round duration. If set to 0, then the next round after the Special Round will be a normal round. If set to 1, then the Special Round will carry on to the next round until all players have gotten a chance to play the Special Round. Players that reset their queue points, join Spectator, or have recently joined will not be counted when determining the Special Round duration. Default is 0.
sf2_specialround_forceenable - Overrides whether a Special Round will occur on the next round or not. If set to 1, then the next round will be a Special Round. Set to -1 to disable the override and let the game choose. Default is -1.
sf2_specialround_forcetype - Determines the type of Special Round that will be chosen when a Special Round occurs. This is a number, not a name. The number of the Special Round you want can be found in the "addons/sourcemod/configs/sf2/specialrounds.cfg" file. Default is -1.
sf2_specialround_interval - Determines how many normal rounds must be completed before a Special Round can occur. New boss rounds will not affect this interval. Default is 5.
sf2_newbossround_forceenable - Overrides whether a new boss will be chosen on the next round or not. If set to 1, then the next round will feature a randomly-chosen boss. Set to -1 to disable the override and let the game choose. Default is -1.
sf2_newbossround_mode - Determines the behavior of a new boss round duration. It functions similarly to the sf2_specialround_mode console variable, except it deals with new boss selection for the next round. Default is 0.
sf2_newbossround_interval - Determines how many normal rounds must be completed before a new boss is chosen for the next round. Setting this to 0 will cause the game to always choose a random boss on every round. Special Rounds will not affect this interval. Default is 3.
sf2_20dollarmode - Enables/disables $20 mode. If set to 1, then every time a player's Sanity starts dropping, an additional (usually silly) sound loop is played along with it.