From 1fad39a0d753fa905520ee858f3aa4e8a3ad96a5 Mon Sep 17 00:00:00 2001 From: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Mon, 21 Feb 2022 01:12:15 +0000 Subject: Change PlayBattleChatterLine to only play to friendlies (#221) --- .../mod/scripts/vscripts/conversation/_battle_chatter.gnut | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Northstar.CustomServers/mod/scripts/vscripts') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/conversation/_battle_chatter.gnut b/Northstar.CustomServers/mod/scripts/vscripts/conversation/_battle_chatter.gnut index 0fee4f2c..a239fa8b 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/conversation/_battle_chatter.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/conversation/_battle_chatter.gnut @@ -11,7 +11,7 @@ void function PlayBattleChatterLine( entity player, string conversationType ) { int conversationIndex = GetConversationIndex( conversationType ) - foreach( entity otherPlayer in GetPlayerArray() ) + foreach( entity otherPlayer in foreach( entity otherPlayer in GetPlayerArrayOfTeam( player.GetTeam() ) ) ) if ( ShouldPlayBattleChatter( conversationType, otherPlayer, player ) && player != otherPlayer ) Remote_CallFunction_Replay( otherPlayer, "ServerCallback_PlayBattleChatter", conversationIndex, player.GetEncodedEHandle() ) } @@ -42,4 +42,4 @@ void function UpdatePlayerVoiceIndex( entity player, PilotLoadoutDef voiceIndex else player.SetPlayerNetInt( "battleChatterVoiceIndex", SelectRandomMaleBattleChatterVoice() ) } -} \ No newline at end of file +} -- cgit v1.2.3