Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RandomWeekly extends KFGameInfo_ExtendedWeekly;
- enum EWeeklyOutbreaks
- {
- WO_Boom,
- WO_Zombies,
- WO_ShrinkyDinky,
- WO_BigHead,
- WO_PoundAmmonium,
- WO_DeathBalloons,
- WO_ZedTime,
- WO_BeefCake,
- WO_Scrakemonium
- };
- var EWeeklyOutbreaks WeeklyOutbreak;
- function CreateOutbreakEvent()
- {
- local byte WeeklyIndex;
- super(KFGameInfo).CreateOutbreakEvent();
- WeeklyIndex = Rand(9);
- switch( WeeklyIndex )
- {
- case 0:
- WeeklyOutbreak = WO_Boom;
- break;
- case 1:
- WeeklyOutbreak = WO_Zombies;
- break;
- case 2:
- WeeklyOutbreak = WO_ShrinkyDinky;
- break;
- case 3:
- WeeklyOutbreak = WO_BigHead;
- break;
- case 4:
- WeeklyOutbreak = WO_PoundAmmonium;
- break;
- case 5:
- WeeklyOutbreak = WO_DeathBalloons;
- break;
- case 6:
- WeeklyOutbreak = WO_ZedTime;
- break;
- case 7:
- WeeklyOutbreak = WO_BeefCake;
- break;
- case 8:
- WeeklyOutbreak = WO_Scrakemonium;
- break;
- }
- }
- static function int GetWeeklyIndex()
- {
- switch( default.WeeklyOutbreak )
- {
- case WO_Boom:
- return 0;
- case WO_Zombies:
- return 1;
- case WO_ShrinkyDinky:
- return 2;
- case WO_BigHead:
- return 3;
- case WO_PoundAmmonium:
- return 4;
- case WO_DeathBalloons:
- return 5;
- case WO_ZedTime:
- return 6;
- case WO_BeefCake:
- return 7;
- case WO_Scrakemonium:
- return 8;
- }
- }
- function WaveStarted()
- {
- local byte WeeklyIndex;
- super.WaveStarted();
- WeeklyIndex = static.GetWeeklyIndex();
- OutbreakEvent.SetActiveEvent( WeeklyIndex );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement