aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut
blob: 7e3e5ea2d20042aec0bf78834106ada65c9e8a04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 )
}