Cheats & Trainers (archive)

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

CommandEffect
EnableCheatsEnables cheats and every command below
God / DemigodGod mode / take damage but survive with 1 HP
HealMe [n] / ArmorMe [n]Give health / armor
Imrich / doshMe xLots of dosh / x dosh
SpawnHumanPawn 0 1Adds a braindead player; KillBots removes them
ChangeSize 0-5Scale player size
KillZeds / KillViewedActorKill all ZEDs / the viewed bot
fly / ghost / walkFly mode / noclip on / noclip off
WinMatchWin the match
allammo, allweapons, meleeRefill ammo, give some weapons, give melee weapons
OpenTrader, OpenTraderNext, OpenTraderMenuOpen trading, switch to next trader, open the trader menu
SpawnZED ClotSpawn one braindead Clot; SpawnZEDLods spawns several
SpawnAI ClotSpawn a ZED with working AI
SpawnZedGroup x y zZed name x, y rows, z per row
slomo xGame speed, try 0.2 or 0.3
playersonlyFreeze everything except players
Berserk, Medic, Assault, Shotty, Firebug, Demo, Nails, DualiesGive the weapons of Berserker, Medic, Commando, Support, Firebug, Demolitionist, the VLAD-1000 and Gunslinger
UberammoUnlimited ammo and grenades, no reload
NoSpread / GoSpread, NoRecoil / GoRecoilDisable / enable spread and recoil
WeapFOV xWeapon FOV, needs setting per weapon
NextTrackPlays the next song
SetGravity x, SetJumpZ x, SetSpeed xGravity, jump height, walk speed (setspeed 2 doubles speed, setjumpz 1000 jumps higher)
ClearCorpses, ClearSplatters, ResetDoorsClean-up and door reset
ToggleZedsIgnoreMeZeds with AI ignore you
ToggleHUD, ShowHUDShow or hide the HUD
ToggleScreenShotMode, ShowHands 1Remove HUD and arms; bring the arms back
Show PathsShow ZED navigation paths
Summon kfchar.zombieclotSummon by class name
TeleportTeleport to the surface under your crosshair
ViewPlayer name, ViewSelf, ViewZedChange camera view
setsensitivity 5, setzoomedsensitivityMouse sensitivity
stat fps, Fov 100, suicide, PauseFPS counter, field of view, suicide, pause

Debug and animation commands

  • SpawnDebugAI spawns a ZED with controllable AI. Type AI to see the AI commands, which only work with a Debug AI character.
  • AIHuskFlamethrower, AIHeadlessWander (decapitate and wander).
  • Playknockdown, Playstunned, Playrandomsumble force the matching animation on a ZED.
  • HansGunsOut, HansGunsAway, HansNextPhase, HansGas control the Hans boss.
  • FakeDramaEvent triggers Zed Time; nvzedtime 1 1 15 gives 15 seconds of it; nvenablezedtime 0 disables Zed Time.
  • nvheadshot makes every hit count as a headshot; Noammo removes ammo; Autofire 1 fires once a second.
  • BackgroundBlur 1, Camerapuke (bloat vision), ce benchmark (camera tour).
  • show hitzones shows hitboxes (offline only). Pair it with displayall or getall kfpawn_zed(zedname) hitzones to 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.