Console Commands (Killing Floor): Difference between revisions

From Tripwire Interactive Wiki
Jump to navigation Jump to search
(Added descriptions.)
 
(14 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{KF1040}}{{Stub}}
These are all the console commands that can be used in [[Killing Floor]]. Note that not all are actually useful; some are remnants of UT code.
These are all the console commands that can be used in [[Killing Floor]]. Note that not all are actually useful; some are remnants of UT code.


Line 6: Line 4:


All those marked 'UT' are provided by UT code, although possibly updated by the game.
All those marked 'UT' are provided by UT code, although possibly updated by the game.
__TOC__
== Binding a command to a key==
To bind any command to a key simply enter the following in the console, replacing parameters where necessary:
: <code><nowiki>set input <key> <command></nowiki></code>


== Cheats ==
You may also set a command to be called when the key is released, like so:


While many of these are cheats, some of them are in place simply for debugging purposes. These are provided in the ''CheatManager'' and ''KFCheatManager'' classes.
: <code><nowiki>set input Z Behindview 1 | OnRelease Behindview 0</nowiki></code>


{| class="wikitable sortable" style="width:50%;text-align:left;"
When you exit the game, the settings will be saved to ''user.ini''.
 
== Commands ==
=== Cheats ===
 
These are provided in the ''CheatManager'' and ''KFCheatManager'' classes.
 
{| class="wikitable sortable" style="min-width:75%;text-align:left;"
! Command
! Command
! Description
! Description
Line 18: Line 29:
|-
|-
| AllAmmo || Refills all currently owned weapons. || Yes || Yes
| AllAmmo || Refills all currently owned weapons. || Yes || Yes
|- style="color:grey;"
| AllWeapons || N/A || Yes || Yes
|-
| ArmorUp || Gives full armor. || Yes || No
|-
| Arsenal 0/1 || Gives all weapons. 0-None 1-MaxAmmo || Yes || No
|-
| AssaultMe || Gives all [[Commando]] weapons. || Yes || No
|-
| Bombs 0/1 || Gives all [[Demolitions]] weapons. 0-None 1-MaxAmmo || Yes || No
|-
| Bond || Gives Golden Weapons Part I. || Yes || No
|-
| Bond2 || Gives Golden Weapons Part II. || Yes || No
|-
| Camo || Gives Camo Weapons. || Yes || No
|-
| EnableCheats || Allows cheats to be used. Disables achievements and perk progress. || Yes || Yes
|-
| FlameUp 0/1 || Gives all [[Firebug]] weapons. 0-None 1-MaxAmmo || Yes || No
|-
| Flare 0/1 || Gives the [[Flare Revolver]]. 0-None 1-MaxAmmo || Yes || No
|-
| Flares 0/1 || Gives the [[Dual Flare Revolver]]. 0-None 1-MaxAmmo || Yes || No
|-
| FrightPack 0/1 || Gives the Fright Pack Weapons. 0-None 1-MaxAmmo || Yes || No
|-
| God || Invincibility. || Yes || Yes
|-
|-
| AllWeapons || Gives all weapons. || Yes || Yes
| Heal || Heals the player as if they were injected with the [[Syringe]]. || Yes || No
|-
|-
| Amphibious || N/A || Yes || Yes
| Horde || Spawns a random horde of specimens. || Yes || No
|-
|-
| ArmorUp || Gives full armor. || Yes || No
| IJC || Gives the IJC weapons. || Yes || No
|-
|-
| Arsenal || Gives all weapons. || Yes || No
| ImRich || Gives £10000. || Yes || No
|-
|-
| AssaultMe || Gives all [[commando]] weapons. || Yes || No
| LaidLAW || Gives the [[LAW]]. || Yes || No
|-
|-
| Avatar || N/A || Yes || Yes
| Meds || Gives all [[Field Medic]] weapons. || Yes || No
|-
|-
| Backup || Spawns a friendly bot (does not work). || Yes || No
| MeleeMe 0/1 || Gives all [[Berserker]] weapons. 0-None 1-MaxAmmo || Yes || No
|-
|-
| Bombs || Gives all [[demolitions]] weapons. || Yes || No
| Nails || Gives [[Vlad The Impaler]]. || Yes || No
|-
|-
| CauseEvent ''EventName'' || Triggers an [[event]]. || Yes || Yes
| Pistols || Gives all pistols. || Yes || Yes
|-
|-
| ChangeSize ''F'' || Changes player size || Yes || Yes
| RifleMe || Gives all rifles. || Yes || No
|-
|-
| CheatView || N/A || Yes || Yes
| SMG || Gives all sub-machine guns. || Yes || No
|-
|-
| ClearAllDebugLines || Clears all staying debug lines. || No || Yes
| Shotty || Gives all [[Support Specialist]] weapons. || Yes || No
|-
|-
| DisableNextObjective || N/A || Yes || Yes
| Sniper || Gives all [[Sharpshooter]] weapons. || Yes || No
|-
|-
| EnableCheats || Allows cheats to be used. Disables achievements and perk progress. || Yes || Yes
| ZED || You've got [[Zed Eradication Device]]!. || Yes || No
|}
 
=== Cheats (Other) ===
 
Most or all of these are provided in the cheat-related classes but are used for debugging.
 
{| class="wikitable sortable" style="min-width:75%;text-align:left;"
! Command
! Description
! Cheat
! UT
|- style="color:grey;"
| Amphibious || N/A || Yes || Yes
|- style="color:grey;"
| Avatar || N/A || Yes || Yes
|-
|-
| EndPath || N/A || No || Yes
| Backup || Spawns a friendly bot (does not work). || Yes || No
|-
|-
| FlameUp || Gives all [[firebug]] weapons. || Yes || No
| CauseEvent <small>'''''EventName'''''</small> || Triggers an [[event]]. || Yes || Yes
|-
|-
| Flare || Gives the [[Flare Revolver]]. || Yes || No
| ChangeSize <small>'''''Size'''''</small> || Changes player size. || Yes || Yes
|- style="color:grey;"
| CheatView || N/A || Yes || Yes
|-
|-
| Flares || Gives the [[Dual Flare Revolver]]. || Yes || No
| ClearAllDebugLines || Clears all staying debug lines. || No || Yes
|- style="color:grey;"
| DisableNextObjective || N/A || Yes || Yes
|- style="color:grey;"
| EndPath || N/A || No || Yes
|-
|-
| Fly || Allows the player to fly around the map. || Yes || Yes
| Fly || Allows the player to fly around the map. || Yes || Yes
Line 65: Line 125:
| Ghost || Allows the player to fly and pass through walls. || Yes || Yes
| Ghost || Allows the player to fly and pass through walls. || Yes || Yes
|-
|-
| God || Invincibility. || Yes || Yes
| HugeGnome || Enlarges gnomes by 20 times their original size. || No || No
|-
|-
| Heal || Heals the player as if they were injected with the [[syringe]] || Yes || No
| Invisible || Makes your character invisible. || Yes || Yes
|- style="color:grey;"
| JumpMatch <small>'''''LadderRung'''''</small> || N/A || Yes || Yes
|-
|-
| Horde || Spawns a random horde of specimens. || Yes || No
| KillPawns || Kills all [[pawn]]s (doesn't seem to work). || Yes || Yes
|-
|-
| HugeGnome || Enlarges gnomes by 20 times their original size. || No || No
| KillZeds || Kills all [[KFMonster|specimens]]. || Yes || No
|- style="color:grey;"
| KillViewedActor || N/A || Yes || Yes
|-
|-
| IJC || Gives the IJC weapons. || Yes || No
| ListDynamicActors || Outputs a list of dynamic [[actor]]s to the log. || Yes || Yes
|- style="color:grey;"
| Loaded || N/A || Yes || Yes
|-
|-
| ImRich || Gives £10000. || Yes || No
| LockCamera || Locks the camera in its current position and rotation. || Yes || Yes
|- style="color:grey;"
| LogScriptedSequences || N/A || No || Yes
|-
|-
| Invisible || Makes your character invisible. || Yes || Yes
| MopUp || Kills all [[KFMonster|specimens]]. || Yes || No
|- style="color:grey;"
| PatRage || N/A || Yes || No
|- style="color:grey;"
| Phil || N/A || Yes || Yes
|-
|-
| JumpMatch ''ladderrung'' || N/A || Yes || Yes
| PlayersOnly || Stops time for everything but the player. || Yes || Yes
|- style="color:grey;"
| RememberSpot || N/A || Yes || Yes
|- style="color:grey;"
| ReviewJumpSpots || N/A || Yes || Yes
|-
|-
| KillPawns || Kills all [[pawn]]s. || Yes || Yes
| SetCameraDist <small>'''''Distance'''''</small> || In 3rd person view, sets camera distance from player. || Yes || Yes
|- style="color:grey;"
| SetFlash <small>'''''Value'''''</small> || N/A || Yes || Yes
|- style="color:grey;"
| SetFogB <small>'''''Value'''''</small> || N/A || Yes || Yes
|- style="color:grey;"
| SetFogG <small>'''''Value'''''</small> || N/A || Yes || Yes
|- style="color:grey;"
| SetFogR <small>'''''Value'''''</small> || N/A || Yes || Yes
|-
|-
| KillViewedActor || N/A || Yes || Yes
| SetGravity <small>'''''Value'''''</small> || Sets gravity. || Yes || Yes
|-
|-
| LaidLAW || Gives the [[LAW]] || Yes || No
| SetJumpZ <small>'''''Value'''''</small> || Sets jump height. || Yes || Yes
|- style="color:grey;"
| SetSpeed || N/A || Yes || Yes
|- style="color:grey;"
| SkipMatch || N/A || Yes || Yes
|-
|-
| ListDynamicActors || Outputs a list of dynamic [[actor]]s to the log. || Yes || Yes
| SloMo <small>'''''Speed'''''</small> || Sets the game speed. Zed time overrides this when it occurs. || Yes || Yes
|-
|-
| Loaded || N/A || Yes || Yes
| Summon <small>'''''Class'''''</small> || Spawns a specimen of the selected class where the player is pointing. || Yes || Yes
|-
|-
| LockCamera || Locks the camera in its current position and rotation. || Yes || Yes
| Teleport || Teleports to the location the player is looking at. || Yes || Yes
|- style="color:grey;"
| ViewActor || N/A || Yes || Yes
|- style="color:grey;"
| ViewBot || N/A || Yes || Yes
|- style="color:grey;"
| ViewClass || N/A || Yes || Yes
|- style="color:grey;"
| ViewFlag || N/A || Yes || Yes
|- style="color:grey;"
| ViewPlayer || N/A || Yes || Yes
|- style="color:grey;"
| ViewSelf || N/A || Yes || Yes
|- style="color:grey;"
| ViewTurret  || N/A || Yes || Yes
|- style="color:grey;"
| ViewZombie || N/A || Yes || No
|- style="color:grey;"
| Walk || N/A || Yes || Yes
|- style="color:grey;"
| WeakObjectives || N/A || Yes || Yes
|- style="color:grey;"
| WinMatch || N/A || Yes || Yes
|-
|-
| LogScriptedSequences || N/A || No || Yes
| WriteToLog <small>'''''Param'''''</small> || Writes ''Param'' to the log file. || No || Yes
|- style="color:grey;"
| ruler || N/A || Yes || Yes  
|}
 
=== Console ===
 
These are provided in the ''Console'' and ''ExtendedConsole'' classes.
 
{| class="wikitable sortable" style="min-width:50%;text-align:left;"
! Command
! Description
|-
|-
| Meds || Gives all [[field medic]] weapons. || Yes || No
| AddCurrentToFavorites || Adds the current server to the favorites list.
|-
|-
| MeleeMe || Gives all [[berserker]] weapons. || Yes || No
| CLS || Clears the console.
|-
|-
| MopUp || Kills all specimens. || Yes || No
| ConsoleClose || Closes the console.
|-
|-
| Nails || Gives  [[Vlad The Impaler]] || Yes || No
| ConsoleOpen || Opens the console.
|-
|-
| PatRage || N/A || Yes || No
| ConsoleToggle || Toggles the console.
|-
|-
| Phil || N/A || Yes || Yes
| DebugTabOrder ||?
|-
|-
| Pistols || Gives all pistols. || Yes || Yes
| DLO <small>'''''ClassName, ClassType'''''</small>  || Calls ''DynamicLoadObject()'' for the selected class name and type.
|-
|-
| PlayersOnly || Stops time for everything but the player. || Yes || Yes
| DumpLoadingHints <small>'''''Param'''''</small> || Dumps loading hints for all game types.
|-
|-
| RememberSpot || N/A || Yes || Yes
| DumpPlayInfo <small>'''''Group'''''</small> || Dumps the settings of any playinfo objects (debugging).
|-
|-
| ReviewJumpSpots || N/A || Yes || Yes
| DumpRecords <small>'''''Type'''''</small> || Dumps cache records.
|-
|-
| RifleMe || Gives all rifles. || Yes || No
| InGameChat || ?
|-
|-
| SMG || Gives all sub-machine guns. || Yes || No
| MusicMenu || Opens the native music player.
|- style="color:grey;"
| PlayWaitingGame || N/A
|-
|-
| SetCameraDist ''F'' || In 3rd person view, sets camera distance from player. || Yes || Yes
| ServerInfo || ?
|-
|-
| SetFlash ''F'' || N/A || Yes || Yes
| SpeechMenuToggle || Opens the voice commands menu.
|-
|-
| SetFogB ''F'' || N/A || Yes || Yes
| StartRollingDemo || ?
|-
|-
| SetFogG ''F'' || N/A || Yes || Yes
| StopRollingDemo || ?
|-
|-
| SetFogR ''F'' || N/A || Yes || Yes
| Talk || Opens the chat input box with the 'Say' prefix.
|-
|-
| SetGravity ''F'' || Sets gravity. || Yes || Yes
| TeamChatOnly ||?
|-
|-
| SetJumpZ ''F'' || Sets jump height. || Yes || Yes
| TeamTalk || Opens the chat input box with the 'TeamSay' prefix.
|-
|-
| SetSpeed || N/A || Yes || Yes
| Type || Opens the chat input box without the 'Say' prefix, so that console commands can be entered directly.
|-
|}
| Shotty || Gives all [[support specialist]] weapons. || Yes || No
 
=== HUD ===
 
These are provided in the [[HUD]] and [[HUDKillingFloor]] classes.
 
{| class="wikitable sortable" style="min-width:50%;text-align:left;"
! Command
! Description
|- style="color:grey;"
| GrowHUD || N/A
|-
|-
| SkipMatch || N/A || Yes || Yes
| HideScores || Hides the tab window.
|- style="color:grey;"
| NextStats || N/A
|-
|-
| SloMo ''Speed'' || Sets the game speed. || Yes || Yes
| ShowDebug || Shows debug information for the player.
|-
|-
| Sniper || Gives all [[sharpshooter]] weapons. || Yes || No
| ShowHud || Shows/hides the HUD.
|-
|-
| Summon ''Class'' || Spawns a specimen of the selected class where the player is pointing. || Yes || Yes
| ShowScores || Shows the tab window.
|- style="color:grey;"
| ShowStats || N/A
|- style="color:grey;"
| ShrinkHUD || N/A
|}
 
=== Debugging ===
 
These are provided natively by the engine.
 
{| class="wikitable sortable" style="min-width:50%;text-align:left;"
! Command
! Description
|-
|-
| Teleport || Teleports to the location the player is looking at || Yes || Yes
| ShowLog || Opens the log in a separate window, as if the game was launched with the <code>-log</code> command line parameter.
|-
|-
| ViewActor || N/A || Yes || Yes
| Set <small>'''''Class, Variable, Value'''''</small> || Sets the value of all objects of a given class (and all of its subclasses) and the class default values themselves to ''Value''.
|-
|-
| ViewBot || N/A || Yes || Yes
| EditActor Class=<small>'''''Class'''''</small> || Displays an editable property sheet for the property values of the nearest actor of the given class. Only works in windowed mode.
|-
|-
| ViewClass || N/A || Yes || Yes
| EditActor Name=<small>'''''Name'''''</small> || Displays an editable property sheet for the property values of the given actor. You may have to run the game with the <code>-makenames</code> command line parameter to have it assign unique names to every dynamically spawned actor.
|-
|-
| ViewFlag || N/A || Yes || Yes
| EditDefault Class=<small>'''''Class'''''</small> || Displays an editable property sheet for the default values of the given class.
|-
|-
| ViewPlayer || N/A || Yes || Yes
| EditObj <small>'''''ObjName'''''</small> || Displays an editable property sheet for the given object. Like ''EditActor'', but works for non-actor objects too.
|}
 
=== Admin ===
 
These are admin commands, used for managing players and the game itself. These are provided in the ''AdminBase'' class.
 
{| class="wikitable sortable" style="min-width:50%;text-align:left;"
! Command
! Description
|-
|-
| ViewSelf || N/A || Yes || Yes
| PlayerList || Outputs a list of players to the log.
|-
|-
| ViewTurret  || N/A || Yes || Yes
| Kick <small>'''''Cmd, Extra'''''</small> || Kicks the selected player.
|-
|-
| ViewZombie || N/A || Yes || No
| KickBan <small>'''''Player'''''</small> || Kicks and bans the selected player.
|-
|-
| Walk || N/A || Yes || Yes
| RestartMap || Restarts the map.
|-
|-
| WeakObjectives || N/A || Yes || Yes
| NextMap || Loads the next map in the list.
|-
|-
| WinMatch || N/A || Yes || Yes
| Map ''Map'' || Loads the selected map.
|-
|-
| WriteToLog ''Param'' || Writes ''Param'' to the log file. || No || Yes
| Maplist <small>'''''Cmd, Extra'''''</small> || ?
|-
|-
| ruler || N/A || Yes || Yes
| Switch <small>'''''URL'''''</small> || ?
|}
|}


== Admin ==
=== Player ===


These are admin commands, used for managing players and the game itself. These are provided in the ''AdminBase'' class.
Most of these functions are provided in the [[pawn]] and [[controller]] classes, and related classes.


{| class="wikitable sortable" style="width:50%;text-align:left;"
{| class="wikitable sortable" style="min-width:50%;text-align:left;"
! Command
! Command
! Description
! Description
! UT
|- style="color:grey;"
|ActivateInventoryItem ''InvItem'' || N/A
|- style="color:grey;"
|ActivateItem || N/A
|-
|Admin <small>'''''CommandLine'''''</small> || Executes an administrative console command on the server.
|-
| AdminDebug <small>'''''CommandLine'''''</small> || Same as above.
|- style="color:grey;"
| AdminGUI || N/A
|-
| AdminLogin <small>'''''User, Pass'''''</small> || Logs in as admin.
|-
| AdminLoginSilent <small>'''''User, Pass'''''</small> || ?
|-
| AdminLogout || Logs out as admin.
|- style="color:grey;"
| AdminMenu <small>'''''CommandLine'''''</small> || N/A
|-
| AdminSay <small>'''Msg'''</small> || Sends a chat message to all players, as administrator. The message appears in the middle of the screen, rather than in the chat area.
|-
| AltFire || Secondary fire.
|- style="color:grey;"
| BasePath <small>'''''Num'''''</small> || N/A.
|-
| BehindView <small>'''''bEnable'''''</small> || Call with ''true'' to enable 3rd person view, or ''false'' to enable 1st person. Disables perk progression and achievements.
|-
| Bloom || Toggles bloom on/off.
|-
| BWEffect <small>'''''Amount'''''</small> || Enables black-and-white mode, with the intensity of the effect specified as a value between 0 and 1.0. Disables perk progression and achievements.
|-
| ChangeCharacter <small>'''''NewCharacter, optional inClass'''''</small> || ?
|- style="color:grey;"
| ChangeTeam <small>'''''TeamNum'''''</small> || N/A
|-
| ChatDebug || ?
|-
| Check || ?
|-
| CheckPriority || Shows (in the log, console, and message area) the priority of all weapons the player is holding.
|-
| ClearProgressMessages || ?
|-
| Command <small>'''''RecognizedString'''''</small> || ?
|-
| CreateCameraEffect <small>'''''EffectClass'''''</small> || ?
|-
| Crouch || Crouch.
|-
| DisableVoiceChat || Disables voice chat.
|- style="color:grey;"
| DropFlag || N/A
|-
| EnableVoiceChat || Enables voice chat.
|-
| Fire || Primary fire.
|-
| ForceReload || Reloads the player's weapon.
|-
| FOV <small>'''''Angle'''''</small> || Changes the camera's field of view if the value passed is 80.0 or higher. Only works in single player or as a spectator.
|-
| FreeCamera <small>'''''bOn'''''</small> || Enables/disables freelook mode.
|-
| GetWeapon <small>'''''WeaponClass'''''</small> || Switches to the specified weapon. See the complete list of weapon class names [[Weapons (Killing_Floor)#Technical|here]].
|- style="color:grey;"
| GetWeaponStats || N/A
|- style="color:grey;"
| InvertLook || N/A
|-
| InvertMouse <small>'''''bEnable'''''</small> (optional) || Inverts the mouse's Y axis. If set to ''true'', it sets the mouse to inverted mode. If set to ''false'', it sets the mouse to regular mode.
|-
| IronSightZoomIn || Aims down the sights if the current weapon has them.
|-
| IronSightZoomOut || Stop aiming down the sights.
|-
| Join <small>'''''ChanName, ChanPwd'''''</small> || ?
|- style="color:grey;"
| Jump <small>'''''Valud'''''</small> || N/A
|- style="color:grey;"
| KillAll <small>'''''Class'''''</small> || N/A
|-
| KillBots <small>'''''Num'''''</small> || ?
|-
| L33TPhrase <small>'''''PhraseNum'''''</small> || ?
|-
| Leave <small>'''''ChannelTitle'''''</small> || ?
|-
| LocalTravel <small>'''''URL'''''</small> || Local-equivalent of server travel.
|-
| Mutate <small>'''''MutateString'''''</small> || Calls each loaded mutator's ''Mutate()'' function and passes the string entered.
|-
| NetDebugBot || ?
|-
| NextItem || ?
|-
| NextWeapon || ?
|-
| Pause || Pauses/unpauses the game.
|-
| PipedSwitchWeapon <small>'''''Group'''''</small> || Same as ''SwitchWeapon''.
|- style="color:grey;"
| PlayVehicleHorn <small>'''''HornIndex'''''</small> || N/A
|-
| postfxbloom_blurmult <small>'''''Value'''''</small> || Used for adjusting bloom settings. Valid range: 1.0 - 2.0 (default 1.5).
|-
| postfxbloom_bpcontrast <small>'''''Value'''''</small> || Used for adjusting bloom settings. Valid range: 0.0 - 4.0 (default 3.0).
|-
| postfxbloom_gpucalcs || Used for adjusting bloom settings.
|-
| postfxbloom_ratio <small>'''''Value'''''</small> || Used for adjusting bloom settings. Valid range: 0.0 - 1.0 (default 0.5).
|-
| postfxbloom_ratiomax <small>'''''Value'''''</small> || Used for adjusting bloom settings. Valid range: 0.0 - 1.0 (default 0.5).
|-
| postfxbloom_ratiomin <small>'''''Value'''''</small> || Used for adjusting bloom settings. Valid range: 0.0 - 1.0 (default 0.0).
|-
| postfxbloom_togglegpu || Used for adjusting bloom settings.
|- style="color:grey;"
| PrevItem || N/A
|- style="color:grey;"
| PrevWeapon || N/A
|-
| QuickHeal || Quickheal.
|- style="color:grey;"
| QuickLoad || N/A
|- style="color:grey;"
| QuickSave || N/A
|- style="color:grey;"
| RandomTaunt || N/A
|-
| ReloadMeNow || Reloads the player's weapon.
|-
| RestartLevel || Restarts the map.
|-
| Say <small>'''''Msg'''''</small> || Sends a chat message.
|- style="color:grey;"
| SetAutoTaunt(bool Value) || N/A
|-
| SetChatPassword(string NewPassword) || ?
|-
| SetFlashScaling <small>'''''Value'''''</small> || ?
|-
| SetMouseAccel <small>'''''Value'''''</small> || Sets mouse acceleration.
|-
| SetMouseSmoothing <small>'''''Mode'''''</small> || ?
|- style="color:grey;"
| SetName(coerce string S) || N/A
|-
| SetSensitivity <small>'''''Value'''''</small> || Sets the mouse sensitivity.
|-
| SetSpectateSpeed <small>'''''Value'''''</small> || ?
|-
| SetVoice <small>'''''VoicePack'''''</small>  || Sets your character's voice pack. Valid voices are ''KFMod.KFVoicePack'', ''KFMod.KFVoicePackTwo'', ''KFMod.KFVoicePackThree'', and ''KFMod.KFVoicePackFemale''. Does not seem to work online.
|-
| SetWeaponHand <small>'''''Hand'''''</small>  || Setting this to ''hidden'' hides the player's current weapon.
|-
| ShowAI || Shows detailed debugging information for the currently viewed pawn.
|-
| ShowAliases || Outputs a list of bind aliases to the log.
|-
| ShowBindings || Outputs a list of bindings to the log.
|-
| ShowFakeNotification || Shows a fake notification, used to test if notifications are working properly.
|-
| ShowGun || Shows/hides the current weapon.
|-
| ShowKickMenu || Opens the kick menu. Only works online when kick voting is enabled.
|-
| ShowMenu || Shows ESC menu.
|-
| ShowVoteMenu || Opens the voting menu.  Only works online when voting is enabled.
|-
| PlayerCollisionDebug || Shows/hides player collision areas.
|- style="color:grey;"
| SoakBots || N/A
|- style="color:grey;"
| SpawnTargets || N/A
|-
| Speak <small>'''''ChannelTitle'''''</small> || ?
|-
| SpeakDefault || ?
|-
| SpeakLast || ?
|-
| SpecViewGoal || ?
|-
| Speech <small>'''''Type, Index, Callsign'''''</small> || Uses a voice command. Type should be set to ''AUTO'', and ''Index'' to the relevant index value of the voice command you want.
|-
| Suicide || Suicide.
|-
| SwitchLevel <small>'''''URL'''''</small> || Changes map.
|- style="color:grey;"
| SwitchTeam || N/A
|-
| SwitchToBestMeleeWeapon || Switches to your best melee weapon.
|-
| SwitchToBestWeapon || Switches to your best weapon.
|-
| SwitchToLastWeapon || Switches to the last weapon held.
|-
| SwitchWeapon <small>'''''Group'''''</small> || Switches to a weapon of the particular weapon group chosen.
|- style="color:grey;"
| Taunt <small>'''''Sequence'''''</small> || N/A
|-
| TeamSay <small>'''''Msg'''''</small> || Sends a chat message to your team only.
|- style="color:grey;"
| TestEye || N/A
|-
| ThrowGrenade || Throws a grenade.
|-
| ThrowWeapon || Drops your current weapon.
|-
| ToggleBehindView || Toggles 1st/3rd person camera mode.
|- style="color:grey;"
| ToggleBuddyHudDebug || N/A
|-
| ToggleDuck || Toggle duck.
|-
|-
| PlayerList || N/A || Yes
| ToggleFlashlight || Toggles the flashlight.
|-
|-
| Kick ''Cmd, Extra'' || N/A || Yes
| ToggleIronSights || Toggles iron sights.
|-
|-
| KickBan ''s''|| N/A || Yes
| TogglePathToTrader || Toggles showing path to the trader.
|-
|-
| RestartMap || N/A || Yes
| TogglePlayerAttract || ?
|-
|-
| NextMap || N/A || Yes
| ToggleScreenShotMode || Toggles screenshot mode, which hides the current weapon and all HUD elements.
|- style="color:grey;"
| ToggleTorch || N/A
|- style="color:grey;"
| ToggleXHair || N/A
|- style="color:grey;"
| ToggleZedHudDebug || N/A
|-
|-
| Map ''Cmd'' || N/A || Yes
| TossCash <small>'''''Amount'''''</small> || Throws the specified amount of money, or £50 if ''Amount'' is left blank.
|-
|-
| Maplist ''Cmd, Extra'' || N/A || Yes
| UnCrouch || Uncrouches.
|-
|-
| Switch ''URL'' || N/A || Yes
| Use || Uses doors or interactive items.
|- style="color:grey;"
| xSpeech <small>'''''type, int Index, SquadLeader'''''</small> || N/A
|}
|}


{{KFNavBox}}
{{KFNavBox}}
{{KF1043}}

Latest revision as of 01:17, 27 May 2014

These are all the console commands that can be used in Killing Floor. Note that not all are actually useful; some are remnants of UT code.

All of those marked 'cheat' require that you first enable cheats using the enablecheats command.

All those marked 'UT' are provided by UT code, although possibly updated by the game.

Binding a command to a key

To bind any command to a key simply enter the following in the console, replacing parameters where necessary:

set input <key> <command>

You may also set a command to be called when the key is released, like so:

set input Z Behindview 1 | OnRelease Behindview 0

When you exit the game, the settings will be saved to user.ini.

Commands

Cheats

These are provided in the CheatManager and KFCheatManager classes.

Command Description Cheat UT
AllAmmo Refills all currently owned weapons. Yes Yes
AllWeapons N/A Yes Yes
ArmorUp Gives full armor. Yes No
Arsenal 0/1 Gives all weapons. 0-None 1-MaxAmmo Yes No
AssaultMe Gives all Commando weapons. Yes No
Bombs 0/1 Gives all Demolitions weapons. 0-None 1-MaxAmmo Yes No
Bond Gives Golden Weapons Part I. Yes No
Bond2 Gives Golden Weapons Part II. Yes No
Camo Gives Camo Weapons. Yes No
EnableCheats Allows cheats to be used. Disables achievements and perk progress. Yes Yes
FlameUp 0/1 Gives all Firebug weapons. 0-None 1-MaxAmmo Yes No
Flare 0/1 Gives the Flare Revolver. 0-None 1-MaxAmmo Yes No
Flares 0/1 Gives the Dual Flare Revolver. 0-None 1-MaxAmmo Yes No
FrightPack 0/1 Gives the Fright Pack Weapons. 0-None 1-MaxAmmo Yes No
God Invincibility. Yes Yes
Heal Heals the player as if they were injected with the Syringe. Yes No
Horde Spawns a random horde of specimens. Yes No
IJC Gives the IJC weapons. Yes No
ImRich Gives £10000. Yes No
LaidLAW Gives the LAW. Yes No
Meds Gives all Field Medic weapons. Yes No
MeleeMe 0/1 Gives all Berserker weapons. 0-None 1-MaxAmmo Yes No
Nails Gives Vlad The Impaler. Yes No
Pistols Gives all pistols. Yes Yes
RifleMe Gives all rifles. Yes No
SMG Gives all sub-machine guns. Yes No
Shotty Gives all Support Specialist weapons. Yes No
Sniper Gives all Sharpshooter weapons. Yes No
ZED You've got Zed Eradication Device!. Yes No

Cheats (Other)

Most or all of these are provided in the cheat-related classes but are used for debugging.

Command Description Cheat UT
Amphibious N/A Yes Yes
Avatar N/A Yes Yes
Backup Spawns a friendly bot (does not work). Yes No
CauseEvent EventName Triggers an event. Yes Yes
ChangeSize Size Changes player size. Yes Yes
CheatView N/A Yes Yes
ClearAllDebugLines Clears all staying debug lines. No Yes
DisableNextObjective N/A Yes Yes
EndPath N/A No Yes
Fly Allows the player to fly around the map. Yes Yes
FreeCamera Changes to free camera mode. Yes Yes
FreezeAll Stops time for everything but the player. Yes Yes
FreezeFrame delay Pauses the game after a set delay. Yes Yes
Ghost Allows the player to fly and pass through walls. Yes Yes
HugeGnome Enlarges gnomes by 20 times their original size. No No
Invisible Makes your character invisible. Yes Yes
JumpMatch LadderRung N/A Yes Yes
KillPawns Kills all pawns (doesn't seem to work). Yes Yes
KillZeds Kills all specimens. Yes No
KillViewedActor N/A Yes Yes
ListDynamicActors Outputs a list of dynamic actors to the log. Yes Yes
Loaded N/A Yes Yes
LockCamera Locks the camera in its current position and rotation. Yes Yes
LogScriptedSequences N/A No Yes
MopUp Kills all specimens. Yes No
PatRage N/A Yes No
Phil N/A Yes Yes
PlayersOnly Stops time for everything but the player. Yes Yes
RememberSpot N/A Yes Yes
ReviewJumpSpots N/A Yes Yes
SetCameraDist Distance In 3rd person view, sets camera distance from player. Yes Yes
SetFlash Value N/A Yes Yes
SetFogB Value N/A Yes Yes
SetFogG Value N/A Yes Yes
SetFogR Value N/A Yes Yes
SetGravity Value Sets gravity. Yes Yes
SetJumpZ Value Sets jump height. Yes Yes
SetSpeed N/A Yes Yes
SkipMatch N/A Yes Yes
SloMo Speed Sets the game speed. Zed time overrides this when it occurs. Yes Yes
Summon Class Spawns a specimen of the selected class where the player is pointing. Yes Yes
Teleport Teleports to the location the player is looking at. Yes Yes
ViewActor N/A Yes Yes
ViewBot N/A Yes Yes
ViewClass N/A Yes Yes
ViewFlag N/A Yes Yes
ViewPlayer N/A Yes Yes
ViewSelf N/A Yes Yes
ViewTurret N/A Yes Yes
ViewZombie N/A Yes No
Walk N/A Yes Yes
WeakObjectives N/A Yes Yes
WinMatch N/A Yes Yes
WriteToLog Param Writes Param to the log file. No Yes
ruler N/A Yes Yes

Console

These are provided in the Console and ExtendedConsole classes.

Command Description
AddCurrentToFavorites Adds the current server to the favorites list.
CLS Clears the console.
ConsoleClose Closes the console.
ConsoleOpen Opens the console.
ConsoleToggle Toggles the console.
DebugTabOrder ?
DLO ClassName, ClassType Calls DynamicLoadObject() for the selected class name and type.
DumpLoadingHints Param Dumps loading hints for all game types.
DumpPlayInfo Group Dumps the settings of any playinfo objects (debugging).
DumpRecords Type Dumps cache records.
InGameChat ?
MusicMenu Opens the native music player.
PlayWaitingGame N/A
ServerInfo ?
SpeechMenuToggle Opens the voice commands menu.
StartRollingDemo ?
StopRollingDemo ?
Talk Opens the chat input box with the 'Say' prefix.
TeamChatOnly ?
TeamTalk Opens the chat input box with the 'TeamSay' prefix.
Type Opens the chat input box without the 'Say' prefix, so that console commands can be entered directly.

HUD

These are provided in the HUD and HUDKillingFloor classes.

Command Description
GrowHUD N/A
HideScores Hides the tab window.
NextStats N/A
ShowDebug Shows debug information for the player.
ShowHud Shows/hides the HUD.
ShowScores Shows the tab window.
ShowStats N/A
ShrinkHUD N/A

Debugging

These are provided natively by the engine.

Command Description
ShowLog Opens the log in a separate window, as if the game was launched with the -log command line parameter.
Set Class, Variable, Value Sets the value of all objects of a given class (and all of its subclasses) and the class default values themselves to Value.
EditActor Class=Class Displays an editable property sheet for the property values of the nearest actor of the given class. Only works in windowed mode.
EditActor Name=Name Displays an editable property sheet for the property values of the given actor. You may have to run the game with the -makenames command line parameter to have it assign unique names to every dynamically spawned actor.
EditDefault Class=Class Displays an editable property sheet for the default values of the given class.
EditObj ObjName Displays an editable property sheet for the given object. Like EditActor, but works for non-actor objects too.

Admin

These are admin commands, used for managing players and the game itself. These are provided in the AdminBase class.

Command Description
PlayerList Outputs a list of players to the log.
Kick Cmd, Extra Kicks the selected player.
KickBan Player Kicks and bans the selected player.
RestartMap Restarts the map.
NextMap Loads the next map in the list.
Map Map Loads the selected map.
Maplist Cmd, Extra ?
Switch URL ?

Player

Most of these functions are provided in the pawn and controller classes, and related classes.

Command Description
ActivateInventoryItem InvItem N/A
ActivateItem N/A
Admin CommandLine Executes an administrative console command on the server.
AdminDebug CommandLine Same as above.
AdminGUI N/A
AdminLogin User, Pass Logs in as admin.
AdminLoginSilent User, Pass ?
AdminLogout Logs out as admin.
AdminMenu CommandLine N/A
AdminSay Msg Sends a chat message to all players, as administrator. The message appears in the middle of the screen, rather than in the chat area.
AltFire Secondary fire.
BasePath Num N/A.
BehindView bEnable Call with true to enable 3rd person view, or false to enable 1st person. Disables perk progression and achievements.
Bloom Toggles bloom on/off.
BWEffect Amount Enables black-and-white mode, with the intensity of the effect specified as a value between 0 and 1.0. Disables perk progression and achievements.
ChangeCharacter NewCharacter, optional inClass ?
ChangeTeam TeamNum N/A
ChatDebug ?
Check ?
CheckPriority Shows (in the log, console, and message area) the priority of all weapons the player is holding.
ClearProgressMessages ?
Command RecognizedString ?
CreateCameraEffect EffectClass ?
Crouch Crouch.
DisableVoiceChat Disables voice chat.
DropFlag N/A
EnableVoiceChat Enables voice chat.
Fire Primary fire.
ForceReload Reloads the player's weapon.
FOV Angle Changes the camera's field of view if the value passed is 80.0 or higher. Only works in single player or as a spectator.
FreeCamera bOn Enables/disables freelook mode.
GetWeapon WeaponClass Switches to the specified weapon. See the complete list of weapon class names here.
GetWeaponStats N/A
InvertLook N/A
InvertMouse bEnable (optional) Inverts the mouse's Y axis. If set to true, it sets the mouse to inverted mode. If set to false, it sets the mouse to regular mode.
IronSightZoomIn Aims down the sights if the current weapon has them.
IronSightZoomOut Stop aiming down the sights.
Join ChanName, ChanPwd ?
Jump Valud N/A
KillAll Class N/A
KillBots Num ?
L33TPhrase PhraseNum ?
Leave ChannelTitle ?
LocalTravel URL Local-equivalent of server travel.
Mutate MutateString Calls each loaded mutator's Mutate() function and passes the string entered.
NetDebugBot ?
NextItem ?
NextWeapon ?
Pause Pauses/unpauses the game.
PipedSwitchWeapon Group Same as SwitchWeapon.
PlayVehicleHorn HornIndex N/A
postfxbloom_blurmult Value Used for adjusting bloom settings. Valid range: 1.0 - 2.0 (default 1.5).
postfxbloom_bpcontrast Value Used for adjusting bloom settings. Valid range: 0.0 - 4.0 (default 3.0).
postfxbloom_gpucalcs Used for adjusting bloom settings.
postfxbloom_ratio Value Used for adjusting bloom settings. Valid range: 0.0 - 1.0 (default 0.5).
postfxbloom_ratiomax Value Used for adjusting bloom settings. Valid range: 0.0 - 1.0 (default 0.5).
postfxbloom_ratiomin Value Used for adjusting bloom settings. Valid range: 0.0 - 1.0 (default 0.0).
postfxbloom_togglegpu Used for adjusting bloom settings.
PrevItem N/A
PrevWeapon N/A
QuickHeal Quickheal.
QuickLoad N/A
QuickSave N/A
RandomTaunt N/A
ReloadMeNow Reloads the player's weapon.
RestartLevel Restarts the map.
Say Msg Sends a chat message.
SetAutoTaunt(bool Value) N/A
SetChatPassword(string NewPassword) ?
SetFlashScaling Value ?
SetMouseAccel Value Sets mouse acceleration.
SetMouseSmoothing Mode ?
SetName(coerce string S) N/A
SetSensitivity Value Sets the mouse sensitivity.
SetSpectateSpeed Value ?
SetVoice VoicePack Sets your character's voice pack. Valid voices are KFMod.KFVoicePack, KFMod.KFVoicePackTwo, KFMod.KFVoicePackThree, and KFMod.KFVoicePackFemale. Does not seem to work online.
SetWeaponHand Hand Setting this to hidden hides the player's current weapon.
ShowAI Shows detailed debugging information for the currently viewed pawn.
ShowAliases Outputs a list of bind aliases to the log.
ShowBindings Outputs a list of bindings to the log.
ShowFakeNotification Shows a fake notification, used to test if notifications are working properly.
ShowGun Shows/hides the current weapon.
ShowKickMenu Opens the kick menu. Only works online when kick voting is enabled.
ShowMenu Shows ESC menu.
ShowVoteMenu Opens the voting menu. Only works online when voting is enabled.
PlayerCollisionDebug Shows/hides player collision areas.
SoakBots N/A
SpawnTargets N/A
Speak ChannelTitle ?
SpeakDefault ?
SpeakLast ?
SpecViewGoal ?
Speech Type, Index, Callsign Uses a voice command. Type should be set to AUTO, and Index to the relevant index value of the voice command you want.
Suicide Suicide.
SwitchLevel URL Changes map.
SwitchTeam N/A
SwitchToBestMeleeWeapon Switches to your best melee weapon.
SwitchToBestWeapon Switches to your best weapon.
SwitchToLastWeapon Switches to the last weapon held.
SwitchWeapon Group Switches to a weapon of the particular weapon group chosen.
Taunt Sequence N/A
TeamSay Msg Sends a chat message to your team only.
TestEye N/A
ThrowGrenade Throws a grenade.
ThrowWeapon Drops your current weapon.
ToggleBehindView Toggles 1st/3rd person camera mode.
ToggleBuddyHudDebug N/A
ToggleDuck Toggle duck.
ToggleFlashlight Toggles the flashlight.
ToggleIronSights Toggles iron sights.
TogglePathToTrader Toggles showing path to the trader.
TogglePlayerAttract ?
ToggleScreenShotMode Toggles screenshot mode, which hides the current weapon and all HUD elements.
ToggleTorch N/A
ToggleXHair N/A
ToggleZedHudDebug N/A
TossCash Amount Throws the specified amount of money, or £50 if Amount is left blank.
UnCrouch Uncrouches.
Use Uses doors or interactive items.
xSpeech type, int Index, SquadLeader N/A
All information has been verified with update 1043