-
-
Notifications
You must be signed in to change notification settings - Fork 23
Console commands and variables
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.
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 |
sm_sf2_boss_attack_waiters | <0 | 1> | f |
sm_sf2_boss_no_teleport | <0 | 1> | f |
sm_sf2_force_proxy | <name|#userid> | 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_sf2_set_difficulty | <difficultyid> | f | Forces a difficulty to be changed. |
sm_sf2_force_special_round | <specialroundid> | f | Forces a special round to be set for the next special round. |
sm_slgroupname | <group name> | f | Display SF2 group control panel. |
sm_sf2nopoints | n | Disallow client from being selected by the mod to play. | |
sm_sf2_toggle_boss_teleports | <0/1> | f | Sets the teleport state to all active bosses if they should teleport or not. |
sm_sf2_toggle_attack_waiters | <0/1> | f | Sets the attack waiter state to all active bosses. |
sm_sf2_kill_client | <name|#userid> <bossindex> | f | Forcefully kills a player and makes the killer a determined boss index. |
sm_sf2_end_grace_period | f | Ends the grace period if active. | |
sm_sf2_reloadprofiles | n | Reloads all config files. | |
sm_sf2_eventmode | h | Toggles on or off the round win conditions. | |
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_slnextpack | Displays the next boss pack (If any). | ||
sm_slbosslist | Shows a menu of all currently loaded bosses. | ||
sm_slnext | Display current player queue. | ||
sm_slgroup | 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). | ||
sm_slafk | Toggles the AFK state allowing players to not get picked by red without needing to wait to be considered "afk". | ||
sm_slhud | Toggles a settings menu where it'll show you the HUD settings. | ||
+blink | Toggles the player's blink (bonded to right click by default). | ||
+sprint | Toggle player's sprint (bonded to wheel mouse click by default). |
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_maxplayers | 6 | 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, 4 = Nightmare. |
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_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. |
sf2_isboxingmap | 0 | Determines if the map should use the Boxing logic, never turn this on if the map is not made for Boxing. |
sf2_bosseschaseendlessly | 0 | This determines if bosses should chase endlessly, careful with this though. |
sf2_israidmap | 0 | Determines if the map should use the RAID logic, unlike Boxing, this one is mostly fine to use. |
sf2_issurvivalmap | 0 | Determines if the map is a survival map. |
sf2_isrenevantmap | 0 | Determines if the map should use the Renevant logic, should only be used for Survival like maps. |
sf2_survival_time_limit | 30 | Determines how long it takes before the survival time switches to the escape time. |
sf2_ignore_round_win_conditions | 0 | If set to 1, the round will not end when RED is eliminated. |
sf2_ignore_red_player_death_team_switch | 0 | If set to 1, RED players will not switch back to the BLU team. |
sf2_enable_wall_hax | 0 | Enables/disables the Wall Hax special round without needing to turn on Wall Hax. This will not force the difficulty to Insane and will show player + boss outlines. |
sf2_player_afk_time | 60.0 | Amount of time before a player is considered AFK, set to 0 to disable. |
sf2_renevant_boss_default | Empty string | Determine what boss should spawn during the Single Boss wave, if nothing is inputted, Single Boss will not trigger. |
sf2_renevant_bossspawn_message | Empty string | This is what will be used as the spawn message for the Single Boss wave. |
sf2_slaughterrun_divide_time | 125.0 | Determines how much the average time should be divided by in Slaughter Run, the lower the number, the longer the bosses spawn. |
sf2_alternateconfigs | 0 | Set to 1 if the server should pick up the configs from data/. |
sf2_player_keep_weapons | 0 | Set to 1 if players can keep their non-melee weapons outside of PvP arenas. |
sf2_dont_touch_this | 0 | Seriously, do not touch this. |
sf2_enable_spectator | 0 | Determines if all spectator restrictions should be disabled. |
sf2_kill_feed_players | 0 | Uses players for kill feed when SourceTV is unavailable. |
sf2_default_legacy_hud | 0 | Set to 1 if the server should enable the legacy hud by default in their settings. |
sf2_default_boss_visibility | 0 | Sets the default visibility state for bosses before the CBaseNPC update to allow for easier/harder peeking, this does not affect bosses seeing through transparent surfaces like glass however. Keep in mind creators can override this value for specific bosses only. |