| Left 4 Dead 2 Console Command |
Command Description |
| ai_disable |
Disables AI characters in the game. |
| bind [key] [command] |
Binds a command to a specific key. |
| bot |
Adds a bot player to the game. |
| changelevel [map name] |
Similar to “maps,” changes the map. |
| cl_viewmodelfovinfected [value] |
Adjusts the view model’s field of view for infected. |
| cl_viewmodelfovsurvivor [value] |
Adjusts the view model’s field of view for survivors. |
| director_force_panic_event |
Forces a panic event in the game. |
| director_no_human_zombies 1 |
Prevents the AI Director from spawning human-controlled zombies. |
| director_no_spawn_check |
Disables spawn checks for the AI Director. |
| director_panic_forever 1 |
Causes the AI Director to remain in a panicked state. |
| director_panic_time |
Sets duration of panic event. |
| director_panic_time [number] |
Sets the duration of a panic event. |
| ent_fire [entity] [command] |
Fires an action on a specified entity. |
| give [item name] |
Spawns specific items like health packs or weapons. |
| give ammo |
Provides ammo for your weapons. |
| give health |
Grants health to your character. |
| give pistol |
Equips you with a pistol. |
| give_upgrade [upgrade] |
Grants a specific upgrade to your character. |
| god |
Makes your character invincible. |
| host_timescale [value] |
Adjusts game speed. Higher values make it faster, lower make it slower. |
| impulse 101 |
Gives you all weapons and full ammo. |
| kill |
Kills your character instantly. |
| maps [map name] |
Switches to a different map. |
| noclip |
Lets you fly through walls and obstacles. |
| remove_bot |
Removes a bot player from the game. |
| sb_takecontrol |
Takes control of the AI Director’s spawning. |
| sv_cheats 1 |
Enables cheat mode to use other commands. |
| sv_gamemode [mode] |
Changes the current game mode. |
| sv_gamemode coop |
Changes the game mode to cooperative play. |
| sv_grenade_trajectory |
Shows grenade trajectory when thrown. |
| sv_grenade_trajectory 1 |
Shows grenade trajectory when thrown. |
| sv_infinite_ammo 1 |
Gives you unlimited ammo. |
| sv_infinite_aux_power |
Provides infinite ammo for secondary weapons. |
| sv_infinite_aux_power 1 |
Gives you unlimited ammo for secondary weapons. |
| sv_maxretries [number] |
Sets the number of retries for map change or restart. |
| thirdperson |
Changes your view to third-person. |
| z_allow_pz_wander 1 |
Allows Pouncing Zombies to wander when idle. |
| z_allow_special_in_realism 1 |
Enables special infected in Realism mode. |
| z_charge_health |
Sets health for Charger infected. |
| z_charge_health [number] |
Sets the health of the Charger infected. |
| z_common_ignite |
Sets common infected on fire. |
| z_common_limit [number] |
Sets a limit on the number of common infected. |
| z_common_limit_per_player |
Sets common infected limit per player. |
| z_common_limit_per_player [number] |
Sets common infected limit per player. |
| z_common_min_limit |
Sets minimum number of common infected. |
| z_common_min_limit [number] |
Sets the minimum number of common infected. |
| z_common_spawn_interval |
Sets interval between common infected spawns. |
| z_difficulty [difficulty] |
Sets the difficulty level of the game. |
| z_fly_speed [number] |
Adjusts the speed of flying infected. |
| z_forcezombieclimb |
Enables infected to climb ladders. |
| z_forcezombieclimb 1 |
Makes all infected able to climb ladders. |
| z_forcezombiemodel [model] |
Forces a specific zombie model for common infected. |
| z_gamemode [mode] |
Changes the game mode. |
| z_ghost_alpha_fade |
Adjusts alpha fade speed of Ghost Infected. |
| z_ghost_attack_damage |
Sets damage dealt by Ghost Infected attacks. |
| z_ghost_attack_delay |
Sets delay before Ghost Infected attacks. |
| z_ghost_attack_duration |
Sets duration of Ghost Infected attacks. |
| z_ghost_attack_interval |
Sets interval between Ghost Infected attacks. |
| z_ghost_attack_push |
Sets pushback force of Ghost Infected attacks. |
| z_ghost_attack_range |
Sets attack range of Ghost Infected. |
| z_ghost_attack_speed |
Sets speed of Ghost Infected attacks. |
| z_ghost_attack_stun_bullets |
Sets bullets needed to break Ghost Infected stun. |
| z_ghost_attack_stun_duration |
Sets stun duration of Ghost Infected attacks. |
| z_ghost_attack_stun_force |
Sets stun force of Ghost Infected attacks. |
| z_ghost_attack_stun_recovery |
Sets recovery time for survivors after Ghost Infected stun. |
| z_ghost_dissolve_delay |
Sets delay before Ghost Infected dissolves. |
| z_ghost_dissolve_end_size |
Sets ending size of Ghost Infected dissolve effect. |
| z_ghost_dissolve_lifetime |
Sets lifetime of Ghost Infected dissolve effect. |
| z_ghost_dissolve_speed |
Adjusts dissolve speed of Ghost Infected. |
| z_ghost_dissolve_start_size |
Sets starting size of Ghost Infected dissolve effect. |
| z_ghost_fade_speed |
Adjusts Ghost Infected fade speed. |
| z_ghost_fade_speed [number] |
Adjusts the speed at which Ghost Infected fade. |
| z_ghost_spawn_interval |
Sets interval between Ghost Infected spawns. |
| z_ghosted |
Makes the player character invisible. |
| z_glow [0/1] |
Enables or disables infected glow. |
| z_grab_distance [number] |
Sets the distance for Smokers to grab survivors. |
| z_health [number] |
Sets the health of a specific infected type. |
| z_health_boomer [number] |
Sets the health of Boomer infected. |
| z_health_jockey |
Sets health for Jockey infected. |
| z_health_jockey [number] |
Sets the health of Jockey infected. |
| z_health_tank |
Sets health for Tank infected. |
| z_jockey_fall_damage |
Sets fall damage dealt by Jockey when attached. |
| z_jockey_fall_damage [number] |
Sets the fall damage dealt by Jockey when attached. |
| z_jockey_fall_delay |
Sets delay before Jockey’s fall attack. |
| z_jockey_fall_delay [number] |
Sets the delay before Jockey’s fall attack. |
| z_jockey_fall_force |
Sets force of Jockey’s fall attack. |
| z_jockey_fall_force [number] |
Sets the force of Jockey’s fall attack. |
| z_jockey_fall_interval |
Sets interval between Jockey’s fall attacks. |
| z_jockey_fall_interval [number] |
Sets the interval between Jockey’s fall attacks. |
| z_jockey_fall_range |
Sets Jockey’s fall attack range. |
| z_jockey_fall_range [number] |
Sets the range of Jockey’s fall attack. |
| z_jockey_jump_damage |
Sets damage of Jockey’s jump attack. |
| z_jockey_jump_damage [number] |
Sets the damage of Jockey’s jump attack. |
| z_jockey_jump_delay |
Sets delay before Jockey’s jump attack. |
| z_jockey_jump_delay [number] |
Sets the delay before Jockey’s jump attack. |
| z_jockey_jump_range |
Sets Jockey jump range. |
| z_jockey_jump_range [number] |
Sets the range of Jockey’s jump attack. |
| z_jockey_jump_speed |
Sets speed of Jockey’s jump attack. |
| z_jockey_jump_speed [number] |
Sets the speed of Jockey’s jump attack. |
| z_jockey_steering_inherit |
Sets inherit multiplier for Jockey’s steering. |
| z_jockey_steering_inherit [number] |
Sets the inherit multiplier for Jockey’s steering. |
| z_jockey_steering_rate |
Sets steering rate of Jockey while attached. |
| z_jockey_steering_rate [number] |
Sets the steering rate of Jockey while attached. |
| z_jockey_steering_speed |
Sets steering speed of Jockey while attached. |
| z_jockey_steering_speed [number] |
Sets the steering speed of Jockey while attached. |
| z_mob_spawn_interval |
Sets interval between all infected spawns. |
| z_mobility [number] |
Sets the mobility of zombies. |
| z_panic_event_chance |
Sets chance of panic event occurring. |
| z_panic_event_duration |
Sets duration of panic event. |
| z_panic_event_duration [number] |
Sets the duration of a panic event. |
| z_panic_event_end_chance |
Sets chance for panic event to end. |
| z_panic_event_end_effect |
Sets end effect for panic event. |
| z_panic_event_end_health |
Sets health for infected spawned at end of panic event. |
| z_panic_event_end_mob |
Sets mob amount for infected spawned at end of panic event. |
| z_panic_event_end_sound |
Sets end sound |
| z_panic_event_end_special |
Sets special infected amount for panic event end. |
| z_panic_event_fire_delay |
Sets delay for panic event fires. |
| z_panic_event_fire_delay [number] |
Sets the delay for panic event fires. |
| z_panic_event_force_delay |
Sets forced delay before panic event. |
| z_panic_event_interval |
Sets interval between panic events. |
| z_panic_event_length |
Sets length of panic event. |
| z_panic_event_max_spawn |
Sets maximum number of infected to spawn during panic event. |
| z_panic_event_max_special |
Sets maximum number of special infected to spawn during panic event. |
| z_panic_event_maximum_delay |
Sets maximum delay before panic event. |
| z_panic_event_min_special |
Sets minimum number of special infected to spawn during panic event. |
| z_panic_event_minimum_delay |
Sets minimum delay before panic event. |
| z_panic_event_start_chance |
Sets chance for panic event to start. |
| z_panic_event_start_effect |
Sets start effect for panic event. |
| z_panic_event_start_health |
Sets health for infected spawned at start of panic event. |
| z_panic_event_start_mob |
Sets mob amount for infected spawned at start of panic event. |
| z_panic_event_start_sound |
Sets start sound for panic event. |
| z_panic_event_start_special |
Sets special infected amount for panic event start. |
| z_pounce_damage |
Sets Jockey pounce damage. |
| z_pounce_damage [number] |
Changes the damage caused by Hunter pounces. |
| z_smoker_health [number] |
Sets the health of Smoker infected. |
| z_smoker_tongue_range |
Sets range of Smoker’s tongue attack. |
| z_smoker_tongue_range [number] |
Sets the range of Smoker’s tongue attack. |
| z_spawn [infected name] |
Summons specific types of infected enemies. |
| z_spawn_boomer |
Spawns a Boomer infected. |
| z_spawn_boomer_delay |
Sets delay between Boomer spawns. |
| z_spawn_boomer_delay [number] |
Sets the delay between Boomer spawns. |
| z_spawn_charger |
Spawns a Charger infected. |
| z_spawn_charger_delay |
Sets delay between Charger spawns. |
| z_spawn_jockey |
Spawns a Jockey infected. |
| z_spawn_jockey_delay |
Sets delay between Jockey spawns. |
| z_spawn_queue_length |
Sets maximum number of infected to spawn in a queue. |
| z_spawn_spitter |
Spawns a Spitter infected. |
| z_spawn_spitter_delay |
Sets delay between Spitter spawns. |
| z_spawn_tank |
Spawns a Tank infected. |
| z_spawn_tank_delay |
Sets delay between Tank spawns. |
| z_spawn_tank_delay [number] |
Sets the delay between Tank spawns. |
| z_spawn_wander_interval |
Sets interval between wandering infected spawns. |
| z_spawn_witch |
Spawns a Witch infected. |
| z_spawn_witch_delay |
Sets delay between Witch spawns. |
| z_spawn_witch_delay [number] |
Sets the delay between Witch spawns. |
| z_special_spawn_interval |
Sets interval between special infected spawns. |
| z_spitter_acid_delay |
Sets delay before Spitter’s acid pool appears. |
| z_spitter_acid_delay [number] |
Sets the delay before Spitter’s acid pool appears. |
| z_spitter_acid_lifetime |
Sets Spitter acid lifetime. |
| z_spitter_acid_lifetime [number] |
Sets the lifetime of Spitter’s acid pool. |
| z_spitter_acid_radius |
Sets radius of Spitter’s acid pool. |
| z_spitter_acid_radius [number] |
Sets the radius of Spitter’s acid pool. |
| z_spitter_health |
Sets health of Spitter infected. |
| z_spitter_health [number] |
Sets the health of Spitter infected. |
| z_stumble_duration [number] |
Sets the duration of infected stumbles. |
| z_tank_grab_interval [number] |
Sets the interval for Tank grabs. |
| z_tank_grab_radius [number] |
Sets the radius for Tank grabs. |
| z_tank_grab_speed [number] |
Sets the speed for Tank grabs. |
| z_tank_health [number] |
Sets the health of the Tank infected. |
| z_tank_punch_damage |
Sets Tank’s melee punch damage. |
| z_tank_punch_damage [number] |
Sets the damage of Tank’s melee punch. |
| z_tank_punch_delay |
Sets delay before Tank’s melee punch. |
| z_tank_punch_delay [number] |
Sets the delay before Tank’s melee punch. |
| z_tank_punch_interval |
Sets interval between Tank’s melee punches. |
| z_tank_punch_interval [number] |
Sets the interval between Tank’s melee punches. |
| z_tank_punch_pushback |
Sets pushback force of Tank’s melee punch. |
| z_tank_punch_pushback [number] |
Sets the pushback force of Tank’s melee punch. |
| z_tank_punch_range |
Sets Tank’s melee punch range. |
| z_tank_punch_range [number] |
Sets the range of Tank’s melee punch. |
| z_tank_punch_speed |
Sets Tank’s melee punch speed. |
| z_tank_punch_speed [number] |
Sets the speed of Tank’s melee punch. |
| z_tank_punch_stun_bullets |
Sets bullets needed to break Tank’s punch stun. |
| z_tank_punch_stun_bullets [number] |
Sets the number of bullets needed to break Tank’s punch stun. |
| z_tank_punch_stun_duration |
Sets duration of Tank’s melee punch stun. |
| z_tank_punch_stun_duration [number] |
Sets the duration of Tank’s melee punch stun. |
| z_tank_punch_stun_force |
Sets stun force of Tank’s melee punch. |
| z_tank_punch_stun_force [number] |
Sets the stun force of Tank’s melee punch. |
| z_tank_punch_stun_recovery |
Sets recovery time for survivors after Tank’s punch stun. |
| z_tank_punch_stun_recovery [number] |
Sets the recovery time for survivors after Tank’s punch stun. |
| z_tank_spawn_interval |
Sets interval between Tank infected spawns. |
| z_tank_speed [number] |
Sets the speed of the Tank infected. |
| z_tank_throw_damage |
Sets Tank’s projectile throw damage. |
| z_tank_throw_damage [number] |
Sets the damage of Tank’s projectile throw. |
| z_tank_throw_delay |
Sets delay before Tank’s projectile throw. |
| z_tank_throw_delay [number] |
Sets the delay before Tank’s projectile throw. |
| z_tank_throw_interval |
Sets interval between Tank throws. |
| z_tank_throw_interval [number] |
Sets the interval between Tank throws. |
| z_tank_throw_range |
Sets Tank’s projectile throw range. |
| z_tank_throw_range [number] |
Sets the range of Tank’s projectile throw. |
| z_tank_throw_speed |
Sets speed of Tank’s throw attack. |
| z_tank_throw_speed [number] |
Sets the speed of Tank’s projectile throw. |
| z_witch_allow_change_dir 1 |
Allows Witches to change directions when idle. |
| z_witch_calm_distance [number] |
Sets the distance that calms Witches when idle. |
| z_witch_damage [number] |
Sets the damage dealt by Witches. |
| z_witch_health [number] |
Sets the health of Witch infected. |
| z_witch_reaction_time |
Sets reaction time of Witches. |
| z_witch_reaction_time [number] |
Sets the reaction time of Witches. |
| z_witch_spawn_interval |
Sets interval between Witch infected spawns. |