diff options
author | x3Karma <juliuslimck@gmail.com> | 2022-01-10 21:24:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 10:24:05 -0300 |
commit | 32f3324a1743d1a958b40abc8a9f7c4e3b06351f (patch) | |
tree | 65c340edbad0737f9dd6f653002199015b5c0f34 /Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut | |
parent | c894e8f7b148e229cd5cdf4d2659a854b1957680 (diff) | |
download | NorthstarMods-32f3324a1743d1a958b40abc8a9f7c4e3b06351f.tar.gz NorthstarMods-32f3324a1743d1a958b40abc8a9f7c4e3b06351f.zip |
Fix registering kills during epilogue (#82)
* Fix Pilots vs Pilots registering kills during epilogue
* Fix Skirmish counting kills uring epilogue
* Fix Titan Brawl counting score during epilogue (if available)
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut index 4f05d87a5..94aff34a8 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut @@ -30,7 +30,7 @@ void function GamemodePs_Init() void function GiveScoreForPlayerKill( entity victim, entity attacker, var damageInfo )
{
- if ( victim != attacker && victim.IsPlayer() && attacker.IsPlayer() || GetGameState() != eGameState.Playing )
+ if ( victim != attacker && victim.IsPlayer() && attacker.IsPlayer() && GetGameState() == eGameState.Playing )
AddTeamScore( attacker.GetTeam(), 1 )
}
@@ -218,4 +218,4 @@ void function RateSpawnpoints_SpawnZones( int checkClass, array<entity> spawnpoi spawn.CalculateRating( checkClass, player.GetTeam(), rating, rating )
}
-}
\ No newline at end of file +}
|