Left 4 Dead 2

Left 4 Dead 2

Speedrunner Tools
 This topic has been pinned, so it's probably important
シェイディ♑  [developer] Dec 5, 2017 @ 9:08am
Commands
!restart
Restart the game. Command for console: "scripted_user_func restart".

!restart2
Restart the game. Restarts faster for RTA mode on the first maps, but won't reset in-game stats (use !restart instead to get campaign exact IGT from outro stats). Command for console: "scripted_user_func restart2".

!restart3
Restart the game and automatically restore Survivor bots in case kicks were used. Command for console: "scripted_user_func restart3".

!mode
Switching between modes. Type a keyword (like "!mode sp") to jump on specific.
  • Nerd – for creation of segmented and tool-assisted speedruns.
  • RTA – used for speedruns in real time for competitive.
  • SP – solo player mode without bots, for fun. Based on RTA mode.

!bhop
Activate or deactivate auto-bunnyhop on the server (for personal switching ON/OFF, use "scripted_user_func bhop" console command).

!bhop2
Activate or deactivate smoothed auto-bunnyhop on the server. Functional only for host player (lobby's leader), since used primitive client-side inputs.

!hud
Turn ON/OFF stopwatch HUD.
By the way, if you encounter wrong HUD displaying or need another help like removing it from the demo, please visit Troubleshoot HUD article.

Commands to manage HUD value:
  • !dbg start – starts/resets a HUD timer.
  • !dbg stop – stops a HUD timer.
  • !dbg set [value] – sets the value of HUD timer in seconds.
  • !dbg hud [value] – sets the static value of HUD timer in seconds.

!fdmg
Toggle the fall damage info in chat.

!picker
Show the sample string of entity spawning at player's picker. After entity picked, it creates a function in the chat for your script file (each entity has its own function). List of ST functions on the page Speedrunner Tools API.

!trigger
Show the sample string of trigger spawning in player's position.

!timer args
Set the countdown in seconds.

!rst
Restart the round without start a speedrun (all intros will be started normally).

!zdump
Dump zombies position and orientation to the text file (left4dead2/ems/st_config/zdump.txt).

!xclip args
Simulates SurvivorBot teleport. Required Speedrunner Tools[forums.alliedmods.net] plugin for this command.
  • set – creates the teleport point (use "!xclip" without args to teleport).
  • fast – makes shift back and uses auto-idle immediately.
  • exact – allows exact shift back, sensitive to x-axis (pitch).
  • double – makes max. shift back twice in a row, simulating double SurvivorBot teleport.

!dbg args
Command for debugging.
  • st – prints g_ST table and main variables in console.
  • lib – prints g_STLib table in console.
  • rta – prints g_RTA table in console.
  • start – starts/resets a HUD timer.
  • stop – stops a HUD timer.
  • set – sets the value of HUD timer in seconds.
  • hud – sets the static value of HUD timer in seconds.
  • event – sets custom event value for g_STLib.Funcs.Event() to load custom speedrun situations, for preliminary tests.
  • tp – shows the sample string of your position and orientation.
  • tp2 – shows the sample string for all survivors at once.
  • tp3 – similar to !tp, but adds the bind on X button for convenient teleport use.
  • events – checks the current events, that have been hooked.
  • do – prints in console current Director options.
  • trigger – displays the bounding box of a trigger entities.
  • clip – displays the bounding box of "env_player_blocker" entities.
  • legit – activates full legit mode, that disables ConVar changes and other ST hooks. Note that, don't need to enable this option for RTA mode, since it already includes all default game settings.
  • reset – used for debugging. Resets all ST session variables.
  • unpatch – unpatch the game how would it looked on the old versions, for trainings.
  • af – to practice Grenade Launcher boosts.
  • af2 – to practice Throwable boosts.
  • af3 – to practice Throwable boosts for RTA category (don't confuse this with AutoFire3 long boosts). Use keywords bile, molo, pipe to select certain throwable item.
  • nav – helper to mark NAV areas. Sets the bind to X button and when pressed, shows function samples in console.

!find args
Type classname or targetname of entity to find it on map. Use "!findex" command for an exact search by a certain name. To clear glowing objects, type "!find" without arguments. List of entities here.

!rd
Activate RocketDude mutation (for TLS only).
Last edited by シェイディ♑; Apr 3, 2024 @ 9:00pm
< >
Showing 1-15 of 20 comments
Gruffed Aug 19, 2019 @ 3:03pm 
yes
TheKiller567 Aug 16, 2020 @ 5:51pm 
yeah
slipin Nov 9, 2020 @ 7:16am 
boi
JAS Jan 10, 2021 @ 2:25am 
how to use this?
シェイディ♑  [developer] Jan 11, 2021 @ 6:42pm 
Originally posted by Jericho Gaming:
how to use this?
Commands to chat
vsem poka May 19, 2021 @ 7:07am 
I don't get how to restart a map not a whole campaign, pls help
vsem poka May 19, 2021 @ 7:51am 
Also when I die, it doesn't restart, I am just stuck on my dead body, any way to fix?
シェイディ♑  [developer] May 19, 2021 @ 9:14pm 
Originally posted by vsem poka:
Also when I die, it doesn't restart, I am just stuck on my dead body, any way to fix?
Type !restart in chat

Originally posted by vsem poka:
I don't get how to restart a map not a whole campaign, pls help
You should to start any map each time via console "map c1m2_streets". Loaded map after level transition will lead to restart whole campaign if !restart is used.
λlex Feb 28, 2022 @ 9:59pm 
How do I disable timer
シェイディ♑  [developer] Mar 1, 2022 @ 10:24pm 
Originally posted by λlex:
How do I disable timer
!hud or !dbg stop
MrNoob Mar 25, 2022 @ 8:29am 
how can i play it with my friends?
シェイディ♑  [developer] Mar 25, 2022 @ 2:19pm 
Originally posted by Impy:
how can i play it with my friends?
Host lobby with Listen Server (Local Server) and invite your friend in there
Blonkers Jun 16, 2022 @ 1:14pm 
How to get out of RTA mode?
V3T3M3NTS Jun 21, 2022 @ 10:24am 
how to make idle in solo game?
シェイディ♑  [developer] Jun 21, 2022 @ 8:06pm 
Originally posted by Blonkers:
How to get out of RTA mode?
Type !mode in the chat
< >
Showing 1-15 of 20 comments
Per page: 1530 50