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

From Killing Floor 2 Wiki
Jump to navigation Jump to search
m (typo)
Line 239: Line 239:
|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 251: Line 251:
|-
|-
|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
Line 263: Line 263:
|-
|-
|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


Line 270: Line 270:
Orage - half [[Mechanics (Killing Floor 2)#Weapons - Explosion falloff|falloff]] radius (radius where it does 50% or more of its initial damage).
Orage - 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).
|}
|}


Line 289: Line 289:
TossMoney, Interact, StartVoiceChat, StopVoiceChat
TossMoney, Interact, StartVoiceChat, StopVoiceChat
|-
|-
|<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 297:
|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.
|}
|}

Revision as of 10:38, 24 October 2018

Introduction

  • While playing in game or within Play in Editor, press ~ to open the console window.
  • Cheats 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

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

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

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

Gameplay Commands

  • 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).
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
DoshMe Amount[Int] Gives you the amount of dosh given
UberAmmo Gives lots of ammo for all weapons/grenades
Loaded Gives you most of the weapons
OpenTraderMenu Open buy menu, anywhere, anytime
Slomo <SCALE> Sets world speed. Also useful to test ZED Time skills - they all become active with

Slomo < 1 (e.g. Slomo 0.99)

Spawning Commands

  • All commands require enablecheats
Command Function
SpawnZed ZedName[String] Will Spawn Braindead Zed of type given: eg: spawnzed scrake
SpawnAI ZedName[String] Will spawn Zed with AI
SpawnZedGroup ZedName[String] NumRows[Int] NumCols[Int] Spacing[Float] Spawns Braindead Zeds in given rows and columns
SpawnZedAIGroup ZedName[String] NumRows[Int] NumCols[Int] Spacing[Float] Spawns Zeds with AI in given rows and columns
KillZeds Kill all ZEDs on the map - AI and dummies.

Zed Codes

ZedName Code Zed ZedName Code Zed
ClotA Alpha Clot Hans Hans
ClotS Slasher Pat Patriarch
ClotC Cyst KingFP King Fleshpound
EAlp Rioter KingB Abomination
B Bloat MiniFP Quarterpound
G Gorefast Poop Abomination Spawn
GF2 Gorefiend
Cr Crawler emp EDAR Trapper
ECra Elite Crawler laser EDAR Blaster
St Stalker rocket EDAR Bomber
Hu Husk
Si Siren
Sc Scrake FHans Friendly Hans
FP Fleshpound FHusk Friendly Husk

Admin Commands

Command Function
AdminLogin [PASSWORD] Login as admin
AdminLogout Logout as admin
Pause Will pause the game instance
SetFriendlyFireScale FFScale[Float] Sets friendly fire scale for the server. Will keep server ranked.

Useful SDK Commands

Command Function
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

Debug Commands

Command Function
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 SPAWNVOLUMES Toggle ZED spawn points rendering. Offline only.
Show HITZONES Toggle ZED's hitzones. Offline only.
ShowDebug Weapon Useful weapon starts 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)

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

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,

TossMoney, Interact, StartVoiceChat, StopVoiceChat

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.