aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers
diff options
context:
space:
mode:
authorx3Karma <juliuslimck@gmail.com>2021-12-29 12:40:09 +0800
committerGitHub <noreply@github.com>2021-12-29 12:40:09 +0800
commit4b9baf24fb9a553aa0df86317131c6995cd33f17 (patch)
treecf22c93ff51d44fe27f07e581bbe4acc922fed10 /Northstar.CustomServers
parentd7ec3fb86e09fe6ba1d2fc1b90cc8347f8303ed2 (diff)
parent425336bbb830a2699e3b9b4eb11d71690bb26aac (diff)
downloadNorthstarMods-4b9baf24fb9a553aa0df86317131c6995cd33f17.tar.gz
NorthstarMods-4b9baf24fb9a553aa0df86317131c6995cd33f17.zip
Merge pull request #2 from x3Karma/patch-2
Stop Skirmish from scoring during the epilogue
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_tdm.nut4
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_tdm.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_tdm.nut
index 5dd8a403b..fd5cbb146 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_tdm.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_tdm.nut
@@ -9,7 +9,7 @@ void function GamemodeTdm_Init()
void function GiveScoreForPlayerKill( entity victim, entity attacker, var damageInfo )
{
- if ( victim != attacker && victim.IsPlayer() && attacker.IsPlayer() )
+ if ( victim != attacker && victim.IsPlayer() && attacker.IsPlayer() && GetGameState() != eGameState.Epilogue )
AddTeamScore( attacker.GetTeam(), 1 )
}
@@ -17,4 +17,4 @@ void function RateSpawnpoints_Directional( int checkclass, array<entity> spawnpo
{
// temp
RateSpawnpoints_Generic( checkclass, spawnpoints, team, player )
-} \ No newline at end of file
+}