blob: 15f749ac7198205ad85a451740b9b3e32a3ff5b9 (
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
|
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 )
AddCallback_OnPlayerKilled( FRARemoveEarnMeter )
}
void function FRARemoveEarnMeter( entity victim, entity attacker, var damageInfo )
{
PlayerEarnMeter_Reset( victim )
}
|