aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fra.nut
blob: 6d0fd3c7b929910c1e2f4c7845329388ae71d334 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
global function GamemodeFRA_AddAdditionalInitCallback
	
// fra doesn't register a gamemode init by default, adding one just so we can set stuff up for it
void function GamemodeFRA_AddAdditionalInitCallback()
{
	AddCallback_OnCustomGamemodesInit( GamemodeFRA_AddAdditionalInit )
}

void function GamemodeFRA_AddAdditionalInit()
{
	GameMode_AddServerInit( FREE_AGENCY, GamemodeFRA_Init )
}

void function GamemodeFRA_Init()
{
	// need a way to disable passive earnmeter gain
	ScoreEvent_SetEarnMeterValues( "PilotBatteryPickup", 0.0, 0.34 )
	EarnMeterMP_SetPassiveMeterGainEnabled( false )
	PilotBattery_SetMaxCount( 3 )
	SetupGenericFFAChallenge()

	AddCallback_OnPlayerKilled( FRARemoveEarnMeter )
}

void function FRARemoveEarnMeter( entity victim, entity attacker, var damageInfo )
{
	PlayerEarnMeter_Reset( victim )
}