Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum EBossSquad
- {
- SQUAD_PATTYHANS,
- SQUAD_KINGS
- }
- var KFGameInfo_HardBoss.EBossSquad BSQEnum;
- var config string SpawnBoss;
- function bool ProcessCommand(string Command, KFPlayerController KFPC, out string CommandResponse)
- {
- local bool bCommandSuccess;
- local array<string> CommandBreakdown;
- bCommandSuccess = false;
- CommandResponse = "Invalid Command";
- ParseStringIntoArray(Command, CommandBreakdown, " ", true);
- if(KFPC == None || CommandBreakdown.Length == 0
- || (WorldInfo.NetMode != NM_Standalone && !KFPC.PlayerReplicationInfo.bAdmin))
- return false;
- if(CommandBreakdown[0] ~= "spawnboss")
- {
- bCommandSuccess = true;
- if(CommandBreakdown[1] ~= "PattyHans")
- {
- SpawnBoss = "PattyHans";
- BossSquadCommand();
- CommandResponse = "Boss Squad: Hans & Patty";
- }
- else if(CommandBreakdown[1] ~= "Kings")
- {
- SpawnBoss = "Kings";
- BossSquadCommand();
- CommandResponse = "Boss Squad: King Bloat & King Fleshpound";
- }
- }
- return bCommandSuccess;
- }
- function BossSquadCommand()
- {
- if(SpawnBoss=="PattyHans")
- {
- BSQEnum = 0;
- SaveConfig();
- }
- if(SpawnBoss=="Kings")
- {
- BSQEnum = 1;
- SaveConfig();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement