rott/kf_sources/AdminPlus_v4/Classes/MutAdminPlus.uc
2026-07-14 20:27:09 +07:00

40 lines
997 B
Ucode

class MutAdminPlus extends Mutator;
event PreBeginPlay()
{
super.PreBeginPlay();
Level.Game.AccessControl.AdminClass = class'UltraAdmin';
Level.Game.bAllowMPGameSpeed = true;
}
event PostBeginPlay()
{
class'XWebAdmin.UTServerAdmin'.default.QueryHandlerClasses[0]="AdminPlus_v4.newxWebQueryCurrent";
class'XWebAdmin.UTServerAdmin'.default.SpectatorType=Class'AdminPlus_v4.newUTServerAdminSpectator';
}
static function FillPlayInfo(PlayInfo PlayInfo)
{
super.FillPlayInfo(PlayInfo);
//PlayInfo.AddSetting("Admin Plus", "bAllowLoaded", default.LoadedDisplayText, 0, 1, "Check");
}
static event string GetDescriptionText(string Property)
{
/* switch(Property)
{
case "bAllowLoaded":
return default.LoadedDescText;
} */
return super.GetDescriptionText(Property);
}
defaultproperties
{
GroupName="KF-AdminPlus"
FriendlyName="AdminPlus_v4"
Description="Extended and overpowered version of AdminPlus v2 / Admin Control."
}