blob: d3e506ce573eca38c84c4ba76185202cc5b90a7a (
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
|
global function Sh_GGEarnMeter_Init
struct
{
string gamemode = ""
} file
void function Sh_GGEarnMeter_Init(string gamemode)
{
file.gamemode = gamemode
AddCallback_OnRegisteringCustomNetworkVars( RegisterSharedNetwork )
}
void function RegisterSharedNetwork()
{
if ( GAMETYPE != file.gamemode )
return
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
}
|