aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-19 02:23:55 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-19 02:23:55 +0000
commit917da6226d0aa62717f4ec2abe644589dd8e0e42 (patch)
tree4c18b3ca88bc08cbe94e89eaed6566e9382bf126 /Northstar.Custom
parentd1b696c80c5001f6b62ca41be3bf6bc5647378d0 (diff)
downloadNorthstarMods-917da6226d0aa62717f4ec2abe644589dd8e0e42.tar.gz
NorthstarMods-917da6226d0aa62717f4ec2abe644589dd8e0e42.zip
potentially fix fastball client crash
Diffstat (limited to 'Northstar.Custom')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/cl_gamemode_fastball.gnut6
1 files changed, 3 insertions, 3 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/cl_gamemode_fastball.gnut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/cl_gamemode_fastball.gnut
index b7c225c78..f64658cf5 100644
--- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/cl_gamemode_fastball.gnut
+++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/cl_gamemode_fastball.gnut
@@ -68,7 +68,7 @@ void function ServerCallback_FastballPanelHacked( int panelHandle, int id, int c
AnnouncementData announcement = Announcement_Create( Localize( "#FASTBALL_PANEL_CAPTURED", capturingPlayer.GetPlayerName(), panelIdString ) )
- if ( capturingPlayer.GetTeam() == GetLocalViewPlayer().GetTeam() )
+ if ( capturingPlayer.GetTeam() == GetLocalClientPlayer().GetTeam() )
Announcement_SetTitleColor( announcement, < 0, 0, 1 > )
else
Announcement_SetTitleColor( announcement, < 1, 0, 0 > )
@@ -77,7 +77,7 @@ void function ServerCallback_FastballPanelHacked( int panelHandle, int id, int c
Announcement_SetPriority( announcement, 200 ) //Be higher priority than Titanfall ready indicator etc
Announcement_SetSoundAlias( announcement, SFX_HUD_ANNOUNCE_QUICK )
Announcement_SetStyle( announcement, ANNOUNCEMENT_STYLE_QUICK )
- AnnouncementFromClass( GetLocalViewPlayer(), announcement )
+ AnnouncementFromClass( GetLocalClientPlayer(), announcement )
}
void function ServerCallback_FastballRespawnPlayer()
@@ -88,7 +88,7 @@ void function ServerCallback_FastballRespawnPlayer()
void function FastballRespawnPlayerEffects_Threaded()
{
// sometimes this seems to get called before the player has respawned clientside, so we just wait until the client thinks they're alive
- entity player = GetLocalViewPlayer()
+ entity player = GetLocalClientPlayer()
while ( !IsAlive( player ) )
WaitFrame()