更多可用控制台指令:
1. 获取控制台
- 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管理员密码
Log in as server administrator:
? adminlogin pass
? adminlogin user pass
Do administrator log out:
? adminlogout
Add/Remove bots:
admin addbots [amount]
admin killbots
admin killbots [amount]
Kick/Ban a online player:
admin kick [playername]
admin kickban [playername]
Say message as admin (text appears in middle of player\'s screen):
admin adminsay [your message]
Changes the current level to the specified level:
admin switchlevel [mapname]
example:
admin switchlevel kf-farm.rom
Pause the game:
Pause
Server info:
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]
Game settings:
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)
Fun codes:
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]
Enable/Disable weapon throwing in curent game:
admin set xWeapons.weapon bCanThrow True/False
Example:
admin set xWeapons.ShieldGun bCanThrow True/False
admin set xWeapons.Translauncher bCanThrow True/False
Enabling "Admins&Groups" (xAdmin.ini):
Enabling this, you will be allowed to switch from "adminlogin password" to "adminlogin username password" and you will be allowed to create many adminlogins with different privilegies and passwords, because xAdmin.ini will be created.
? admin set Engine.GameInfo AccessControlClass XAdmin.AccessControlIni
To disable xAdmin.ini (Admins&Groups), you need to write this code:
? admin set Engine.GameInfo AccessControlClass Engine.AccessControl
Server Admin:
admin set UWeb.WebServer bEnabled True/False
admin set UWeb.WebServer ListenPort [port]
admin set UWeb.WebServer ListenPort
admin set Engine.AccessControl bBanByID True/False
admin set Engine.AccessControl AdminPassword [password]
admin get Engine.AccessControl AdminPassword
admin set Engine.AccessControl GamePassword [password]
admin get Engine.AccessControl GamePassword
admin set Engine.AccessControl AdminName [name]
admin get Engine.AccessControl AdminName
admin get XAdmin.xAdminConfigIni AdminUsers
summon kfchar.zombieclot
summon kfchar.zombiegorefast
summon kfchar.zombiecrawler
summon kfchar.zombiesiren
summon kfchar.zombiescrake
summon kfchar.zombiefleshpound
summon kfchar.zombiepatriarch