Cheats & Trainers (archive)

KF2 Console Commands: Cheats, Admin, Spawning and Weapon Class Names

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.

Core commands

  • 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.

Gameplay (cheat) commands

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).

CommandEffect
EnableCheatsUnlocks most commands
God / DemigodGod mode / take damage but do not die
HurtMe <n>, HealMe <n>, ArmorMe <n>Damage, heal or armor by n
Ghost, Fly, WalkNo-clip; no-clip with collision; back to walking
ImRich, DoshMe <n>Money
UberAmmoLots of ammo for all weapons and grenades
LoadedMost weapons
GiveWeapon <class>Give a specific weapon, e.g. GiveWeapon KFGameContent.KFWeap_GravityImploder
UpgradeWeaponUpgrade the equipped weapon one level
OpenTraderMenuOpen 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
PowerUpHellishRageApply the Hellish powerup effects

Weapon class names

Use these with GiveWeapon. Dual versions are listed together where they exist.

Starting pistol

WeaponClass name
9mm PistolKFGameContent.KFWeap_Pistol_9mmKFGameContent.KFWeap_Pistol_Dual9mm

DLC weapons

WeaponClass name
ZweihanderKFGameContent.KFWeap_Edged_Zweihander
Road RedeemerKFGameContent.KFWeap_Blunt_ChainBat
Ion ThrusterKFGameContent.KFWeap_Edged_IonThruster
Frost FangKFGameContent.KFWeap_Rifle_FrostShotgunAxe
MinigunKFGameContent.KFWeap_Minigun
Mine ReconstructorKFGameContent.KFWeap_Mine_Reconstructor
BlunderbussKFGameContent.KFWeap_Pistol_Blunderbuss
RhinoKFGameContent.KFWeap_Pistol_ChiappaRhinoKFGameContent.KFWeap_Pistol_ChiappaRhinoDual
Glock 18cKFGameContent.KFWeap_Pistol_G18CKFGameContent.KFWeap_Pistol_DualG18
Mosin NagantKFGameContent.KFWeap_Rifle_MosinNagant
Compound BowKFGameContent.KFWeap_Bow_CompoundBow
Riot Shield & Glock 18KFGameContent.KFWeap_SMG_G18
Gravity ImploderKFGameContent.KFWeap_GravityImploder
FAMAS MasterkeyKFGameContent.KFWeap_AssaultRifle_FAMAS
Thermite BoreKFGameContent.KFWeap_RocketLauncher_ThermiteBore
Piranha Pistol(s)KFGameContent.KFWeap_Pistol_BladedKFGameContent.KFWeap_Pistol_DualBladed
Corrupter CarbineKFGameContent.KFWeap_Rifle_ParasiteImplanter
DoshinegunKFGameContent.KFWeap_AssaultRifle_Doshinegun
SentinelKFGameContent.KFWeap_AutoTurret
Reducto RayKFGameContent.KFWeap_ShrinkRayGun
G36C Assault RifleKFGameContent.KFWeap_AssaultRifle_G36C
Blood SickleKFGameContent.KFWeap_Edged_Scythe
Zed Eradication Device MKIIIKFGameContent.KFWeap_ZedMKIII
HV Storm CannonKFGameContent.KFWeap_HVStormCannon
S12 ShockgunKFGameContent.KFWeap_Shotgun_S12
MG3 ShredderKFGameContent.KFWeap_LMG_MG3

Horzine Research Group (HRG) weapons

WeaponClass name
HRG Ballistic BouncerKFGameContent.KFWeap_HRG_BallisticBouncer
HRG Medic MissileKFGameContent.KFWeap_HRG_MedicMissile
HRG StunnerKFGameContent.KFWeap_HRG_Stunner
HRG Tommy BoomKFGameContent.KFWeap_HRG_Boomy
HRG DisrupterKFGameContent.KFWeap_HRG_Energy
HRG Beluga BeatKFGameContent.KFWeap_HRG_SonicGun
HRG TeslauncherKFGameContent.KFWeap_AssaultRifle_HRGTeslauncher
HRG BuckshotKFGameContent.KFWeap_HRG_Revolver_BuckshotKFGameContent.KFWeap_HRG_Revolver_DualBuckshot
HRG HealthrowerKFGameContent.KFWeap_HRG_Healthrower
HRG IncisionKFGameContent.KFWeap_Rifle_HRGIncision
HRG VampireKFGameContent.KFWeap_HRG_Vampire
HRG KaboomstickKFGameContent.KFWeap_Shotgun_HRG_Kaboomstick
HRG ScorcherKFGameContent.KFWeap_Pistol_HRGScorcher
HRG Incendiary RifleKFGameContent.KFWeap_AssaultRifle_HRGIncendiaryRifle
HRG WinterbiteKFGameContent.KFWeap_Pistol_HRGWinterbiteKFGameContent.KFWeap_Pistol_DualHRGWinterbite
HRG NailgunKFGameContent.KFWeap_HRG_Nailgun
HRG Arc GeneratorKFGameContent.KFWeap_HRG_EMP_ArcGenerator
HRG Blast BrawlersKFGameContent.KFWeap_HRG_BlastBrawlers
HRG BastionKFGameContent.KFWeap_HRG_BarrierRifle
HRG Head HunterKFGameContent.KFWeap_HRG_CranialPopper
HRG CrossboomKFGameContent.KFWeap_HRG_Crossboom
HRG DragonsblazeKFGameContent.KFWeap_HRG_Dragonbreath
HRG LocustKFGameContent.KFWeap_HRG_Locust
HRG BombardierKFGameContent.KFWeap_HRG_Warthog
HRG 93R pistolKFGameContent.KFWeap_HRG_93R

Berserker

WeaponClass name
CrovelKFGameContent.KFWeap_Blunt_Crove
VLAD-1000 NailgunKFGameContent.KFWeap_Shotgun_Nailgun
KatanaKFGameContent.KFWeap_Edged_Katana
Fire AxeKFGameContent.KFWeap_Edged_FireAxe
HemoclobberKFGameContent.KFWeap_Blunt_MedicBat
PulverizerKFGameContent.KFWeap_Blunt_Pulverizer
EvisceratorKFGameContent.KFWeap_Eviscerator
Static StrikersKFGameContent.KFWeap_Blunt_PowerGloves
Bone CrusherKFGameContent.KFWeap_Blunt_MaceAndShield
BattleaxeKFGameContent.KFWeap_Edged_AbominationAxe

Commando

WeaponClass name
AR-15 Varmint RifleKFGameContent.KFWeap_AssaultRifle_AR15
L85A2 BullpupKFGameContent.KFWeap_AssaultRifle_Bullpup
AK-12KFGameContent.KFWeap_AssaultRifle_AK12
MKb.42KFGameContent.KFWeap_AssaultRifle_MKB42
SCAR-HKFGameContent.KFWeap_AssaultRifle_SCAR
Stoner 63A LMGKFGameContent.KFWeap_LMG_Stoner63A

Support

WeaponClass name
SG-500 Pump ActionKFGameContent.KFWeap_Shotgun_MB500
Double Barrel ShotgunKFGameContent.KFWeap_Shotgun_DoubleBarrel
HZ12 Multi-ActionKFGameContent.KFWeap_Shotgun_HZ12
M4 Combat ShotgunKFGameContent.KFWeap_Shotgun_M4
AA-12 Auto ShotgunKFGameContent.KFWeap_Shotgun_AA12
DoomstickKFGameContent.KFWeap_Shotgun_ElephantGun

Field Medic

WeaponClass name
HMTech-101 PistolKFGameContent.KFWeap_Pistol_Medic
HMTech-201 SMGKFGameContent.KFWeap_SMG_Medic
HMTech-301 ShotgunKFGameContent.KFWeap_Shotgun_Medic
HMTech-401 Assault RifleKFGameContent.KFWeap_AssaultRifle_Medic
HMTech-501 Grenade RifleKFGameContent.KFWeap_AssaultRifle_MedicRifleGrenadeLauncher
HemogoblinKFGameContent.KFWeap_Rifle_Hemogoblin

Demolitionist

WeaponClass name
HX25 Grenade PistolKFGameContent.KFWeap_GrenadeLauncher_HX25
C4 ExplosivesKFGameContent.KFWeap_Thrown_C4
M79 Grenade LauncherKFGameContent.KFWeap_GrenadeLauncher_M79
Seal SquealKFGameContent.KFWeap_RocketLauncher_SealSqueal
M16 M203 Assault RifleKFGameContent.KFWeap_AssaultRifle_M16M203
RPG-7KFGameContent.KFWeap_RocketLauncher_RPG7
Seeker SixKFGameContent.KFWeap_RocketLauncher_Seeker6
M32 Grenade LauncherKFGameContent.KFWeap_GrenadeLauncher_M32

Firebug

WeaponClass name
Caulk n' BurnKFGameContent.KFWeap_Flame_CaulkBurn
SpitfireKFGameContent.KFWeap_Pistol_FlareKFGameContent.KFWeap_Pistol_DualFlare
DragonsbreathKFGameContent.KFWeap_Shotgun_DragonsBreath
FlamethrowerKFGameContent.KFWeap_Flame_Flamethrower
Mac 10KFGameContent.KFWeap_SMG_Mac10
Microwave GunKFGameContent.KFWeap_Beam_Microwave
Husk CannonKFGameContent.KFWeap_HuskCannon
Helios RifleKFGameContent.KFWeap_AssaultRifle_Microwave

Gunslinger

WeaponClass name
1858 RevolverKFGameContent.KFWeap_Revolver_Rem1858KFGameContent.KFWeap_Revolver_DualRem1858
M1911 PistolKFGameContent.KFWeap_Pistol_Colt1911KFGameContent.KFWeap_Pistol_DualColt1911
50 Desert EagleKFGameContent.KFWeap_Pistol_DeagleKFGameContent.KFWeap_Pistol_DualDeagle
500 Magnum RevolverKFGameContent.KFWeap_Revolver_SW500KFGameContent.KFWeap_Revolver_DualSW500
AF2011-A1 PistolKFGameContent.KFWeap_Pistol_AF2011KFGameContent.KFWeap_Pistol_DualAF2011

Sharpshooter

WeaponClass name
Winchester 1894 Lever ActionKFGameContent.KFWeap_Rifle_Winchester1894
SPX 464 CenterfireKFGameContent.KFWeap_Rifle_CenterfireMB464
CrossbowKFGameContent.KFWeap_Bow_Crossbow
M14 EBRKFGameContent.KFWeap_Rifle_M14EBR
RailgunKFGameContent.KFWeap_Rifle_RailGun
FN FAL ACOGKFGameContent.KFWeap_AssaultRifle_FNFal
M99 AMRKFGameContent.KFWeap_Rifle_M99

SWAT

WeaponClass name
MP7 SMGKFGameContent.KFWeap_SMG_MP7
MP5RAS SMGKFGameContent.KFWeap_SMG_MP5RAS
Tommy Gun/ThompsonKFGameContent.KFWeap_AssaultRifle_Thompson
P90 SMGKFGameContent.KFWeap_SMG_P90
H&K UMPKFGameContent.KFWeap_SMG_HK_UMP
Kriss SMGKFGameContent.KFWeap_SMG_Kriss

Survivalist

WeaponClass name
FreezethrowerKFGameContent.KFWeap_Ice_FreezeThrower
KillerwattKFGameContent.KFWeap_AssaultRifle_LazerCutter

Other

WeaponClass name
Healer SyringeKFGameContent.KFWeap_Healer_Syringe
WelderKFGameContent.KFWeap_Welder
Han's MKb42KFGameContent.KFWeap_AssaultRifle_DualMKb42_HansKFGameContent.KFWeap_AssaultRifle_DualMKb42_HansFriendlyTest
Patriarch's MinigunKFGameContent.KFWeap_Minigun_PatriarchKFGameContent.KFWeap_Minigun_Patriarch_Versus
Matriarch's Tesla Beam cannonKFGameContent.KFWeap_PowerClaw_Matriarch
GearKFGameContent.KFCarryable_Gear
DatapadKFGameContent.KFCarryable_Datapad

Knives

WeaponClass name
Lawn Mower BladeKFGameContent.KFWeap_Knife_Berserker
KF-BARKFGameContent.KFWeap_Knife_Commando
MacheteKFGameContent.KFWeap_Knife_Support
ScalpelKFGameContent.KFWeap_Knife_FieldMedic
Utility KnifeKFGameContent.KFWeap_Knife_Demolitionist
Fireman's KnifeKFGameContent.KFWeap_Knife_Firebug
Bowie KnifeKFGameContent.KFWeap_Knife_Gunslinger
KukriKFGameContent.KFWeap_Knife_Sharpshooter
Tactical KnifeKFGameContent.KFWeap_Knife_SWAT
Gore ShivKFGameContent.KFWeap_Knife_Survivalist

Zed codes for spawning

ZedCodeClass name
Cystclot clotcKFGameContent.KFPawn_ZedClot_Cyst
SlasherclotsKFGameContent.KFPawn_ZedClot_Slasher
Alpha ClotclotaKFGameContent.KFPawn_ZedClot_Alpha
RioterealpKFGameContent.KFPawn_ZedClot_AlphaKing
GorefastgKFGameContent.KFPawn_ZedGorefast
Gorefiendgf2KFGameContent.KFPawn_ZedGorefastDualBlade
CrawlercrKFGameContent.KFPawn_ZedCrawler
Elite CrawlerecraKFGameContent.KFPawn_ZedCrawlerKing
StalkerstKFGameContent.KFPawn_ZedStalker
HuskhuKFGameContent.KFPawn_ZedHusk
SirensiKFGameContent.KFPawn_ZedSiren
ScrakescKFGameContent.KFPawn_ZedScrake
FleshpoundfpKFGameContent.KFPawn_ZedFleshpound
QuarterpoundminifpKFGameContent.KFPawn_ZedFleshpoundMini
EDAR BomberrockKFGameContent.KFPawn_ZedDAR_Rocket
EDAR BlasterlaserKFGameContent.KFPawn_ZedDAR_Laser
EDAR TrapperempKFGameContent.KFPawn_ZedDAR_EMP
Abomination SpawnpoopKFGameContent.KFPawn_ZedBloatKingSubspawn
Dr. Hans VolterhansKFGameContent.KFPawn_ZedHans
PatriarchpatKFGameContent.KFPawn_ZedPatriarch
King FleshpoundkingfpKFGameContent.KFPawn_ZedFleshpoundKing
AbominationkingbKFGameContent.KFPawn_ZedBloatKingKFGameContent.KFPawn_ZedBloatKing_SantasWorkshop
MatriarchmKFGameContent.KFPawn_ZedMatriarch
Friendly HansfhansKFGameContent.KFPawn_ZedHansFriendlyTest
Friendly HuskfhuskKFGameContent.KFPawn_ZedHuskFriendlyTest

Spawning and AI commands

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.

Admin commands

Gameplay commands need the admin prefix after logging in and enabling cheats, for example admin god, admin slomo 0.5, admin setfriendlyfirescale 0.25.

CommandDescription
adminlogin <password> / adminlogoutLog 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.romChange the current map
pausePauses the game (must be enabled in WebAdmin)
admin Kick / admin KickBanRemove or ban a user by ID from the kick list
admin RestartMap / admin NextMapRestart or advance the map
admin PlayerListWrites the player list to KillingFloor.log

SDK commands

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.

Debug commands

  • 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.

Toggle key binds

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")

Bindings in KFInput.ini 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")

Boss prediction

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.

Boss index output Example output of the boss index command.

FAQ

How do I open the KF2 console?
Press the tilde key (~) in game; F3 opens a lightweight console. Commands are not case-sensitive.
How do I give myself a weapon?
Run enablecheats (solo offline), then GiveWeapon <class name>, for example GiveWeapon KFGameContent.KFWeap_GravityImploder.
Do cheat commands work on servers?
As a server admin you must log in and prefix each gameplay command with admin. Cheats derank a play session and may behave unexpectedly online.