Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Shtoyan committed Mar 27, 2021
1 parent fa4640e commit 525ab36
Showing 1 changed file with 67 additions and 4 deletions.
71 changes: 67 additions & 4 deletions Classes/FPPGameType.uc
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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)
Expand All @@ -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
}

0 comments on commit 525ab36

Please sign in to comment.