Running a Server

Killing Floor Admin Console Commands

This is based on the list of UT2004 commands (KF was originally a mod for ut2004 and it still shares the same engine - UE2.5). Some of them might be invalid, so please just report them and I'll update the list.

A teammate fighting specimens on a checkered floor A teammate covers the room while specimens rush in.

1. Getting to the Console

- To pop up the console, press ~ (tilde) or use the quick console (which displays a single line) that is available through the Tab key. - Console commands are not case sensitive. ADDBOTS, addbots and AddBots work alike.

2. KF Admin Codes

- adminlogin pass - adminlogin user pass

- adminlogout

admin addbots [amount] admin killbots admin killbots [amount]

admin kick [playername] admin kickban [playername]

admin adminsay [your message]

admin switchlevel [mapname]

admin switchlevel kf-farm.rom

Pause

admin set Engine.GameReplicationInfo AdminName [name] admin set Engine.GameReplicationInfo AdminEmail [e-mail] admin set Engine.GameReplicationInfo MessageOfTheDay [Line1|Line2|Line3|Line4] admin set Engine.GameReplicationInfo ServerName [name]

admin set Engine.GameInfo bAllowBehindView True/False admin set Engine.GameInfo bAdminCanPause True/False admin set Engine.GameInfo MaxSpectators [amount] admin set Engine.GameInfoMaxPlayers [amount] admin set UnrealGame.bot Accuracy [-1;0;1] admin set Engine.GameInfo bAllowWeaponThrowing True/False admin set Engine.GameInfo bChangeLevels True/False admin set Engine.GameInfo bWeaponStay True/False admin set Engine.GameInfo GameDifficulty [dificulty] 1.000000 (Beginner) 2.000000 (Normal) 3.000000 (Skilled) 4.000000 (Hard) 5.000000 (Suicidal)

admin set PlayerReplicationInfo Playername [name] admin set PlayerReplicationInfo bAdmin True/False admin set PlayerReplicationInfo Score [score] admin set PlayerReplicationInfo Ping [ping] admin set PlayerReplicationInfo HasFlag admin set PlayerReplicationInfo Deaths [deaths] admin set PlayerReplicationInfo Team [Red;Blue;None] admin set xgame.xpawn bOldInvis True/False admin set xgame.xpawn binvis True/False admin set xgame.xpawn MaxMultiJump [amount] admin set xgame.xpawn bBerserk True/False admin set xgame.xpawn bCanDodgeDoubleJump True/False admin set xgame.xpawn bCanWallDodge True/False admin set engine.playercontroller bgodmode True/False admin set pawn bCollideWorld True/False admin set pawn bNoWeaponFiring True/False admin set pawn drawscale [amount] admin set pawn waterspeed [amount] admin set pawn jumpz [amount] admin set pawn health [amount] admin set pawn groundspeed [amount] admin set engine.physicsvolume gravity Z=+950.000000 admin set engine.physicsvolume gravity Z=-950.000000 admin set engine.gamereplicationinfo weaponberserk [amount]

admin set xWeapons.weapon bCanThrow True/False

admin set xWeapons.ShieldGun bCanThrow True/False admin set xWeapons.Translauncher bCanThrow True/False

Map list: admin maplist

From the killingfloor.ru forum thread "Как добавить карту в маплист через консоль?". You can add a map to the server's map list and remove it from the console:

admin maplist add KF-BarzakhV2c.rom
admin maplist del

For the thread's author the map did not show up in the list after admin maplist add; the reply suggested missing rights. It is easier to do the same through the web admin or in KillingFloor.ini (the [DefaultKF MaplistRecord] section).

Weapons for admins only

From the killingfloor.ru forum "Вопрос: как выдать оружие только админу" thread. If the server runs Admin+ or Admin Control, an admin can call up a weapon with commands like:

admin summon KFMod.AxePickup
admin give KFMod.Axe

The first spawns the weapon on the floor, the second puts it straight into your hands. Without those mutators, Flame suggested writing your own mutator with a Mutate function (called through mutate, checking whether the player is an admin), or giving the weapon to admins in AddDefaultInventory in every SRVet* class (ServerPerks); "Пушка для админа" ("admin gun") stands for the weapon:

static function AddDefaultInventory(KFPlayerReplicationInfo KFPRI, Pawn P)
{
 if(KFPRI.bAdmin)
 KFHumanPawn(P).CreateInventoryVeterancy("Пушка для админа", 1);
...