aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts
diff options
context:
space:
mode:
authorASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com>2022-02-21 01:12:15 +0000
committerGitHub <noreply@github.com>2022-02-21 01:12:15 +0000
commit1fad39a0d753fa905520ee858f3aa4e8a3ad96a5 (patch)
treed94d0f28bb4e45ed05ee6f829399064b2d03f780 /Northstar.CustomServers/mod/scripts/vscripts
parent8e7a9198057775f3aad4c676dc533aeadd54879e (diff)
downloadNorthstarMods-1fad39a0d753fa905520ee858f3aa4e8a3ad96a5.tar.gz
NorthstarMods-1fad39a0d753fa905520ee858f3aa4e8a3ad96a5.zip
Change PlayBattleChatterLine to only play to friendlies (#221)
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/conversation/_battle_chatter.gnut4
1 files changed, 2 insertions, 2 deletions
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
+}