diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-26 04:24:26 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-26 04:24:26 +0000 |
commit | dc60309beafb22e34d91593417b09d84e9442089 (patch) | |
tree | ebe5253297db76b0d9f6db3acef7f54bf6a18908 /Northstar.Custom/mod/scripts/vscripts/sh_bleedout_damage.gnut | |
parent | e4faa247edaf389d4d52e3a3129af540bb19a0ac (diff) | |
download | NorthstarMods-dc60309beafb22e34d91593417b09d84e9442089.tar.gz NorthstarMods-dc60309beafb22e34d91593417b09d84e9442089.zip |
evac, dropship, bleedout, flyout, private lobby, fastball and server browser fixes
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts/sh_bleedout_damage.gnut')
-rw-r--r-- | Northstar.Custom/mod/scripts/vscripts/sh_bleedout_damage.gnut | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/sh_bleedout_damage.gnut b/Northstar.Custom/mod/scripts/vscripts/sh_bleedout_damage.gnut index 3306d1bd6..c94e5ff0f 100644 --- a/Northstar.Custom/mod/scripts/vscripts/sh_bleedout_damage.gnut +++ b/Northstar.Custom/mod/scripts/vscripts/sh_bleedout_damage.gnut @@ -12,6 +12,12 @@ struct { void function BleedoutDamage_PreInit() { AddCallback_OnRegisteringCustomNetworkVars( Bleedout_RegisterRemoteFunctions ) + + #if CLIENT + // because playlist var overrides fucking suck, they aren't actually updated by this point + // client bleedout can be inited late enough that we can just init it on local player spawn + AddCallback_LocalClientPlayerSpawned( InitClientBleedoutForLocalPlayer ) + #endif } void function Bleedout_RegisterRemoteFunctions() @@ -43,9 +49,9 @@ void function BleedoutDamage_Init() AddPrivateMatchModeSettingArbitrary( "#MODE_SETTING_CATEGORY_BLEEDOUT", "player_bleedout_aiBleedingPlayerMissChance", DEFAULT_AI_BLEEDING_PLAYER_MISS_CHANCE.tostring() ) #if CLIENT - // because playlist var overrides fucking suck, they aren't actually updated by this point - // client bleedout can be inited late enough that we can just init it on local player spawn - AddCallback_LocalClientPlayerSpawned( InitClientBleedoutForLocalPlayer ) + // manually register signals here: defensive fix so we don't crash + RegisterSignal( "Bleedout_OnRevive" ) + RegisterSignal( "Bleedout_StopFirstAid" ) #elseif SERVER // sh_riff_settings should set this correctly on server if ( !Riff_PlayerBleedout() ) |