aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut
blob: 3a852f918e016e94caf9341f1afaf7303d7fb36d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
global function GamemodePs_Init

void function GamemodePs_Init()
{
	AddCallback_OnPlayerKilled( GiveScoreForPlayerKill )
}

void function GiveScoreForPlayerKill( entity victim, entity attacker, var damageInfo )
{
	if ( victim != attacker && victim.IsPlayer() && attacker.IsPlayer() )
		AddTeamScore( attacker.GetTeam(), 1 )
}