aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts/gamemodes/gg_earn_meter/sh_gg_earn_meter.gnut
blob: 0428ecfa7dcb39997330cd265ae33cc1be5f8301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
global function Sh_GGEarnMeter_Init

void function Sh_GGEarnMeter_Init()
{
	AddCallback_OnRegisteringCustomNetworkVars( RegisterSharedNetwork )
}

void function RegisterSharedNetwork()
{
	RegisterNetworkedVariable( "gunGameLevelPercentage", SNDC_PLAYER_EXCLUSIVE, SNVT_FLOAT_RANGE, 0.0, 0.0, 1.0 )
    Remote_RegisterFunction( "ServerCallback_GGEarnMeter_SetWeaponIcon" )

    #if CLIENT
    	Cl_GGEarnMeter_RegisterNetwork()
    #endif
}