Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Team_GameBase extends TeamGame
- dependson(Misc_PlayerDataManager_ServerLink)
- dependson(Misc_PawnReplicationInfo)
- dependson(Team_HUDBase)
- dependson(Misc_Util)
- dependson(Misc_Bot)
- dependson(Misc_PlayerData)
- dependson(TournamentModuleBase)
- dependson(WeaponFire_Shield)
- hidecategories(Movement,Collision,Lighting,LightColor,Karma,Force)
- config
- abstract;
- enum EServerLinkStatus
- {
- SL_DISABLED,
- SL_READONLY,
- SL_ENABLED
- };
- struct SEndCeremonyInfo
- {
- var string PlayerName;
- var string CharacterName;
- var int PlayerTeam;
- var Vector SpawnPos;
- var Rotator SpawnRot;
- };
- struct ControllerArray
- {
- var array<Controller> C;
- };
- var config int StartingHealth;
- var config int StartingArmor;
- var config float MaxHealth;
- var config float AdrenalinePerDamage;
- var config float ScoreAwardPer10Damage;
- var config bool bDisableSpeed;
- var config bool bDisableBooster;
- var config bool bDisableInvis;
- var config bool bDisableBerserk;
- var array<string> EnabledCombos;
- var config bool bForceRUP;
- var config int ForceRUPMinPlayers;
- var config int ForceSeconds;
- var Controller DarkHorse;
- var string NextMapString;
- var byte Deaths[2];
- var bool bDefaultsReset;
- var config int SecsPerRound;
- var int RoundTime;
- var bool bRoundOT;
- var int RoundOTTime;
- var config int OTDamage;
- var config int OTInterval;
- var config float CampThreshold;
- var int CampInterval;
- var config bool bKickExcessiveCampers;
- var config int Timeouts;
- var byte TimeOutTeam;
- var PlayerController TimeOutPlayer;
- var int TeamTimeOuts[2];
- var int TimeOutCount;
- var float TimeOutRemainder;
- var float LastTimeOutUpdate;
- var config int TimeOutDuration;
- var bool bFirstSpawn;
- var bool bEndOfRound;
- var bool bRespawning;
- var int RespawnTime;
- var int NextRoundTime;
- var config int NextRoundDelay;
- var int CurrentRound;
- var config bool bModifyShieldGun;
- var config int AssaultAmmo;
- var config int AssaultGrenades;
- var config int BioAmmo;
- var config int ShockAmmo;
- var config int LinkAmmo;
- var config int MiniAmmo;
- var config int FlakAmmo;
- var config int RocketAmmo;
- var config int LightningAmmo;
- var config int EndOfRoundDelay;
- var int EndOfRoundTime;
- var PlayerReplicationInfo EndOfRoundScorer;
- var config bool RoundCanTie;
- var bool EndGameCalled;
- var config bool EnableNewNet;
- var TAM_Mutator MutTAM;
- var int WinningTeamIndex;
- var array<Controller> EndCeremonyRankings;
- var SEndCeremonyInfo ServerEndCeremonyInfo[10];
- var int EndCeremonyPlayerCount;
- var int EndCeremonySoundIdx;
- var config array<string> EndCeremonySound;
- var config bool EndCeremonyEnabled;
- var config bool EndCeremonyStatsEnabled;
- var int EndCeremonyTimer;
- var int EndCeremonyStatsListDisplayTime;
- var config bool AllowPersistentStatsWithBots;
- var Misc_PlayerDataManager_ServerLink PlayerDataManager_ServerLink;
- var bool DisablePersistentStatsForMatch;
- var bool MatchStatsRegistered;
- var config bool bSpawnProtectionOnRez;
- var config bool AutoBalanceTeams;
- var config int AutoBalanceSeconds;
- var config float AutoBalanceRandomization;
- var config float AutoBalanceAvgPPRWeight;
- var config bool AutoBalanceOnJoins;
- var config bool AllowForceAutoBalance;
- var config int ForceAutoBalanceCooldown;
- var int ForceAutoBalanceTimer;
- var bool TeamsAutoBalanced;
- var array<Controller> DontAutoBalanceList;
- var bool ForceAutoBalance;
- var config Team_GameBase.EServerLinkStatus ServerLinkStatus;
- var config string ServerLinkAddress;
- var config int ServerLinkPort;
- var config string ServerLinkAccount;
- var config string ServerLinkPassword;
- var config string ScoreboardCommunityName;
- var config string ScoreboardRedTeamName;
- var config string ScoreboardBlueTeamName;
- var config string ShieldTextureName;
- var config string FlagTextureName;
- var config bool ShowServerName;
- var config bool FlagTextureEnabled;
- var config bool FlagTextureShowAcronym;
- var config string SoundAloneName;
- var config string SoundSpawnProtectionName;
- var config bool AllowServerSaveSettings;
- var config bool AlwaysRestartServerWhenEmpty;
- var Sound OvertimeSound;
- var bool UseZAxisRadar;
- var config bool EnforceMaxPlayers;
- var TournamentModuleBase TournamentModule;
- var config string TournamentModule${1}< ${3} >
- static function bool ReplaceLoadingScreen(PlayerController pcl, string MapName)
- {
- local Object O;
- local UT2K4ServerLoading LoadingScreenObj;
- local Texture LoadingScreenTex;
- foreach pcl.AllObjects(class'Object', O)
- {
- if((LoadingScreenObj == none) && O.Class == class'UT2K4ServerLoading')
- {
- LoadingScreenObj = UT2K4ServerLoading(O);
- break;
- }
- }
- LoadingScreenTex = Texture(DynamicLoadObject("3SPNv3223TR.LS.loading" $ string(Rand(7) + 1), class'Texture', true));
- if((LoadingScreenObj != none) && LoadingScreenTex != none)
- {
- DrawOpImage(LoadingScreenObj.Operations[0]).Image = LoadingScreenTex;
- return true;
- }
- return false;
- }
- static function string GetLoadingHint(PlayerController PlayerController, string MapName, Color ColorHint)
- {
- if(ReplaceLoadingScreen(PlayerController, MapName))
- {
- return " ";
- }
- else
- {
- return super(GameInfo).GetLoadingHint(PlayerController, MapName, ColorHint);
- }
- }
- static function PrecacheGameTextures(LevelInfo myLevel)
- {
- class'xTeamGame'.static.PrecacheGameTextures(myLevel);
- }
- static function PrecacheGameStaticMeshes(LevelInfo myLevel)
- {
- class'xDeathMatch'.static.PrecacheGameStaticMeshes(myLevel);
- }
- function InitGameReplicationInfo()
- {
- super(DeathMatch).InitGameReplicationInfo();
- if(Misc_BaseGRI(GameReplicationInfo) == none)
- {
- return;
- }
- Misc_BaseGRI(GameReplicationInfo).RoundTime = SecsPerRound;
- Misc_BaseGRI(GameReplicationInfo).StartingHealth = StartingHealth;
- Misc_BaseGRI(GameReplicationInfo).StartingArmor = StartingArmor;
- Misc_BaseGRI(GameReplicationInfo).MaxHealth = MaxHealth;
- Misc_BaseGRI(GameReplicationInfo).SecsPerRound = SecsPerRound;
- Misc_BaseGRI(GameReplicationInfo).OTDamage = OTDamage;
- Misc_BaseGRI(GameReplicationInfo).OTInterval = OTInterval;
- Misc_BaseGRI(GameReplicationInfo).CampThreshold = CampThreshold;
- Misc_BaseGRI(GameReplicationInfo).bKickExcessiveCampers = bKickExcessiveCampers;
- Misc_BaseGRI(GameReplicationInfo).bDisableSpeed = bDisableSpeed;
- Misc_BaseGRI(GameReplicationInfo).bDisableInvis = bDisableInvis;
- Misc_BaseGRI(GameReplicationInfo).bDisableBooster = bDisableBooster;
- Misc_BaseGRI(GameReplicationInfo).bDisableBerserk = bDisableBerserk;
- Misc_BaseGRI(GameReplicationInfo).bForceRUP = bForceRUP;
- Misc_BaseGRI(GameReplicationInfo).ForceRUPMinPlayers = ForceRUPMinPlayers;
- Misc_BaseGRI(GameReplicationInfo).Timeouts = Timeouts;
- Misc_BaseGRI(GameReplicationInfo).Acronym = Acronym;
- Misc_BaseGRI(GameReplicationInfo).EnableNewNet = EnableNewNet;
- Misc_BaseGRI(GameReplicationInfo).ShieldTextureName = ShieldTextureName;
- Misc_BaseGRI(GameReplicationInfo).FlagTextureName = FlagTextureName;
- Misc_BaseGRI(GameReplicationInfo).ShowServerName = ShowServerName;
- Misc_BaseGRI(GameReplicationInfo).FlagTextureEnabled = FlagTextureEnabled;
- Misc_BaseGRI(GameReplicationInfo).FlagTextureShowAcronym = FlagTextureShowAcronym;
- Misc_BaseGRI(GameReplicationInfo).SoundAloneName = SoundAloneName;
- Misc_BaseGRI(GameReplicationInfo).SoundSpawnProtectionName = SoundSpawnProtectionName;
- Misc_BaseGRI(GameReplicationInfo).ScoreboardCommunityName = ScoreboardCommunityName;
- Misc_BaseGRI(GameReplicationInfo).ScoreboardRedTeamName = ScoreboardRedTeamName;
- Misc_BaseGRI(GameReplicationInfo).ScoreboardBlueTeamName = ScoreboardBlueTeamName;
- Misc_BaseGRI(GameReplicationInfo).UseZAxisRadar = UseZAxisRadar;
- Misc_BaseGRI(GameReplicationInfo).ServerLinkStatus = ServerLinkStatus;
- }
Advertisement
Add Comment
Please, Sign In to add comment