Skip to content

Commit

Permalink
Create VasUpForInformation.uc
Browse files Browse the repository at this point in the history
  • Loading branch information
BreakinBenny authored Mar 25, 2023
1 parent 1d84c9b commit 92a2055
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions VasUpForInformation/Classes/VasUpForInformation.uc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
//-----------------------------------------------------------
//
//-----------------------------------------------------------
class VasUpForInformation extends Mutator config(VasUpForInformation);

var(VasUpForInformation) config bool GameEndCorrectly;
var(VasUpForInformation) config int UpFor;
var bool DoOnce;

function PreBeginPlay()
{
local string MSG;
if(!DoOnce)
{
DoOnce = true;
LOG (" ************ Powered by VasUpForInformation - Kal Corp");
LOG (" ************ Development Forums Http://VasServer.dyndns.org:88");

if (GameEndCorrectly)
UpFor++;
else
UpFor = 1;
GameEndCorrectly = false;
SaveConfig();
}
if (UpFor == 1)
MSG = UpFor$" Map *";
else
MSG = UpFor$" Maps *";
if(Level.Game.GameReplicationInfo != none)
Level.Game.GameReplicationInfo.ServerName = Level.Game.GameReplicationInfo.ServerName$" * Server UpFor: "$MSG;
SetTimer(0.5, true);

Super.PreBeginPlay();
}

function Timer()
{
if((Level.Game.bGameEnded) && (!GameEndCorrectly))
{
GameEndCorrectly = true;
SaveConfig();
}
}

0 comments on commit 92a2055

Please sign in to comment.