diff options
author | Connie Price <contact@connieprice.co.uk> | 2022-01-14 03:22:00 +0000 |
---|---|---|
committer | Barichello <artur@barichello.me> | 2022-01-15 12:47:51 -0300 |
commit | 60ed8aadc819cb21341ee33abcee8824d00e0cbd (patch) | |
tree | 8baa4da34aafc19c28a8ea2a65ff721c37ed7b69 /Northstar.Custom/mod/scripts/vscripts/gamemodes/gg_earn_meter/sh_gg_earn_meter.gnut | |
parent | 2694687ed68d6609cc9a0bf2e7ff4b99d0bb1e43 (diff) | |
download | NorthstarMods-60ed8aadc819cb21341ee33abcee8824d00e0cbd.tar.gz NorthstarMods-60ed8aadc819cb21341ee33abcee8824d00e0cbd.zip |
Added a percentage meter to gungame, that also displays the next weapon!
- New gungame meter, by default acts exactly like before, just adds some visual flair.
- Support for varying reward percentages for Kills, Assists and Executions so to let server owners mix up their gungames a bit more.
- Actual assist support, by default providing no points, but the option is now there.
- Replaced the Archer with a primary enabled melee, finally no more Archer blocking half the screen.
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts/gamemodes/gg_earn_meter/sh_gg_earn_meter.gnut')
-rw-r--r-- | Northstar.Custom/mod/scripts/vscripts/gamemodes/gg_earn_meter/sh_gg_earn_meter.gnut | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/gg_earn_meter/sh_gg_earn_meter.gnut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/gg_earn_meter/sh_gg_earn_meter.gnut new file mode 100644 index 000000000..0428ecfa7 --- /dev/null +++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/gg_earn_meter/sh_gg_earn_meter.gnut @@ -0,0 +1,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 +}
\ No newline at end of file |