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