KF2 Console Commands for Testing: Spawn, God Mode, Debug and Admin
A long-running community reference of Killing Floor 2 console commands for testing: spawning ZEDs, weapons, god mode, time and gravity controls, AI debugging and admin commands. It is also the list that the SetBind guide points to. Related pages: console commands list and giveweapon commands. Many commands work only offline or on a private server with cheats enabled.
Safe testing setup
Enable cheats, spawn one braindead Clot with SpawnZED Clot, and kill the rest of the wave. The wave then cannot advance, so you get unlimited time to experiment. Open the console with the tilde key (or F3 for the quick console).
General commands
| Command | Effect |
|---|---|
| EnableCheats | Enables cheats and every command below |
| God / Demigod | God mode / take damage but survive with 1 HP |
| HealMe [n] / ArmorMe [n] | Give health / armor |
| Imrich / doshMe x | Lots of dosh / x dosh |
| SpawnHumanPawn 0 1 | Adds a braindead player; KillBots removes them |
| ChangeSize 0-5 | Scale player size |
| KillZeds / KillViewedActor | Kill all ZEDs / the viewed bot |
| fly / ghost / walk | Fly mode / noclip on / noclip off |
| WinMatch | Win the match |
| allammo, allweapons, melee | Refill ammo, give some weapons, give melee weapons |
| OpenTrader, OpenTraderNext, OpenTraderMenu | Open trading, switch to next trader, open the trader menu |
| SpawnZED Clot | Spawn one braindead Clot; SpawnZEDLods spawns several |
| SpawnAI Clot | Spawn a ZED with working AI |
| SpawnZedGroup x y z | Zed name x, y rows, z per row |
| slomo x | Game speed, try 0.2 or 0.3 |
| playersonly | Freeze everything except players |
| Berserk, Medic, Assault, Shotty, Firebug, Demo, Nails, Dualies | Give the weapons of Berserker, Medic, Commando, Support, Firebug, Demolitionist, the VLAD-1000 and Gunslinger |
| Uberammo | Unlimited ammo and grenades, no reload |
| NoSpread / GoSpread, NoRecoil / GoRecoil | Disable / enable spread and recoil |
| WeapFOV x | Weapon FOV, needs setting per weapon |
| NextTrack | Plays the next song |
| SetGravity x, SetJumpZ x, SetSpeed x | Gravity, jump height, walk speed (setspeed 2 doubles speed, setjumpz 1000 jumps higher) |
| ClearCorpses, ClearSplatters, ResetDoors | Clean-up and door reset |
| ToggleZedsIgnoreMe | Zeds with AI ignore you |
| ToggleHUD, ShowHUD | Show or hide the HUD |
| ToggleScreenShotMode, ShowHands 1 | Remove HUD and arms; bring the arms back |
| Show Paths | Show ZED navigation paths |
| Summon kfchar.zombieclot | Summon by class name |
| Teleport | Teleport to the surface under your crosshair |
| ViewPlayer name, ViewSelf, ViewZed | Change camera view |
| setsensitivity 5, setzoomedsensitivity | Mouse sensitivity |
| stat fps, Fov 100, suicide, Pause | FPS counter, field of view, suicide, pause |
Debug and animation commands
SpawnDebugAIspawns a ZED with controllable AI. TypeAIto see the AI commands, which only work with a Debug AI character.AIHuskFlamethrower,AIHeadlessWander(decapitate and wander).Playknockdown,Playstunned,Playrandomsumbleforce the matching animation on a ZED.HansGunsOut,HansGunsAway,HansNextPhase,HansGascontrol the Hans boss.FakeDramaEventtriggers Zed Time;nvzedtime 1 1 15gives 15 seconds of it;nvenablezedtime 0disables Zed Time.nvheadshotmakes every hit count as a headshot;Noammoremoves ammo;Autofire 1fires once a second.BackgroundBlur 1,Camerapuke(bloat vision),ce benchmark(camera tour).show hitzonesshows hitboxes (offline only). Pair it withdisplayallorgetall kfpawn_zed(zedname) hitzonesto read the health of each hitzone, useful for head HP. Prefer getall to avoid clutter.- Pressing P after enabling cheats freezes the ZEDs.
Spawn names for Clots
Clotu is the Cyst, Clots the Slasher and Clota the regular Clot.
Admin commands
These work only when logged in as admin and may no longer work in recent builds. Log in with adminlogin <password>, run enablecheats, then prefix commands with admin. Mentioned commands: god, demigod, changesize, doshme, flame, fly, ghost, imrich, uberammo, setgravity, setjump, shotty, slomo. Server management: admin map KF-mapname, admin RestartMap, admin NextMap, admin adminsay message, admin PlayerList (writes to KillingFloor.log), admin Kick and admin KickBan. adminlogout logs out.
The author also recommends a community guide on photography with console commands, covered in photography mode commands.
FAQ
- How do I get unlimited testing time?
- Enable cheats, spawn one braindead Clot with SpawnZED Clot and kill the rest of the wave.
- What do Clotu, Clots and Clota spawn?
- A Cyst, a Slasher and a regular Clot.