Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

List of console commands and variables

Benoist3012 edited this page May 20, 2017 · 5 revisions

All the contents listed below are all the console commands and variables that Slender Fortress creates and uses.

Commands

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.

Name Arguments Access Description
sm_sf2_bosspack_vote n (Dev command) start boss pack vote.
sm_sf2_scare <name|#userid> <bossindex> f Force a boss to scare a player.
sm_sf2_spawn_boss <bossindex> f Teleport a boss in game at player's aim.
sm_sf2_add_boss <name> f Force add a boss into play.
sm_sf2_add_boss_fake <name> f Force add a fake boss into play.
sm_sf2_remove_boss <bossindex> f Force remove said boss.
sm_sf2_getbossindexes f Display index of all bosses in game.
sm_sf2_setplaystate <name|#userid> <0|1> f Force a player out/in game.
sm_sf2_boss_attack_waiters <bossindex> <0|1> f Allow/Disallow a boss from attacking the waiting team.
sm_sf2_boss_no_teleport <bossindex> <0|1> f Allow/Disallow a boss from teleporting to playing team.
sm_sf2_force_proxy <name|#userid> <bossindex> f Force a player from waiting team to be a proxy for a boss.
sm_sf2_force_escape <name|#userid> n Force a player to escape.
sm_sf2nopoints n Disallow client from being selected by the mod to play.
sm_slender Display an information menu on SF2 features.
sm_sltutorial (Disabled)Toggle sf2 tutorial for the player.
sm_slupdate Display SF2 update panel.
sm_slpack Display current loaded boss pack(if any).
sm_slnext Display current player queue.
sm_slgroup Display SF2 group control panel.
sm_slgroupname <group name> Display SF2 group control panel.
sm_slghost Toggle ghost mode (allow the player to watch the playing team).
sm_slhelp Display SF2 help panel.
sm_slsettings Display player's SF2 settings panel.
sm_slcredits Display SF2 credits panel.
sm_flashlight Toggle SF2 flashlight (bonded to right mouse click by default).
+sprint Toggle player's sprint (bonded to wheel mouse click by default).

Console variables (Cvars)

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.

Name Default value Description
sf2_enabled 1 Enable/Disable the Slender Fortress gamemode. This will take effect on map change.
sf2_slendermapsonly 1 Only enable the Slender Fortress gamemode on map names prefixed with "slender_" or "sf2_".
sf2_gracetime 30.0 Duration of grace period.
sf2_intro_enabled 1 Enable/Disable maps intro.
sf2_block_suicide_during_round 0 Allow/Disallow players from using suicide commands during round.
sf2_alltalk 0 Allow/Disallow playing team to see waiting team's chat.
sf2_player_voice_distance 800.0 The maximum distance RED can communicate in voice chat. Set to 0 if you want them to be heard at all times.
sf2_player_voice_scale_blocked 0.5 The distance required to hear RED in voice chat will be multiplied by this amount if something is blocking them.
sf2_player_viewbob_enabled 1 Enable/Disable player viewbobbing.
sf2_player_viewbob_hurt_enabled 0 Enable/Disable player view tilting when hurt.
sf2_player_viewbob_sprint_enabled 0 Enable/Disable player step viewbobbing when sprinting.
sf2_player_fakelagcompensation 0 (EXPERIMENTAL) Enable/Disable fake lag compensation for some hitscan weapons such as the Sniper Rifle.
sf2_player_shake_enabled 1 Enable/Disable player view shake during boss encounters.
sf2_player_shake_enabled 255 Maximum frequency value of the shake. Should be a value between 1-255.
sf2_player_shake_amplitude_max 5 Maximum amplitude value of the shake. Should be a value between 1-16.
sf2_player_blink_rate 0.33 How long (in seconds) each bar on the player's Blink meter lasts.
sf2_player_blink_holdtime 0.15 How long (in seconds) a player will stay in Blink mode when they blinks.
sf2_player_ultravision_enabled 1 Enable/Disable player Ultravision. This helps players see in the dark when their Flashlight is off or unavailable.
sf2_player_ultravision_radius_red 512.0 Radius of ultravision for playing team.
sf2_player_ultravision_radius_blue 800.0 Radius of ultravision for waiting team.
sf2_player_nightvision_radius 400.0 Radius of nightvision for playing team.
sf2_player_ultravision_brightness -4 Brightness of ultravision, should be between -10 and -4.
sf2_player_flashlight_isnightvision 0 Enable/Disable flashlight replacement with nightvision.
sf2_ghostmode_no_tolerance 0 If set on 1, it will instant kick out the client of the Ghost mode if the client has timed out.
sf2_ghostmode_check_connection 1 Checks a player's connection while in Ghost Mode. If the check fails, the client is booted out of Ghost Mode and the action and client's SteamID is logged in the main SF2 log.
sf2_ghostmode_connection_tolerance 5.0 If sf2_ghostmode_check_connection is set to 1 and the client has timed out for at least this amount of time, the client will be booted out of Ghost Mode.
sf2_20dollarmode 0 Enable/Disable $20 mode.
sf2_maxplayers 5 The maximum amount of players that can be in one round. The map will override this value if it has a custom players amount value.
sf2_maxplayers_override -1 Overrides the maximum amount of players that can be in one round.(This will overrode map's value)
sf2_anticamping_enabled 1 Enable/Disable anti-camping system for playing team.
sf2_anticamping_maxstrikes 4 How many 5-second intervals players are allowed to stay in one spot before he/she is forced to suicide.
sf2_anticamping_strikeswarn 2 The amount of strikes left where the player will be warned of camping.
sf2_exitcamping_allowedtime 25.0 The amount of time a player can stay near the exit before being flagged as camper.
sf2_anticamping_mindistance 128.0 Every 5 seconds the player has to be at least this far away from his last position 5 seconds ago or else he/she'll get a strike.
sf2_anticamping_no_strike_sanity 0.1 The camping system will NOT give any strikes under any circumstances if the players's Sanity is missing at least this much of his maximum Sanity (max is 1.0).
sf2_anticamping_no_strike_boss_distance 512.0 The camping system will NOT give any strikes under any circumstances if the player is this close to a boss (ignoring LOS).
sf2_boss_main slenderman The name of the main boss (its profile name, not its display name).
sf2_boss_profile_override Overrides which boss will be chosen next. Only applies to the first boss being chosen.
sf2_difficulty 1 Difficulty of the game. 1 = Normal, 2 = Hard, 3 = Insane.
sf2_specialround_mode 0 0 = Special Round resets on next round, 1 = Special Round keeps going until all players have played (not counting spectators, recently joined players, and those who reset their queue points during the round)
sf2_specialround_forceenable -1 Sets whether a Special Round will occur on the next round or not.
sf2_specialround_forcetype -1 Sets the type of Special Round that will be chosen on the next Special Round. Set to -1 to let the game choose.
sf2_specialround_interval 5 If this many rounds are completed, the next round will be a Special Round.
sf2_newbossround_mode 0 0 = boss selection will return to normal after the boss round, 1 = the new boss will continue being the boss until all players in the server have played against it (not counting spectators, recently joined players, and those who reset their queue points during the round).
sf2_newbossround_interval 3 If this many rounds are completed, the next round's boss will be randomly chosen, but will not be the main boss.
sf2_newbossround_forceenable -1 Sets whether a new boss will be chosen on the next round or not. Set to -1 to let the game choose.
sf2_timelimit_default 300 The time limit of the round. Maps can change the time limit.
sf2_timelimit_escape_default 90 The time limit to escape. Maps can change the time limit.
sf2_time_gain_page_grab 12 The time gained from grabbing a page. Maps can change the time gain amount.
sf2_warmupround 1 Enables/disables Warmup Rounds after the "Waiting for Players" phase.
sf2_warmupround_num 1 Sets the amount of Warmup Rounds that occur after the "Waiting for Players" phase.
sf2_player_proxy_waittime 35 How long (in seconds) after a player was chosen to be a Proxy must the system wait before choosing him again.
sf2_player_proxy_ask 0 Set to 1 if the player can choose before becoming a Proxy, set to 0 to force.
sf2_halfzatoichi_healthgain 20 How much health should be gained from killing a player with the Half-Zatoichi? Set to -1 for default behavior.
sf2_player_infinite_sprint_override -1 1 = infinite sprint, 0 = never have infinite sprint, -1 = let the game choose.
sf2_player_infinite_flashlight_override -1 1 = infinite flashlight, 0 = never have infinite flashlight, -1 = let the game choose.
sf2_player_infinite_blink_override 0 1 = infinite blink, 0 = never have infinite blink, -1 = let the game choose.
Clone this wiki locally