From 33b94edca707e71084b2742ad9f57265f39aac88 Mon Sep 17 00:00:00 2001 From: x3Karma Date: Thu, 30 Dec 2021 14:23:27 +0800 Subject: adds time out check for all of these --- .../mod/scripts/vscripts/gamemodes/_gamemode_ps.nut.bak | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut.bak (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut.bak') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut.bak b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut.bak new file mode 100644 index 000000000..8092a7900 --- /dev/null +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut.bak @@ -0,0 +1,15 @@ +global function GamemodePs_Init + +void function GamemodePs_Init() +{ + Riff_ForceTitanAvailability( eTitanAvailability.Never ) + + AddCallback_OnPlayerKilled( GiveScoreForPlayerKill ) + ScoreEvent_SetupEarnMeterValuesForMixedModes() +} + +void function GiveScoreForPlayerKill( entity victim, entity attacker, var damageInfo ) +{ + if ( victim != attacker && victim.IsPlayer() && attacker.IsPlayer() && GetGameState() == eGameState.Epilogue) + AddTeamScore( attacker.GetTeam(), 1 ) +} \ No newline at end of file -- cgit v1.2.3