From ba9988a1be3baab498e7dd9dbaf191266653481a Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Thu, 30 Dec 2021 02:43:37 +0000 Subject: remove unnecessary files from prs --- _gamemode_tdm.nut | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 _gamemode_tdm.nut (limited to '_gamemode_tdm.nut') diff --git a/_gamemode_tdm.nut b/_gamemode_tdm.nut deleted file mode 100644 index ba1807900..000000000 --- a/_gamemode_tdm.nut +++ /dev/null @@ -1,31 +0,0 @@ -global function GamemodeTdm_Init -global function RateSpawnpoints_Directional - -void function GamemodeTdm_Init() -{ - AddCallback_OnPlayerKilled( GiveScoreForPlayerKill ) - ScoreEvent_SetupEarnMeterValuesForMixedModes() - SetTimeoutWinnerDecisionFunc( CheckScoreForDraw ) -} - -void function GiveScoreForPlayerKill( entity victim, entity attacker, var damageInfo ) -{ - if ( victim != attacker && victim.IsPlayer() && attacker.IsPlayer() || GetGameState() != eGameState.Playing ) - AddTeamScore( attacker.GetTeam(), 1 ) -} - -void function RateSpawnpoints_Directional( int checkclass, array spawnpoints, int team, entity player ) -{ - // temp - RateSpawnpoints_Generic( checkclass, spawnpoints, team, player ) -} - -int function CheckScoreForDraw() -{ - if (GameRules_GetTeamScore(TEAM_IMC) > GameRules_GetTeamScore(TEAM_MILITIA)) - return TEAM_IMC - else if (GameRules_GetTeamScore(TEAM_MILITIA) > GameRules_GetTeamScore(TEAM_IMC)) - return TEAM_MILITIA - - return TEAM_UNASSIGNED -} \ No newline at end of file -- cgit v1.2.3