From 525ab365cee5cfd45776e5f08e35363b4ca90795 Mon Sep 17 00:00:00 2001 From: Shtoyan Date: Sun, 28 Mar 2021 03:48:09 +0400 Subject: [PATCH] 1.2.0 --- Classes/FPPGameType.uc | 71 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 67 insertions(+), 4 deletions(-) diff --git a/Classes/FPPGameType.uc b/Classes/FPPGameType.uc index 7214ef7..4c17c55 100644 --- a/Classes/FPPGameType.uc +++ b/Classes/FPPGameType.uc @@ -1,6 +1,41 @@ class FPPGameType extends KFGameType; +var int MDTP; +var bool bCheck; + + +event PreBeginPlay() +{ + local ZombieVolume ZV; + + super.PreBeginPlay(); + + foreach AllActors(Class'ZombieVolume', ZV) + ZV.MinDistanceToPlayer = MDTP; + + bCheck = true; +} + + +event InitGame( string Options, out string Error ) +{ + local int ConfigMaxPlayers; + local ShopVolume SH; + + ConfigMaxPlayers = default.MaxPlayers; + super.InitGame(Options, Error); + MaxPlayers = Clamp(GetIntOption( Options, "MaxPlayers", ConfigMaxPlayers ),0,12); + default.MaxPlayers = Clamp( ConfigMaxPlayers, 0, 12 ); + + foreach AllActors(Class'ShopVolume',SH) + { + SH.bAlwaysClosed = false; + SH.bAlwaysEnabled= true; + } +} + + simulated function PrepareSpecialSquadsFromGameType() { local int i; @@ -79,13 +114,36 @@ simulated function PrepareSpecialSquadsFromCollection() } +function Timer() +{ + local Controller C; + + super.Timer(); + + if (!bWaveInProgress && waveNum <= finalWave && bCheck) + { + for (C = Level.ControllerList; C != None; C = C.NextController) + { + if (C.Pawn != None && C.Pawn.Health > 0) + { + C.Pawn.ClientMessage("@шALL TRADERS OPEN, FGTS!"); + } + } + + bCheck = false; + } + + if (bWaveInProgress && waveNum <= finalWave) + { + bCheck = true; + } +} + + defaultproperties { GameName="Fleshpound Party v2" - StartingCashHell=3000 - MinRespawnCashHell=1500 - StandardMaxZombiesOnce=48 - MaxZombiesOnce=48 + Description="The premise is simple: you (and, hopefully, your team) against hordes of fleshpounds and their minion zeds. Have fun!" ShortWaves(0)=(WaveMask=1970179,WaveMaxMonsters=30,WaveDifficulty=7.000000) ShortWaves(1)=(WaveMask=201326591,WaveMaxMonsters=35,WaveDifficulty=7.000000) ShortWaves(2)=(WaveMask=201326591,WaveMaxMonsters=40,WaveDifficulty=7.000000) @@ -110,6 +168,11 @@ defaultproperties LongWaves(8)=(WaveMask=201326591,WaveMaxMonsters=70,WaveDifficulty=7.000000) LongWaves(9)=(WaveMask=201326591,WaveMaxMonsters=75,WaveDifficulty=7.000000) LongWaves(10)=(WaveMask=8388608,WaveMaxMonsters=6,WaveDuration=255,WaveDifficulty=7.000000) + StartingCashHell=3000 + MinRespawnCashHell=1500 StandardMonsterSquads(25)="2F" + StandardMaxZombiesOnce=48 MonsterSquad(25)="2F" + MaxZombiesOnce=48 + MDTP=1200 } \ No newline at end of file