Useful Console Commands (Killing Floor 2): Difference between revisions

From Killing Floor 2 Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(49 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:KF2]]
These are console commands for PC version of [[Killing Floor 2]].
==Introduction==
==Introduction==


*While playing in game or within Play in Editor, press ~ to open the console window.
*While playing in game or within Play in Editor, press ~ to open the console window. F3 also pulls up a lightweight console.
*Cheats are not case-sensitive.
*Console commands are not case-sensitive.


==Core Commands==
==Core Commands==
Line 11: Line 14:
|-
|-
|Open <Map Name>
|Open <Map Name>
|Will load the map given. Eg: open kf-burningparis
|Will load the map given. Eg: ''open kf-burningparis''
You can also load gamemodes and mutators at the end of the command eg: kf-burningparis?Game=KFGameContent.KFGameinfo_Survival
You can also load gamemodes and mutators at the end of the command eg: ''kf-burningparis?Game=KFGameContent.KFGameinfo_Survival''
 
<small>Command as well accepts short names for gamemodes: "Survival", "Weekly", "Versus", "Endless" or "Objective" and difficulty / game length modifiers, e.g.</small>
 
''Open KF-Farmhouse?Game=Endless?Difficulty=2?Gamelength=1''
 
<small>where Difficulty: 0 - Normal, 1 - Hard, 2 - Suicidal 3 - HoE and Gamelength: 0 - short, 1 - normal, 2 - long.</small>
|-
|-
|Open <IP>
|Open <IP>
|Will connect to the <IP> given
|Will connect to the <IP> given
You can also provide a password. eg: open 127.0.0.1?password=123
You can provide a password. eg: ''open 127.0.0.1?password=123''
 
And you can also join as spectator. eg: ''open 127.0.0.1??spectatoronly=1''
|-
|-
|Disconnect
|Disconnect
Line 26: Line 37:
|Suicide
|Suicide
|Causes your player to die
|Causes your player to die
|-
|RestartLevel
|Restarts the Level
|-
|ToggleScreenshotMode
|Toggles Weapons/Hands and HUD on and off.
|-
|ToggleHUD
|Toggles HUD
|}
|}


==Gameplay Commands==
==Gameplay Commands==


*all these commands require you to 'enablecheats' and will derank a play session.
*All these commands require you to 'enablecheats' and will derank a play session.
*to go into 3rd person once enablecheats are on press 3 on the number pad (1 is 1st person).
*As a server owner, it requires you to add 'admin' prefix prior to each command. After login as an administrator. See [[Useful Console Commands (Killing Floor 2)#Admin Commands|admin commands]].
*Unintended game behaviour ''might'' appear while executing these commands online, with other players on server. For testing purposes better try solo play.
*Camera keys with 'enablecheats' on:
**Numpad 1: First Person
**Numpad 3: Third Person (aim lock)
**Insert: Third Person (free camera)
**Home: Third Person (head lock)
**End: First Person


{| class="wikitable" style="width:70%;"
{| class="wikitable" style="width:70%;"
Line 65: Line 92:
|Allows you to disable Ghost/Fly and walk again
|Allows you to disable Ghost/Fly and walk again
|-
|-
|DoshMe Amount[Int]
|ImRich
|Gives loadsamone
|-
|DoshMe <AMOUNT>
|Gives you the amount of dosh given
|Gives you the amount of dosh given
|-
|-
Line 73: Line 103:
|Loaded
|Loaded
|Gives you most of the weapons
|Gives you most of the weapons
|-
|GiveWeapon <WeaponClass String>
|Gives a specific weapon using class name & location
eg: ''giveweapon KFGameContent.KFWeap_Shotgun_DoubleBarrel''
[[Useful Console Commands (Killing Floor 2)#Weapon Class Names|List of Weapon Class Names]]
|-
|UpgradeWeapon
|Upgrades currently equipped weapon one level
|-
|-
|OpenTraderMenu
|OpenTraderMenu
|Open buy menu, anywhere, anytime
|Open buy menu, anywhere, anytime
|-
|DramaEvent <CHANCE> <LENGTH>
|Chance to toggle Zed Time with colour grading.
eg: ''dramaevent 1 10'' - will give 100% chance to trigger Zed Time for 10 seconds when entered.
|-
|-
|Slomo <SCALE>
|Slomo <SCALE>
|Sets world speed. Also useful to test [[Mechanics (Killing Floor 2)#Gameplay - ZED Time|ZED Time]] skills - they all become active with
|Sets world speed. Also useful to test [[Mechanics (Killing Floor 2)#Gameplay - ZED Time|ZED Time]] skills - they all become active with
Slomo < 1 (e.g. Slomo 0.99)
Slomo < 1 (e.g. Slomo 0.99)
|-
|ChangeSize <SIZE>
|Changes player size/scale. Default is 1.
|-
|SetSpeed <SPEED>
|Changes walk speed. Default is 1
|-
|SetJumpZ <HEIGHT>
|Changes Jump Height.
|-
|SetGravity <GRAVITY>
|Changes Gravity. Default is [[Mechanics (Killing Floor 2)#Gameplay - Crashing .2F falling damage|-1150]] (negative value).
This can easily crash a game or server, stay in reasonable numbers and don't go into positives.
|-
|PowerUpHellishRage
|Apply effects of [[Hellmark Station#PowerUp|Hellish Powerup]] on player
|}
===[[Weapons (Killing Floor 2)|Weapon]] Class Names===
{| class="mw-collapsible mw-collapsed wikitable" style="width:70%;"
|-
! scope="col" |Weapon
! scope="col" |Class Name
|-
| colspan="2" |'''''Common'''''
|-
|9mm Pistol
|KFGameContent.KFWeap_Pistol_9mm
KFGameContent.KFWeap_Pistol_Dual9mm
|-
|HRG 93R Pistol
|KFGameContent.KFWeap_HRG_93R
KFGameContent.KFWeap_HRG_93R_Dual
|-
| colspan="2" |'''''DLC Weapons'''''
|-
|Doshinegun
|KFGameContent.KFWeap_AssaultRifle_Doshinegun
|-
|Piranha Pistol
|KFGameContent.KFWeap_Pistol_Bladed
KFGameContent.KFWeap_Pistol_DualBladed
|-
|Zweihander
|KFGameContent.KFWeap_Edged_Zweihander
|-
|Road Redeemer
|KFGameContent.KFWeap_Blunt_ChainBat
|-
|Ion Thruster
|KFGameContent.KFWeap_Edged_IonThruster
|-
|Blood Sickle
|KFGameContent.KFWeap_Edged_Scythe
|-
|Frost Fang
|KFGameContent.KFWeap_Rifle_FrostShotgunAxe
|-
|S12 Shockgun
|KFGameContent.KFWeap_Shotgun_S12
|-
|Sentinel
|KFGameContent.KFWeap_AutoTurret
|-
|FAMAS Masterkey
|KFGameContent.KFWeap_AssaultRifle_FAMAS
|-
|Minigun
|KFGameContent.KFWeap_Minigun
|-
|MG3 Shredder
|KFGameContent.KFWeap_LMG_MG3
|-
|Mine Reconstructor
|KFGameContent.KFWeap_Mine_Reconstructor
|-
|Corrupter Carbine
|KFGameContent.KFWeap_Rifle_ParasiteImplanter
|-
|Blunderbuss
|KFGameContent.KFWeap_Pistol_Blunderbuss
|-
|Gravity Imploder
|KFGameContent.KFWeap_GravityImploder
|-
|ZED MKIII
|KFGameContent.KFWeap_ZedMKIII
|-
|Thermite Bore
|KFGameContent.KFWeap_RocketLauncher_ThermiteBore
|-
|Rhino
|KFGameContent.KFWeap_Pistol_ChiappaRhino
KFGameContent.KFWeap_Pistol_ChiappaRhinoDual
|-
|Glock 18c
|KFGameContent.KFWeap_Pistol_G18C
KFGameContent.KFWeap_Pistol_DualG18
|-
|G36C Assault Rifle
|KFGameContent.KFWeap_AssaultRifle_G36C
|-
|Mosin Nagant
|KFGameContent.KFWeap_Rifle_MosinNagant
|-
|HV Storm Cannon
|KFGameContent.KFWeap_HVStormCannon
|-
|Compound Bow
|KFGameContent.KFWeap_Bow_CompoundBow
|-
|Riot Shield & Glock 18
|KFGameContent.KFWeap_SMG_G18
|-
|Reducto Ray
|KFGameContent.KFWeap_ShrinkRayGun
|-
| colspan="2" |'''''Horzine Research Group Weapons'''''
|-
|HRG Teslauncher
|KFGameContent.KFWeap_AssaultRifle_HRGTeslauncher
|-
|HRG Buckshot
|KFGameContent.KFWeap_HRG_Revolver_Buckshot
KFGameContent.KFWeap_HRG_Revolver_DualBuckshot
|-
|HRG Ballistic Bouncer
|KFGameContent.KFWeap_HRG_BallisticBouncer
|-
|HRG Blast Brawlers
|KFGameContent.KFWeap_HRG_BlastBrawlers
|-
|HRG Healthrower
|KFGameContent.KFWeap_HRG_Healthrower
|-
|HRG Medic Missile
|KFGameContent.KFWeap_HRG_MedicMissile
|-
|HRG Incision
|KFGameContent.KFWeap_Rifle_HRGIncision
|-
|HRG Vampire
|KFGameContent.KFWeap_HRG_Vampire
|-
|HRG Bombardier
|KFGameContent.KFWeap_HRG_Warthog
|-
|HRG Tommy Boom
|KFGameContent.KFWeap_HRG_Boomy
|-
|HRG Crossboom
|KFGameContent.KFWeap_HRG_Crossboom
|-
|HRG Kaboomstick
|KFGameContent.KFWeap_Shotgun_HRG_Kaboomstick
|-
|HRG Scorcher
|KFGameContent.KFWeap_Pistol_HRGScorcher
|-
|HRG Incendiary Rifle
|KFGameContent.KFWeap_AssaultRifle_HRGIncendiaryRifle
|-
|HRG Dragonsblaze
|KFGameContent.KFWeap_HRG_Dragonbreath
|-
|HRG Winterbite
|KFGameContent.KFWeap_Pistol_HRGWinterbite
KFGameContent.KFWeap_Pistol_DualHRGWinterbite
|-
|HRG Disrupter
|KFGameContent.KFWeap_HRG_Energy
|-
|HRG Beluga Beat
|KFGameContent.KFWeap_HRG_SonicGun
|-
|HRG Head Hunter
|KFGameContent.KFWeap_HRG_CranialPopper
|-
|HRG Arc Generator
|KFGameContent.KFWeap_HRG_EMP_ArcGenerator
|-
|HRG Nailgun
|KFGameContent.KFWeap_HRG_Nailgun
|-
|HRG Bastion
|KFGameContent.KFWeap_HRG_BarrierRifle
|-
|HRG Stunner
|KFGameContent.KFWeap_HRG_Stunner
|-
|HRG Locust
|KFGameContent.KFWeap_HRG_Locust
|-
| colspan="2" |'''''Beserker'''''
|-
|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
|-
| colspan="2" |'''''Commando'''''
|-
|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
|-
| colspan="2" |'''''Support'''''
|-
|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
|-
| colspan="2" |'''''Field Medic'''''
|-
|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
|-
| colspan="2" |'''''Demolitionist'''''
|-
|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
|-
| colspan="2" |'''''Firebug'''''
|-
|Caulk n' Burn
|KFGameContent.KFWeap_Flame_CaulkBurn
|-
|Spitfire
|KFGameContent.KFWeap_Pistol_Flare
KFGameContent.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
|-
| colspan="2" |'''''Gunslinger'''''
|-
|1858 Revolver
|KFGameContent.KFWeap_Revolver_Rem1858
KFGameContent.KFWeap_Revolver_DualRem1858
|-
|M1911 Pistol
|KFGameContent.KFWeap_Pistol_Colt1911
KFGameContent.KFWeap_Pistol_DualColt1911
|-
|.50 Desert Eagle
|KFGameContent.KFWeap_Pistol_Deagle
KFGameContent.KFWeap_Pistol_DualDeagle
|-
|.500 Magnum Revolver
|KFGameContent.KFWeap_Revolver_SW500
KFGameContent.KFWeap_Revolver_DualSW500
|-
|AF2011-A1 Pistol
|KFGameContent.KFWeap_Pistol_AF2011
KFGameContent.KFWeap_Pistol_DualAF2011
|-
| colspan="2" |'''''Sharpshooter'''''
|-
|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
|-
| colspan="2" |'''''SWAT'''''
|-
|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
|-
| colspan="2" |'''''Survivalist'''''
|-
|Freezethrower
|KFGameContent.KFWeap_Ice_FreezeThrower
|-
|Killerwatt
|KFGameContent.KFWeap_AssaultRifle_LazerCutter
|-
| colspan="2" |'''''Other'''''
|-
|Healer Syringe
|KFGameContent.KFWeap_Healer_Syringe
|-
|Welder
|KFGameContent.KFWeap_Welder
|-
|Han's MKb42
|KFGameContent.KFWeap_AssaultRifle_DualMKb42_Hans
KFGameContent.KFWeap_AssaultRifle_DualMKb42_HansFriendlyTest
|-
|Patriarch's Minigun
|KFGameContent.KFWeap_Minigun_Patriarch
KFGameContent.KFWeap_Minigun_Patriarch_Versus
|-
|Matriarch's Tesla Beam cannon
|KFGameContent.KFWeap_PowerClaw_Matriarch
|-
|Gear
|KFGameContent.KFCarryable_Gear
|-
|Datapad
|KFGameContent.KFCarryable_Datapad
|-
| colspan="2" |'''''Knives'''''
|-
|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
|}
|}


==Spawning Commands==
==Spawning and AI Commands==


*All commands require enablecheats
*All commands require enablecheats
Line 91: Line 601:
! scope="col" |Function
! scope="col" |Function
|-
|-
|SpawnZed ZedName[String]
|SpawnHumanPawn <ISENEMY> <GODMODE> <INDEX>
|Will Spawn Braindead Zed of type given: eg: spawnzed scrake
|Spawns braindead dummy player. Does not have AI, attracts ZEDs, takes damage from ZED and player's attacks unless GOD mode set ON: SpawnHumanPawn 0 1 0.
|-
|KillBots
|Kills all entries of SpawnHumanPawn
|-
|SpawnZed <ZedName>
|Will Spawn Braindead Zed of type given: ''eg: spawnzed sc''
|-
|-
|SpawnAI ZedName[String]
|SpawnAI <ZedName>
|Will spawn Zed with AI
|Will spawn Zed with AI
|-
|-
|SpawnZedGroup ZedName[String] NumRows[Int] NumCols[Int] Spacing[Float]
|SpawnZedGroup <ZedName> <NumRows> <NumCols> <Spacing>
|Spawns Braindead Zeds in given rows and columns
|Spawns Braindead Zeds in given rows and columns with a specific distance between them
|-
|-
|SpawnZedAIGroup ZedName[String] NumRows[Int] NumCols[Int] Spacing[Float]
|SpawnZedAIGroup <ZedName> <NumRows> <NumCols> <Spacing>
|Spawns Zeds with AI in given rows and columns
|Spawns Zeds with AI in given rows and columns with a specific distance between them
|-
|-
|KillZeds
|KillZeds
|Kill all ZEDs on the map - AI and dummies.
|Kill all ZEDs on the map - AI and dummies.
|-
|PlayersOnly
|Pauses game, but allows players to move around.
Pressing F4 also works.
|-
|SpawnZEDV <ZEDNAME> <SHOULDPOSSES?>
|<small>Requires [[Versus Mode|Versus]] game to be loaded first, e.g.</small>
''open KF-BurningParis?Game=Versus''
Spawns braindead Versus ZED. Add 1 to specify if player should take control over this ZED: ''SpawnZEDV [[Siren (Killing Floor 2 VS)|Siren]] 1''
|}
|}


===Zed Codes===
===Zed Codes===
{| class="wikitable" style="width:70%;"
{| class="mw-collapsible mw-collapsed wikitable" style="width:70%;"
|-
|-
! scope="col" |ZedName Code
! scope="col" |Zed
! scope="col" |Zed
!ZedName Code
! scope="col" |Zed Code
!Zed
! scope="col" |Class Name
|-  
|-
|ClotA
| colspan="3" |'''''Common'''''
|-
|Cyst
|clot
clotc
|KFGameContent.KFPawn_ZedClot_Cyst
|-
|Slasher
|clots
|KFGameContent.KFPawn_ZedClot_Slasher
|-
|Alpha Clot
|Alpha Clot
|Hans
|clota
|Hans
|KFGameContent.KFPawn_ZedClot_Alpha
|-
|ClotS
|Slasher
|Pat
|Patriarch
|-
|ClotC
|Cyst
|KingFP
|King Fleshpound
|-
|-
|EAlp
|Rioter
|Rioter
|KingB
|ealp
|Abomination
|KFGameContent.KFPawn_ZedClot_AlphaKing
|-
|-
|B
|Bloat
|Bloat
|MiniFP
|b
|Quarterpound
|KFGameContent.KFPawn_ZedBloat
|-
|-
|G
|Gorefast
|Gorefast
|Poop
|g
|Abomination Spawn
|KFGameContent.KFPawn_ZedGorefast
|-
|-
|GF2
|Gorefiend
|Gorefiend
|
|gf2
|
|KFGameContent.KFPawn_ZedGorefastDualBlade
|-
|-
|Cr
|Crawler
|Crawler
|emp
|cr
|EDAR Trapper
|KFGameContent.KFPawn_ZedCrawler
|-
|-
|ECra
|Elite Crawler
|Elite Crawler
|laser
|ecra
|EDAR Blaster
|KFGameContent.KFPawn_ZedCrawlerKing
|-
|-
|St
|Stalker
|Stalker
|rocket
|st
|EDAR Bomber
|KFGameContent.KFPawn_ZedStalker
|-
|-
|Hu
|Husk
|Husk
|
|hu
|
|KFGameContent.KFPawn_ZedHusk
|-
|-
|Si
|Siren
|Siren
|
|si
|
|KFGameContent.KFPawn_ZedSiren
|-
|-
|Sc
|Scrake
|Scrake
|FHans
|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
|-
| colspan="3" |'''''Bosses'''''
|-
|[[Dr. Hans Volter|Hans]]
|hans
|KFGameContent.KFPawn_ZedHans
|-
|[[Patriarch (Killing Floor 2)|Patriarch]]
|pat
|KFGameContent.KFPawn_ZedPatriarch
|-
|[[King Fleshpound]]
|kingfp
|KFGameContent.KFPawn_ZedFleshpoundKing
|-
|[[Abomination]]
|kingb
|KFGameContent.KFPawn_ZedBloatKing
KFGameContent.KFPawn_ZedBloatKing_SantasWorkshop
|-
|[[Matriarch]]
|m
|KFGameContent.KFPawn_ZedMatriarch
|-
| colspan="3" |'''''Other'''''
|-
|Cyst version of Hans Volter
|hansc
|KFGameContent.KFPawn_ZedHansClot
|-
|Friendly Hans
|Friendly Hans
|fhans
|KFGameContent.KFPawn_ZedHansFriendlyTest
|-
|-
|FP
|Fleshpound
|FHusk
|Friendly Husk
|Friendly Husk
|fhusk
|KFGameContent.KFPawn_ZedHuskFriendlyTest
|}
|}
==Admin Commands==
==Admin Commands==


*
*The use of gameplay commands (god, ghost, slomo, etc) require you to prefix commands with 'admin' after logging in and enabling cheats.
**eg: ''admin god'', ''admin slomo 0.5'' or ''admin setfriendlyfirescale 0.25''


{| class="wikitable" style="width:70%;"
{| class="wikitable" style="width:70%;"
Line 194: Line 766:
! scope="col" |Function
! scope="col" |Function
|-
|-
|AdminLogin [PASSWORD]
|AdminLogin <PASSWORD>
|Login as admin
|Login as admin
|-
|-
Line 203: Line 775:
|Will pause the game instance
|Will pause the game instance
|-
|-
|SetFriendlyFireScale FFScale[Float]
|Admin SetFriendlyFireScale <FFScale>
|Sets friendly fire scale for the server. Will keep server ranked.
|Sets friendly fire scale for the server. Will keep server ranked.
|}
|}
Line 212: Line 784:
! scope="col" |Command
! scope="col" |Command
! scope="col" |Function
! scope="col" |Function
|-
|ToggleSpawning<sup>''[[Useful Console Commands (Killing Floor 2)#footnote-1|1]]''</sup>
|Allows you to test the game in PiE. Zed replacement optional is non-functional.
Toggling also allows you to skip waves.
Testing for Holdout maps requires you to enter trader first before Toggle-Skipping
|-
|EndCurrentWave<sup>''[[Useful Console Commands (Killing Floor 2)#footnote-1|1]]''</sup>
|Will complete the current wave and move to trader
|-
|SetWave <WaveNumber><sup>''[[Useful Console Commands (Killing Floor 2)#footnote-1|1]]''</sup>
|Sets the wave to the specified number
|-
|Chris
|Gives God, Loaded, UberAmmo, ToggleSpawning
|-
|-
|ToggleSplatterGun
|ToggleSplatterGun
Line 221: Line 807:
|ClearCorpses
|ClearCorpses
|Clears all corpses off the map
|Clears all corpses off the map
|-
|DisableAllScreenMessages
|Turns off errors in PiE
|-
|HideTraderPath
|Turns off Trader Path
|-
|ShowTraderPath
|Turns on Trader Path
|-
|TestPortalNearby <ZedName> <NumSpawns>
|Forces a spawn from the closest portal spawn
|-
|TestPortalAll <ZedName>
|Forces a spawn from all portals
|-
|TestPortalActive <ZedName>
|Forces a spawn for active portals
|-
|TestSpawnVolume <SpawnAmount>
|Forces the closest spawn volume to spawn Active Zeds
|-
|SetSpawnVolumeDebug <bSpawnDebug> <bDebugRating> <bDebugVisibility>
|Enables SpawnVolume debug values.
eg: just use - ''setspawnvolumedebug true true true''
|-
|SpawnTest <SpawnAmount> <bSimSpawn> <bSpawnZeds>
|Well do a test Spawn based on current user position and volume values. Use in conjuntion with the above command
eg: s''pawntest 4 true false'' - will test the spawns but not spawn anything
|-
|ShowPrecomputedVisibility
|Will show the Precomputed Visibility cells if PCV have been built
|-
|ToggleOcclusion
|Toggles the Dynamic Occlusion System
|-
|TogglePrecomputedVisibility
|Toggles Precomputed Visibility
|}
|}
{{anchor|footnote-1}}<sup>''1''</sup> ''Only available in SDK''<br />


== Debug Commands ==
==Debug Commands==
{| class="wikitable" style="width:70%;"
{| class="wikitable" style="width:70%;"
|-
|-
! scope="col" |Command
! scope="col" |Command
! scope="col" |Function
! scope="col" |Function
|-
|Stat FPS
|Displays FPS and frame render time
|-
|ShowLog
|Shows Debug Log
|-
|BugIt <DESCRIPTION>
|Creates a screenshot with accompanying .txt file with comment, map location and build.
<small>Located at: ''Documents > My Games > KillingFloor2  > KFGame > Screenshots''</small>
|-
|-
|GetAll <ClassName> <PropertyName>
|GetAll <ClassName> <PropertyName>
Line 233: Line 868:
''GetAll KFPawn_ZedScrake Health'' will print out health of all [[Scrake (Killing Floor 2)|Scrakes]]
''GetAll KFPawn_ZedScrake Health'' will print out health of all [[Scrake (Killing Floor 2)|Scrakes]]


on the map in console.Can only print out global variables and variables
on the map in console. Can only print out global variables and variables


that are replicated from server to clients.
that are replicated from server to clients.
Line 239: Line 874:
|DisplayAll <ClassName> <PropertyName>
|DisplayAll <ClassName> <PropertyName>
|Same as GetAll but processes data and displays it on screen in real time.
|Same as GetAll but processes data and displays it on screen in real time.
Warning - resource instensive procedure. Does not work online.
Warning - resource intensive procedure. Does not work online.
|-
|-
|DisplayClear
|DisplayClear
Line 246: Line 881:
|Show COLLISION
|Show COLLISION
|Toggles collision rendering. Useful to examine map / object bounds. Offline only.
|Toggles collision rendering. Useful to examine map / object bounds. Offline only.
|-
|Show VOLUMES
|Toggle Volumes.
|-
|-
|Show SPAWNVOLUMES
|Show SPAWNVOLUMES
Line 251: Line 889:
|-
|-
|Show HITZONES
|Show HITZONES
|Toggle ZED's [[Mechanics (Killing Floor 2)#ZEDs - Hitzones|hitzones]].
|Toggle ZED's [[Mechanics (Killing Floor 2)#ZEDs - Hitzones|hitzones]]. Offline only.
|-
|-
|ShowDebug Weapon
|ShowDebug Weapon
|Useful weapon starts including animation timers for reloading or melee.
|Useful onscreen weapon data including animation timers for reloading or melee.
|-
|-
|NoSpread or GoSpread
|NoSpread or GoSpread
Line 263: Line 901:
|-
|-
|SetNadeRadiusDebug 1
|SetNadeRadiusDebug 1
|Draws bounds of the current explosion in the world. 3 spheres shown each time:
|Draws radius of the current explosion in the world. 3 spheres shown each time:
Yellow - maximum radius of the explosion
Yellow - maximum radius of the explosion


Red - Clot kill radius (radius where it does 100+ damage)
Red - Clot kill radius (radius where it does 100+ damage)


Orage - half [[Mechanics (Killing Floor 2)#Weapons - Explosion falloff|falloff]] radius (radius where it does 50% or more of its initial damage).
Orange - half [[Mechanics (Killing Floor 2)#Weapons - Explosion falloff|falloff]] radius (radius where it does 50% or more of its initial damage).


Command does NOT imply [[Perks (Killing Floor 2)|perk]] bonuses (rather works with explosion default values).
Command does NOT imply [[Perks (Killing Floor 2)|perk]] bonuses (rather works with explosion's default values).
|-
|TestNukeGrenade
|Throws a grenade that will create a Nuke
|}
|}


== Input Commands ==
==Input Commands==
{| class="wikitable" style="width:70%;"
{| class="wikitable" style="width:70%;"
|-
|-
Line 285: Line 926:
IronSightsRelease, ToggleFlashlight, SelectNextWeapon, SelectPrevWeapon,
IronSightsRelease, ToggleFlashlight, SelectNextWeapon, SelectPrevWeapon,


SelectLastWeapon, SwitchWeaponGroup [1-4], QuickEmote, QuickHeal,
SelectLastWeapon, SwitchWeaponGroup [1-4], QuickEmote, QuickHeal, ToggleFriendlyUI,


TossMoney, Interact, StartVoiceChat, StopVoiceChat
TossMoney, Interact, StartVoiceChat, StopVoiceChat, PlayVoiceCommsDialog [0-9] <small>(vocalized chat messages e.g. "THANK YOU")</small>
|-
|-
|<nowiki>Executing multiplie commands with "|"</nowiki>
|<nowiki>Executing multiple commands with "|"</nowiki>
|Allows to execute multiple commands in one go E.g.
|Allows to execute multiple commands in one go E.g.
''SetBind K "TossMoney | TossMoney | TossMoney"''
''SetBind K "TossMoney | TossMoney | TossMoney"''
Line 297: Line 938:
|OnRelease event
|OnRelease event
|Allows to execute additional command on button release. E.g.
|Allows to execute additional command on button release. E.g.
''SetBind H "slomo 25 | OnRelease slomo 1"''.  For the duration of H button hold world will
''SetBind H "slomo 25 | OnRelease slomo 1"''.  For the duration of H button hold world time will


be sped up by 25 times, on release it will return back to normal speed.
speed up by 25 times, but on release it will return back to normal speed.
|}
|}
===Toggle-able key binds===
It is possible to use key binds to set up new key binds. This allows user to create toggle-able keys or execute various commands in sequential order.
*Navigate to ''My Documents / My Games / KillingFloor2 / KFGame / Config'' folder.
*Open ''KFInput.ini'' with Notepad or other text editor.
*Scroll down to the ''[KFGame.KFPlayerInput]'' block and add this at the end:
Bindings=(Name="my_phrase1",Command="say Medic! | SetBind M my_phrase2")<br>
Bindings=(Name="my_phrase2",Command="say Patch Me Up! | SetBind M my_phrase3")<br>
Bindings=(Name="my_phrase3",Command="say I'm Dying Here! | SetBind M my_phrase1")<br>
Bindings=(Name="M",Command="my_phrase1")
Without spaces between strings:
[[File:Kf2 how to make toggleable bind.jpg|frameless|665x665px]]
*Save the file. Now while in-game press M to sequentially cycle between calls for medic in following order: "Medic!" - "Patch Me Up!" - "I'm Dying Here!". The other commands can be used instead of "say", such as creating bind that will be switching weapon's recoil off and on while playing with cheats ("EnableCheats").
Bindings=(Name="recoil_off",Command="NoRecoil | SetBind X recoil_on")<br>
Bindings=(Name="recoil_on",Command="GoRecoil | SetBind X recoil_off")<br>
Bindings=(Name="X",Command="recoil_off")
{{KF2NavBox}}
{{KF2SDKNavBox}}

Latest revision as of 15:07, 22 September 2023

These are console commands for PC version of Killing Floor 2.

Introduction

  • While playing in game or within Play in Editor, press ~ to open the console window. F3 also pulls up a lightweight console.
  • Console commands are not case-sensitive.

Core Commands

Command Function
Open <Map Name> Will load the map given. Eg: open kf-burningparis

You can also load gamemodes and mutators at the end of the command eg: kf-burningparis?Game=KFGameContent.KFGameinfo_Survival

Command as well accepts short names for gamemodes: "Survival", "Weekly", "Versus", "Endless" or "Objective" and difficulty / game length modifiers, e.g.

Open KF-Farmhouse?Game=Endless?Difficulty=2?Gamelength=1

where Difficulty: 0 - Normal, 1 - Hard, 2 - Suicidal 3 - HoE and Gamelength: 0 - short, 1 - normal, 2 - long.

Open <IP> Will connect to the <IP> given

You can provide a password. eg: open 127.0.0.1?password=123

And you can also join as spectator. eg: open 127.0.0.1??spectatoronly=1

Disconnect Leaves the current session (good if you are stuck on a screen)
Reconnect Rejoins the current session you are in
Suicide Causes your player to die
RestartLevel Restarts the Level
ToggleScreenshotMode Toggles Weapons/Hands and HUD on and off.
ToggleHUD Toggles HUD

Gameplay Commands

  • All these commands require you to 'enablecheats' and will derank a play session.
  • As a server owner, it requires you to add 'admin' prefix prior to each command. After login as an administrator. See admin commands.
  • Unintended game behaviour might appear while executing these commands online, with other players on server. For testing purposes better try solo play.
  • Camera keys with 'enablecheats' on:
    • Numpad 1: First Person
    • Numpad 3: Third Person (aim lock)
    • Insert: Third Person (free camera)
    • Home: Third Person (head lock)
    • End: First Person
Command Function
EnableCheats Will open up the majority of commands for you to use
God Toggles God Mode
Demigod Toggles Demi-God Mode (will take damage but not die)
HurtMe <AMOUNT> Causes AMOUNT of the damage to player, e.g. HurtMe 20
HealMe <AMOUNT> Heals player for AMOUNT of the health
ArmorMe <AMOUNT> Gives player AMOUNT of the armor
Ghost Allows basically no-clip mode
Fly No-clip with collision and interaction
Walk Allows you to disable Ghost/Fly and walk again
ImRich Gives loadsamone
DoshMe <AMOUNT> Gives you the amount of dosh given
UberAmmo Gives lots of ammo for all weapons/grenades
Loaded Gives you most of the weapons
GiveWeapon <WeaponClass String> Gives a specific weapon using class name & location

eg: giveweapon KFGameContent.KFWeap_Shotgun_DoubleBarrel

List of Weapon Class Names

UpgradeWeapon Upgrades currently equipped weapon one level
OpenTraderMenu Open buy menu, anywhere, anytime
DramaEvent <CHANCE> <LENGTH> Chance to toggle Zed Time with colour grading.

eg: dramaevent 1 10 - will give 100% chance to trigger Zed Time for 10 seconds when entered.

Slomo <SCALE> Sets world speed. Also useful to test ZED Time skills - they all become active with

Slomo < 1 (e.g. Slomo 0.99)

ChangeSize <SIZE> Changes player size/scale. Default is 1.
SetSpeed <SPEED> Changes walk speed. Default is 1
SetJumpZ <HEIGHT> Changes Jump Height.
SetGravity <GRAVITY> Changes Gravity. Default is -1150 (negative value).

This can easily crash a game or server, stay in reasonable numbers and don't go into positives.

PowerUpHellishRage Apply effects of Hellish Powerup on player

Weapon Class Names

Weapon Class Name
Common
9mm Pistol KFGameContent.KFWeap_Pistol_9mm

KFGameContent.KFWeap_Pistol_Dual9mm

HRG 93R Pistol KFGameContent.KFWeap_HRG_93R

KFGameContent.KFWeap_HRG_93R_Dual

DLC Weapons
Doshinegun KFGameContent.KFWeap_AssaultRifle_Doshinegun
Piranha Pistol KFGameContent.KFWeap_Pistol_Bladed

KFGameContent.KFWeap_Pistol_DualBladed

Zweihander KFGameContent.KFWeap_Edged_Zweihander
Road Redeemer KFGameContent.KFWeap_Blunt_ChainBat
Ion Thruster KFGameContent.KFWeap_Edged_IonThruster
Blood Sickle KFGameContent.KFWeap_Edged_Scythe
Frost Fang KFGameContent.KFWeap_Rifle_FrostShotgunAxe
S12 Shockgun KFGameContent.KFWeap_Shotgun_S12
Sentinel KFGameContent.KFWeap_AutoTurret
FAMAS Masterkey KFGameContent.KFWeap_AssaultRifle_FAMAS
Minigun KFGameContent.KFWeap_Minigun
MG3 Shredder KFGameContent.KFWeap_LMG_MG3
Mine Reconstructor KFGameContent.KFWeap_Mine_Reconstructor
Corrupter Carbine KFGameContent.KFWeap_Rifle_ParasiteImplanter
Blunderbuss KFGameContent.KFWeap_Pistol_Blunderbuss
Gravity Imploder KFGameContent.KFWeap_GravityImploder
ZED MKIII KFGameContent.KFWeap_ZedMKIII
Thermite Bore KFGameContent.KFWeap_RocketLauncher_ThermiteBore
Rhino KFGameContent.KFWeap_Pistol_ChiappaRhino

KFGameContent.KFWeap_Pistol_ChiappaRhinoDual

Glock 18c KFGameContent.KFWeap_Pistol_G18C

KFGameContent.KFWeap_Pistol_DualG18

G36C Assault Rifle KFGameContent.KFWeap_AssaultRifle_G36C
Mosin Nagant KFGameContent.KFWeap_Rifle_MosinNagant
HV Storm Cannon KFGameContent.KFWeap_HVStormCannon
Compound Bow KFGameContent.KFWeap_Bow_CompoundBow
Riot Shield & Glock 18 KFGameContent.KFWeap_SMG_G18
Reducto Ray KFGameContent.KFWeap_ShrinkRayGun
Horzine Research Group Weapons
HRG Teslauncher KFGameContent.KFWeap_AssaultRifle_HRGTeslauncher
HRG Buckshot KFGameContent.KFWeap_HRG_Revolver_Buckshot

KFGameContent.KFWeap_HRG_Revolver_DualBuckshot

HRG Ballistic Bouncer KFGameContent.KFWeap_HRG_BallisticBouncer
HRG Blast Brawlers KFGameContent.KFWeap_HRG_BlastBrawlers
HRG Healthrower KFGameContent.KFWeap_HRG_Healthrower
HRG Medic Missile KFGameContent.KFWeap_HRG_MedicMissile
HRG Incision KFGameContent.KFWeap_Rifle_HRGIncision
HRG Vampire KFGameContent.KFWeap_HRG_Vampire
HRG Bombardier KFGameContent.KFWeap_HRG_Warthog
HRG Tommy Boom KFGameContent.KFWeap_HRG_Boomy
HRG Crossboom KFGameContent.KFWeap_HRG_Crossboom
HRG Kaboomstick KFGameContent.KFWeap_Shotgun_HRG_Kaboomstick
HRG Scorcher KFGameContent.KFWeap_Pistol_HRGScorcher
HRG Incendiary Rifle KFGameContent.KFWeap_AssaultRifle_HRGIncendiaryRifle
HRG Dragonsblaze KFGameContent.KFWeap_HRG_Dragonbreath
HRG Winterbite KFGameContent.KFWeap_Pistol_HRGWinterbite

KFGameContent.KFWeap_Pistol_DualHRGWinterbite

HRG Disrupter KFGameContent.KFWeap_HRG_Energy
HRG Beluga Beat KFGameContent.KFWeap_HRG_SonicGun
HRG Head Hunter KFGameContent.KFWeap_HRG_CranialPopper
HRG Arc Generator KFGameContent.KFWeap_HRG_EMP_ArcGenerator
HRG Nailgun KFGameContent.KFWeap_HRG_Nailgun
HRG Bastion KFGameContent.KFWeap_HRG_BarrierRifle
HRG Stunner KFGameContent.KFWeap_HRG_Stunner
HRG Locust KFGameContent.KFWeap_HRG_Locust
Beserker
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
Commando
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
Support
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
Field Medic
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
Demolitionist
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
Firebug
Caulk n' Burn KFGameContent.KFWeap_Flame_CaulkBurn
Spitfire KFGameContent.KFWeap_Pistol_Flare

KFGameContent.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
Gunslinger
1858 Revolver KFGameContent.KFWeap_Revolver_Rem1858

KFGameContent.KFWeap_Revolver_DualRem1858

M1911 Pistol KFGameContent.KFWeap_Pistol_Colt1911

KFGameContent.KFWeap_Pistol_DualColt1911

.50 Desert Eagle KFGameContent.KFWeap_Pistol_Deagle

KFGameContent.KFWeap_Pistol_DualDeagle

.500 Magnum Revolver KFGameContent.KFWeap_Revolver_SW500

KFGameContent.KFWeap_Revolver_DualSW500

AF2011-A1 Pistol KFGameContent.KFWeap_Pistol_AF2011

KFGameContent.KFWeap_Pistol_DualAF2011

Sharpshooter
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
SWAT
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
Survivalist
Freezethrower KFGameContent.KFWeap_Ice_FreezeThrower
Killerwatt KFGameContent.KFWeap_AssaultRifle_LazerCutter
Other
Healer Syringe KFGameContent.KFWeap_Healer_Syringe
Welder KFGameContent.KFWeap_Welder
Han's MKb42 KFGameContent.KFWeap_AssaultRifle_DualMKb42_Hans

KFGameContent.KFWeap_AssaultRifle_DualMKb42_HansFriendlyTest

Patriarch's Minigun KFGameContent.KFWeap_Minigun_Patriarch

KFGameContent.KFWeap_Minigun_Patriarch_Versus

Matriarch's Tesla Beam cannon KFGameContent.KFWeap_PowerClaw_Matriarch
Gear KFGameContent.KFCarryable_Gear
Datapad KFGameContent.KFCarryable_Datapad
Knives
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

Spawning and AI Commands

  • All commands require enablecheats
Command Function
SpawnHumanPawn <ISENEMY> <GODMODE> <INDEX> Spawns braindead dummy player. Does not have AI, attracts ZEDs, takes damage from ZED and player's attacks unless GOD mode set ON: SpawnHumanPawn 0 1 0.
KillBots Kills all entries of SpawnHumanPawn
SpawnZed <ZedName> Will Spawn Braindead Zed of type given: eg: spawnzed sc
SpawnAI <ZedName> Will spawn Zed with AI
SpawnZedGroup <ZedName> <NumRows> <NumCols> <Spacing> Spawns Braindead Zeds in given rows and columns with a specific distance between them
SpawnZedAIGroup <ZedName> <NumRows> <NumCols> <Spacing> Spawns Zeds with AI in given rows and columns with a specific distance between them
KillZeds Kill all ZEDs on the map - AI and dummies.
PlayersOnly Pauses game, but allows players to move around.

Pressing F4 also works.

SpawnZEDV <ZEDNAME> <SHOULDPOSSES?> Requires Versus game to be loaded first, e.g.

open KF-BurningParis?Game=Versus

Spawns braindead Versus ZED. Add 1 to specify if player should take control over this ZED: SpawnZEDV Siren 1

Zed Codes

Zed Zed Code Class Name
Common
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
Bloat b KFGameContent.KFPawn_ZedBloat
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
Bosses
Hans hans KFGameContent.KFPawn_ZedHans
Patriarch pat KFGameContent.KFPawn_ZedPatriarch
King Fleshpound kingfp KFGameContent.KFPawn_ZedFleshpoundKing
Abomination kingb KFGameContent.KFPawn_ZedBloatKing

KFGameContent.KFPawn_ZedBloatKing_SantasWorkshop

Matriarch m KFGameContent.KFPawn_ZedMatriarch
Other
Cyst version of Hans Volter hansc KFGameContent.KFPawn_ZedHansClot
Friendly Hans fhans KFGameContent.KFPawn_ZedHansFriendlyTest
Friendly Husk fhusk KFGameContent.KFPawn_ZedHuskFriendlyTest

Admin Commands

  • The use of gameplay commands (god, ghost, slomo, etc) require you to prefix commands with 'admin' after logging in and enabling cheats.
    • eg: admin god, admin slomo 0.5 or admin setfriendlyfirescale 0.25
Command Function
AdminLogin <PASSWORD> Login as admin
AdminLogout Logout as admin
Pause Will pause the game instance
Admin SetFriendlyFireScale <FFScale> Sets friendly fire scale for the server. Will keep server ranked.

Useful SDK Commands

Command Function
ToggleSpawning1 Allows you to test the game in PiE. Zed replacement optional is non-functional.

Toggling also allows you to skip waves. Testing for Holdout maps requires you to enter trader first before Toggle-Skipping

EndCurrentWave1 Will complete the current wave and move to trader
SetWave <WaveNumber>1 Sets the wave to the specified number
Chris Gives God, Loaded, UberAmmo, ToggleSpawning
ToggleSplatterGun Toggles the ability to spray splats on the map. Make sure to disable before exiting SDK.
ClearSplatters Clears all splats off the map
ClearCorpses Clears all corpses off the map
DisableAllScreenMessages Turns off errors in PiE
HideTraderPath Turns off Trader Path
ShowTraderPath Turns on Trader Path
TestPortalNearby <ZedName> <NumSpawns> Forces a spawn from the closest portal spawn
TestPortalAll <ZedName> Forces a spawn from all portals
TestPortalActive <ZedName> Forces a spawn for active portals
TestSpawnVolume <SpawnAmount> Forces the closest spawn volume to spawn Active Zeds
SetSpawnVolumeDebug <bSpawnDebug> <bDebugRating> <bDebugVisibility> Enables SpawnVolume debug values.

eg: just use - setspawnvolumedebug true true true

SpawnTest <SpawnAmount> <bSimSpawn> <bSpawnZeds> Well do a test Spawn based on current user position and volume values. Use in conjuntion with the above command

eg: spawntest 4 true false - will test the spawns but not spawn anything

ShowPrecomputedVisibility Will show the Precomputed Visibility cells if PCV have been built
ToggleOcclusion Toggles the Dynamic Occlusion System
TogglePrecomputedVisibility Toggles Precomputed Visibility

1 Only available in SDK

Debug Commands

Command Function
Stat FPS Displays FPS and frame render time
ShowLog Shows Debug Log
BugIt <DESCRIPTION> Creates a screenshot with accompanying .txt file with comment, map location and build.

Located at: Documents > My Games > KillingFloor2 > KFGame > Screenshots

GetAll <ClassName> <PropertyName> Prints out property value of all instances of specified class in console. E.g.

GetAll KFPawn_ZedScrake Health will print out health of all Scrakes

on the map in console. Can only print out global variables and variables

that are replicated from server to clients.

DisplayAll <ClassName> <PropertyName> Same as GetAll but processes data and displays it on screen in real time.

Warning - resource intensive procedure. Does not work online.

DisplayClear Clears all DisplayAll entries.
Show COLLISION Toggles collision rendering. Useful to examine map / object bounds. Offline only.
Show VOLUMES Toggle Volumes.
Show SPAWNVOLUMES Toggle ZED spawn points rendering. Offline only.
Show HITZONES Toggle ZED's hitzones. Offline only.
ShowDebug Weapon Useful onscreen weapon data including animation timers for reloading or melee.
NoSpread or GoSpread Turns random bullet spread of current weapon OFF or ON.
NoRecoil or GoRecoil Turns recoil of current weapon OFF or ON.
SetNadeRadiusDebug 1 Draws radius of the current explosion in the world. 3 spheres shown each time:

Yellow - maximum radius of the explosion

Red - Clot kill radius (radius where it does 100+ damage)

Orange - half falloff radius (radius where it does 50% or more of its initial damage).

Command does NOT imply perk bonuses (rather works with explosion's default values).

TestNukeGrenade Throws a grenade that will create a Nuke

Input Commands

Command Function
SetBind <Key> <Command> Binds command to a key. E.g. SetBind "K" "TossMoney"

Common commands: Jump, StartCrouch, StopCrouch, ToggleCrouch, IronSights,

IronSightsRelease, ToggleFlashlight, SelectNextWeapon, SelectPrevWeapon,

SelectLastWeapon, SwitchWeaponGroup [1-4], QuickEmote, QuickHeal, ToggleFriendlyUI,

TossMoney, Interact, StartVoiceChat, StopVoiceChat, PlayVoiceCommsDialog [0-9] (vocalized chat messages e.g. "THANK YOU")

Executing multiple commands with "|" Allows to execute multiple commands in one go E.g.

SetBind K "TossMoney | TossMoney | TossMoney"

will allow user to toss 150 Dosh (3 times 50)

OnRelease event Allows to execute additional command on button release. E.g.

SetBind H "slomo 25 | OnRelease slomo 1". For the duration of H button hold world time will

speed up by 25 times, but on release it will return back to normal speed.

Toggle-able key binds

It is possible to use key binds to set up new key binds. This allows user to create toggle-able keys or execute various commands in sequential order.

  • Navigate to My Documents / My Games / KillingFloor2 / KFGame / Config folder.
  • Open KFInput.ini with Notepad or other text editor.
  • Scroll down to the [KFGame.KFPlayerInput] block and add this at the end:

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

Without spaces between strings:

  • Save the file. Now while in-game press M to sequentially cycle between calls for medic in following order: "Medic!" - "Patch Me Up!" - "I'm Dying Here!". The other commands can be used instead of "say", such as creating bind that will be switching weapon's recoil off and on while playing with cheats ("EnableCheats").

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