This reference collects the most useful Killing Floor 2 console commands, based on the official wiki's page of the same name, with full lists of weapon class names and Zed spawn codes. Open the console with the tilde key in game (or in Play in Editor); F3 opens a lightweight console. Commands are not case-sensitive. A simpler cheats overview is in console commands list and a related one-command trick is the boss predictor.
Open <Map Name>: loads a map, for example open kf-burningparis. Game modes and mutators are appended: kf-burningparis?Game=KFGameContent.KFGameinfo_Survival. Short mode names work: Survival, Weekly, Versus, Endless, Objective, plus difficulty (0 Normal, 1 Hard, 2 Suicidal, 3 Hell on Earth) and game length (0 short, 1 normal, 2 long): Open KF-Farmhouse?Game=Endless?Difficulty=2?Gamelength=1.
Open <IP>: connect to an IP; add a password with open 127.0.0.1?password=123 or join as spectator with open 127.0.0.1??spectatoronly=1.
Disconnect leaves the session (useful if stuck); Reconnect rejoins; Suicide kills your player; RestartLevel restarts the level.
ToggleScreenshotMode toggles weapons, hands and HUD; ToggleHUD toggles the HUD.
All require enablecheats and will derank the play session. As a server owner, prefix each with admin after logging in. Unintended behavior may appear online, so test solo. After enabling cheats, press 3 on the numpad for third person (1 for first).
| Command | Effect |
|---|
EnableCheats | Unlocks most commands |
God / Demigod | God mode / take damage but do not die |
HurtMe <n>, HealMe <n>, ArmorMe <n> | Damage, heal or armor by n |
Ghost, Fly, Walk | No-clip; no-clip with collision; back to walking |
ImRich, DoshMe <n> | Money |
UberAmmo | Lots of ammo for all weapons and grenades |
Loaded | Most weapons |
GiveWeapon <class> | Give a specific weapon, e.g. GiveWeapon KFGameContent.KFWeap_GravityImploder |
UpgradeWeapon | Upgrade the equipped weapon one level |
OpenTraderMenu | Open the buy menu anywhere |
DramaEvent <chance> <length> | Chance to toggle Zed Time, e.g. dramaevent 1 10 |
Slomo <scale> | World speed; also activates Zed Time skills for testing when below 1, e.g. Slomo 0.99 |
ChangeSize <n>, SetSpeed <n>, SetJumpZ <n> | Size, walk speed (default 1), jump height |
SetGravity <n> | Default is -1150 (negative); can crash a game or server, stay reasonable and never positive |
PowerUpHellishRage | Apply the Hellish powerup effects |
Use these with GiveWeapon. Dual versions are listed together where they exist.
| Weapon | Class name |
|---|
| 9mm Pistol | KFGameContent.KFWeap_Pistol_9mmKFGameContent.KFWeap_Pistol_Dual9mm |
| Weapon | Class name |
|---|
| Zweihander | KFGameContent.KFWeap_Edged_Zweihander |
| Road Redeemer | KFGameContent.KFWeap_Blunt_ChainBat |
| Ion Thruster | KFGameContent.KFWeap_Edged_IonThruster |
| Frost Fang | KFGameContent.KFWeap_Rifle_FrostShotgunAxe |
| Minigun | KFGameContent.KFWeap_Minigun |
| Mine Reconstructor | KFGameContent.KFWeap_Mine_Reconstructor |
| Blunderbuss | KFGameContent.KFWeap_Pistol_Blunderbuss |
| Rhino | KFGameContent.KFWeap_Pistol_ChiappaRhinoKFGameContent.KFWeap_Pistol_ChiappaRhinoDual |
| Glock 18c | KFGameContent.KFWeap_Pistol_G18CKFGameContent.KFWeap_Pistol_DualG18 |
| Mosin Nagant | KFGameContent.KFWeap_Rifle_MosinNagant |
| Compound Bow | KFGameContent.KFWeap_Bow_CompoundBow |
| Riot Shield & Glock 18 | KFGameContent.KFWeap_SMG_G18 |
| Gravity Imploder | KFGameContent.KFWeap_GravityImploder |
| FAMAS Masterkey | KFGameContent.KFWeap_AssaultRifle_FAMAS |
| Thermite Bore | KFGameContent.KFWeap_RocketLauncher_ThermiteBore |
| Piranha Pistol(s) | KFGameContent.KFWeap_Pistol_BladedKFGameContent.KFWeap_Pistol_DualBladed |
| Corrupter Carbine | KFGameContent.KFWeap_Rifle_ParasiteImplanter |
| Doshinegun | KFGameContent.KFWeap_AssaultRifle_Doshinegun |
| Sentinel | KFGameContent.KFWeap_AutoTurret |
| Reducto Ray | KFGameContent.KFWeap_ShrinkRayGun |
| G36C Assault Rifle | KFGameContent.KFWeap_AssaultRifle_G36C |
| Blood Sickle | KFGameContent.KFWeap_Edged_Scythe |
| Zed Eradication Device MKIII | KFGameContent.KFWeap_ZedMKIII |
| HV Storm Cannon | KFGameContent.KFWeap_HVStormCannon |
| S12 Shockgun | KFGameContent.KFWeap_Shotgun_S12 |
| MG3 Shredder | KFGameContent.KFWeap_LMG_MG3 |
| Weapon | Class name |
|---|
| HRG Ballistic Bouncer | KFGameContent.KFWeap_HRG_BallisticBouncer |
| HRG Medic Missile | KFGameContent.KFWeap_HRG_MedicMissile |
| HRG Stunner | KFGameContent.KFWeap_HRG_Stunner |
| HRG Tommy Boom | KFGameContent.KFWeap_HRG_Boomy |
| HRG Disrupter | KFGameContent.KFWeap_HRG_Energy |
| HRG Beluga Beat | KFGameContent.KFWeap_HRG_SonicGun |
| HRG Teslauncher | KFGameContent.KFWeap_AssaultRifle_HRGTeslauncher |
| HRG Buckshot | KFGameContent.KFWeap_HRG_Revolver_BuckshotKFGameContent.KFWeap_HRG_Revolver_DualBuckshot |
| HRG Healthrower | KFGameContent.KFWeap_HRG_Healthrower |
| HRG Incision | KFGameContent.KFWeap_Rifle_HRGIncision |
| HRG Vampire | KFGameContent.KFWeap_HRG_Vampire |
| HRG Kaboomstick | KFGameContent.KFWeap_Shotgun_HRG_Kaboomstick |
| HRG Scorcher | KFGameContent.KFWeap_Pistol_HRGScorcher |
| HRG Incendiary Rifle | KFGameContent.KFWeap_AssaultRifle_HRGIncendiaryRifle |
| HRG Winterbite | KFGameContent.KFWeap_Pistol_HRGWinterbiteKFGameContent.KFWeap_Pistol_DualHRGWinterbite |
| HRG Nailgun | KFGameContent.KFWeap_HRG_Nailgun |
| HRG Arc Generator | KFGameContent.KFWeap_HRG_EMP_ArcGenerator |
| HRG Blast Brawlers | KFGameContent.KFWeap_HRG_BlastBrawlers |
| HRG Bastion | KFGameContent.KFWeap_HRG_BarrierRifle |
| HRG Head Hunter | KFGameContent.KFWeap_HRG_CranialPopper |
| HRG Crossboom | KFGameContent.KFWeap_HRG_Crossboom |
| HRG Dragonsblaze | KFGameContent.KFWeap_HRG_Dragonbreath |
| HRG Locust | KFGameContent.KFWeap_HRG_Locust |
| HRG Bombardier | KFGameContent.KFWeap_HRG_Warthog |
| HRG 93R pistol | KFGameContent.KFWeap_HRG_93R |
| Weapon | Class name |
|---|
| Crovel | KFGameContent.KFWeap_Blunt_Crove |
| VLAD-1000 Nailgun | KFGameContent.KFWeap_Shotgun_Nailgun |
| Katana | KFGameContent.KFWeap_Edged_Katana |
| Fire Axe | KFGameContent.KFWeap_Edged_FireAxe |
| Hemoclobber | KFGameContent.KFWeap_Blunt_MedicBat |
| Pulverizer | KFGameContent.KFWeap_Blunt_Pulverizer |
| Eviscerator | KFGameContent.KFWeap_Eviscerator |
| Static Strikers | KFGameContent.KFWeap_Blunt_PowerGloves |
| Bone Crusher | KFGameContent.KFWeap_Blunt_MaceAndShield |
| Battleaxe | KFGameContent.KFWeap_Edged_AbominationAxe |
| Weapon | Class name |
|---|
| AR-15 Varmint Rifle | KFGameContent.KFWeap_AssaultRifle_AR15 |
| L85A2 Bullpup | KFGameContent.KFWeap_AssaultRifle_Bullpup |
| AK-12 | KFGameContent.KFWeap_AssaultRifle_AK12 |
| MKb.42 | KFGameContent.KFWeap_AssaultRifle_MKB42 |
| SCAR-H | KFGameContent.KFWeap_AssaultRifle_SCAR |
| Stoner 63A LMG | KFGameContent.KFWeap_LMG_Stoner63A |
| Weapon | Class name |
|---|
| SG-500 Pump Action | KFGameContent.KFWeap_Shotgun_MB500 |
| Double Barrel Shotgun | KFGameContent.KFWeap_Shotgun_DoubleBarrel |
| HZ12 Multi-Action | KFGameContent.KFWeap_Shotgun_HZ12 |
| M4 Combat Shotgun | KFGameContent.KFWeap_Shotgun_M4 |
| AA-12 Auto Shotgun | KFGameContent.KFWeap_Shotgun_AA12 |
| Doomstick | KFGameContent.KFWeap_Shotgun_ElephantGun |
| Weapon | Class name |
|---|
| HMTech-101 Pistol | KFGameContent.KFWeap_Pistol_Medic |
| HMTech-201 SMG | KFGameContent.KFWeap_SMG_Medic |
| HMTech-301 Shotgun | KFGameContent.KFWeap_Shotgun_Medic |
| HMTech-401 Assault Rifle | KFGameContent.KFWeap_AssaultRifle_Medic |
| HMTech-501 Grenade Rifle | KFGameContent.KFWeap_AssaultRifle_MedicRifleGrenadeLauncher |
| Hemogoblin | KFGameContent.KFWeap_Rifle_Hemogoblin |
| Weapon | Class name |
|---|
| HX25 Grenade Pistol | KFGameContent.KFWeap_GrenadeLauncher_HX25 |
| C4 Explosives | KFGameContent.KFWeap_Thrown_C4 |
| M79 Grenade Launcher | KFGameContent.KFWeap_GrenadeLauncher_M79 |
| Seal Squeal | KFGameContent.KFWeap_RocketLauncher_SealSqueal |
| M16 M203 Assault Rifle | KFGameContent.KFWeap_AssaultRifle_M16M203 |
| RPG-7 | KFGameContent.KFWeap_RocketLauncher_RPG7 |
| Seeker Six | KFGameContent.KFWeap_RocketLauncher_Seeker6 |
| M32 Grenade Launcher | KFGameContent.KFWeap_GrenadeLauncher_M32 |
| Weapon | Class name |
|---|
| Caulk n' Burn | KFGameContent.KFWeap_Flame_CaulkBurn |
| Spitfire | KFGameContent.KFWeap_Pistol_FlareKFGameContent.KFWeap_Pistol_DualFlare |
| Dragonsbreath | KFGameContent.KFWeap_Shotgun_DragonsBreath |
| Flamethrower | KFGameContent.KFWeap_Flame_Flamethrower |
| Mac 10 | KFGameContent.KFWeap_SMG_Mac10 |
| Microwave Gun | KFGameContent.KFWeap_Beam_Microwave |
| Husk Cannon | KFGameContent.KFWeap_HuskCannon |
| Helios Rifle | KFGameContent.KFWeap_AssaultRifle_Microwave |
| Weapon | Class name |
|---|
| 1858 Revolver | KFGameContent.KFWeap_Revolver_Rem1858KFGameContent.KFWeap_Revolver_DualRem1858 |
| M1911 Pistol | KFGameContent.KFWeap_Pistol_Colt1911KFGameContent.KFWeap_Pistol_DualColt1911 |
| 50 Desert Eagle | KFGameContent.KFWeap_Pistol_DeagleKFGameContent.KFWeap_Pistol_DualDeagle |
| 500 Magnum Revolver | KFGameContent.KFWeap_Revolver_SW500KFGameContent.KFWeap_Revolver_DualSW500 |
| AF2011-A1 Pistol | KFGameContent.KFWeap_Pistol_AF2011KFGameContent.KFWeap_Pistol_DualAF2011 |
| Weapon | Class name |
|---|
| Winchester 1894 Lever Action | KFGameContent.KFWeap_Rifle_Winchester1894 |
| SPX 464 Centerfire | KFGameContent.KFWeap_Rifle_CenterfireMB464 |
| Crossbow | KFGameContent.KFWeap_Bow_Crossbow |
| M14 EBR | KFGameContent.KFWeap_Rifle_M14EBR |
| Railgun | KFGameContent.KFWeap_Rifle_RailGun |
| FN FAL ACOG | KFGameContent.KFWeap_AssaultRifle_FNFal |
| M99 AMR | KFGameContent.KFWeap_Rifle_M99 |
| Weapon | Class name |
|---|
| MP7 SMG | KFGameContent.KFWeap_SMG_MP7 |
| MP5RAS SMG | KFGameContent.KFWeap_SMG_MP5RAS |
| Tommy Gun/Thompson | KFGameContent.KFWeap_AssaultRifle_Thompson |
| P90 SMG | KFGameContent.KFWeap_SMG_P90 |
| H&K UMP | KFGameContent.KFWeap_SMG_HK_UMP |
| Kriss SMG | KFGameContent.KFWeap_SMG_Kriss |
| Weapon | Class name |
|---|
| Freezethrower | KFGameContent.KFWeap_Ice_FreezeThrower |
| Killerwatt | KFGameContent.KFWeap_AssaultRifle_LazerCutter |
| Weapon | Class name |
|---|
| Healer Syringe | KFGameContent.KFWeap_Healer_Syringe |
| Welder | KFGameContent.KFWeap_Welder |
| Han's MKb42 | KFGameContent.KFWeap_AssaultRifle_DualMKb42_HansKFGameContent.KFWeap_AssaultRifle_DualMKb42_HansFriendlyTest |
| Patriarch's Minigun | KFGameContent.KFWeap_Minigun_PatriarchKFGameContent.KFWeap_Minigun_Patriarch_Versus |
| Matriarch's Tesla Beam cannon | KFGameContent.KFWeap_PowerClaw_Matriarch |
| Gear | KFGameContent.KFCarryable_Gear |
| Datapad | KFGameContent.KFCarryable_Datapad |
| Weapon | Class name |
|---|
| Lawn Mower Blade | KFGameContent.KFWeap_Knife_Berserker |
| KF-BAR | KFGameContent.KFWeap_Knife_Commando |
| Machete | KFGameContent.KFWeap_Knife_Support |
| Scalpel | KFGameContent.KFWeap_Knife_FieldMedic |
| Utility Knife | KFGameContent.KFWeap_Knife_Demolitionist |
| Fireman's Knife | KFGameContent.KFWeap_Knife_Firebug |
| Bowie Knife | KFGameContent.KFWeap_Knife_Gunslinger |
| Kukri | KFGameContent.KFWeap_Knife_Sharpshooter |
| Tactical Knife | KFGameContent.KFWeap_Knife_SWAT |
| Gore Shiv | KFGameContent.KFWeap_Knife_Survivalist |
| Zed | Code | Class name |
|---|
| Cyst | clot clotc | KFGameContent.KFPawn_ZedClot_Cyst |
| Slasher | clots | KFGameContent.KFPawn_ZedClot_Slasher |
| Alpha Clot | clota | KFGameContent.KFPawn_ZedClot_Alpha |
| Rioter | ealp | KFGameContent.KFPawn_ZedClot_AlphaKing |
| Gorefast | g | KFGameContent.KFPawn_ZedGorefast |
| Gorefiend | gf2 | KFGameContent.KFPawn_ZedGorefastDualBlade |
| Crawler | cr | KFGameContent.KFPawn_ZedCrawler |
| Elite Crawler | ecra | KFGameContent.KFPawn_ZedCrawlerKing |
| Stalker | st | KFGameContent.KFPawn_ZedStalker |
| Husk | hu | KFGameContent.KFPawn_ZedHusk |
| Siren | si | KFGameContent.KFPawn_ZedSiren |
| Scrake | sc | KFGameContent.KFPawn_ZedScrake |
| Fleshpound | fp | KFGameContent.KFPawn_ZedFleshpound |
| Quarterpound | minifp | KFGameContent.KFPawn_ZedFleshpoundMini |
| EDAR Bomber | rock | KFGameContent.KFPawn_ZedDAR_Rocket |
| EDAR Blaster | laser | KFGameContent.KFPawn_ZedDAR_Laser |
| EDAR Trapper | emp | KFGameContent.KFPawn_ZedDAR_EMP |
| Abomination Spawn | poop | KFGameContent.KFPawn_ZedBloatKingSubspawn |
| Dr. Hans Volter | hans | KFGameContent.KFPawn_ZedHans |
| Patriarch | pat | KFGameContent.KFPawn_ZedPatriarch |
| King Fleshpound | kingfp | KFGameContent.KFPawn_ZedFleshpoundKing |
| Abomination | kingb | KFGameContent.KFPawn_ZedBloatKingKFGameContent.KFPawn_ZedBloatKing_SantasWorkshop |
| Matriarch | m | KFGameContent.KFPawn_ZedMatriarch |
| Friendly Hans | fhans | KFGameContent.KFPawn_ZedHansFriendlyTest |
| Friendly Husk | fhusk | KFGameContent.KFPawn_ZedHuskFriendlyTest |
All require enablecheats.
SpawnHumanPawn <isEnemy> <godMode> <index>: spawns a brainless dummy player that attracts Zeds and takes damage unless god mode is on, e.g. SpawnHumanPawn 0 1 0. KillBots kills them.
SpawnZed <name>: spawns a brainless Zed, e.g. spawnzed sc; SpawnAI <name> spawns one with AI.
SpawnZedGroup <name> <rows> <cols> <spacing> and SpawnZedAIGroup ...: grids of Zeds without or with AI.
KillZeds kills all Zeds. PlayersOnly (or F4) pauses the game but lets players move.
SpawnZEDV <name> <shouldPossess>: in a Versus game (open KF-BurningParis?Game=Versus) spawns a Versus Zed; add 1 to take control, e.g. SpawnZEDV Siren 1.
Gameplay commands need the admin prefix after logging in and enabling cheats, for example admin god, admin slomo 0.5, admin setfriendlyfirescale 0.25.
| Command | Description |
|---|
adminlogin <password> / adminlogout | Log in or out as admin |
admin adminsay <message> | Shows a message in the middle of every player's screen |
admin map KF-mapname.rom / admin Switch KF-mapname.rom | Change the current map |
pause | Pauses the game (must be enabled in WebAdmin) |
admin Kick / admin KickBan | Remove or ban a user by ID from the kick list |
admin RestartMap / admin NextMap | Restart or advance the map |
admin PlayerList | Writes the player list to KillingFloor.log |
Some are SDK-only.
ToggleSpawning (SDK): test in Play in Editor; also skips waves. On holdout maps enter the trader first.
EndCurrentWave (SDK) completes the wave and moves to the trader; SetWave <n> (SDK) sets the wave.
Chris: gives God, Loaded, UberAmmo and ToggleSpawning.
ToggleSplatterGun, ClearSplatters, ClearCorpses, DisableAllScreenMessages, HideTraderPath, ShowTraderPath.
TestPortalNearby <zed> <n>, TestPortalAll <zed>, TestPortalActive <zed>, TestSpawnVolume <n>, SetSpawnVolumeDebug true true true, SpawnTest <n> <simSpawn> <spawnZeds> for spawn testing.
ShowPrecomputedVisibility, ToggleOcclusion, TogglePrecomputedVisibility.
Stat FPS: FPS and frame time. ShowLog: the debug log. BugIt <description>: a screenshot with a text file in Documents\My Games\KillingFloor2\KFGame\Screenshots.
GetAll <Class> <Property>: prints a property of all instances, e.g. GetAll KFPawn_ZedScrake Health; DisplayAll shows it live (heavy, offline only) and DisplayClear clears it.
Show COLLISION, Show VOLUMES, Show SPAWNVOLUMES, Show HITZONES (offline only).
ShowDebug Weapon: weapon data including animation timers.
NoSpread / GoSpread, NoRecoil / GoRecoil: turn spread or recoil off and on.
SetNadeRadiusDebug 1: draws explosion radii (yellow maximum, red Clot kill radius, orange half falloff); ignores perk bonuses.
TestNukeGrenade: throws a grenade that creates a nuke.
Binds can set other binds, giving toggles and sequences. In Documents\My Games\KillingFloor2\KFGame\Config\KFInput.ini add at the end of the [KFGame.KFPlayerInput] block:
Bindings=(Name="my_phrase1",Command="say Medic! | SetBind M my_phrase2")
Bindings=(Name="my_phrase2",Command="say Patch Me Up! | SetBind M my_phrase3")
Bindings=(Name="my_phrase3",Command="say I'm Dying Here! | SetBind M my_phrase1")
Bindings=(Name="M",Command="my_phrase1")
The bindings typed without spaces between strings.
Pressing M now cycles through "Medic!", "Patch Me Up!" and "I'm Dying Here!". The same idea toggles recoil with cheats on:
Bindings=(Name="recoil_off",Command="NoRecoil | SetBind X recoil_on")
Bindings=(Name="recoil_on",Command="GoRecoil | SetBind X recoil_off")
Bindings=(Name="X",Command="recoil_off")
The command getall KFGameReplicationInfo BossIndex returns a number that matches the boss: 0 Dr. Hans Volter, 1 Patriarch, 2 King Fleshpound, 3 Abomination, 4 Matriarch. It works at any point, solo offline and in multiplayer, and in Endless it changes after every boss wave. Copy and paste it once; the console remembers it, so use the arrow keys to bring it back.
Example output of the boss index command.