aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorx3Karma <juliuslimck@gmail.com>2021-12-30 05:11:18 +0800
committerGitHub <noreply@github.com>2021-12-30 05:11:18 +0800
commit07ccd9d1ddfde5f6f06c4cf75e1b3690c34b1f3d (patch)
tree704d25b2e6685141983baf54a4583840446d7166
parent188f820a1862ee671ccbf4541e74502864c34da4 (diff)
downloadNorthstarMods-07ccd9d1ddfde5f6f06c4cf75e1b3690c34b1f3d.tar.gz
NorthstarMods-07ccd9d1ddfde5f6f06c4cf75e1b3690c34b1f3d.zip
fixed map hack permanent sonar (real)!!!
-rw-r--r--_burnmeter.gnut6
1 files changed, 3 insertions, 3 deletions
diff --git a/_burnmeter.gnut b/_burnmeter.gnut
index 8bfcab8a..3eb6bda6 100644
--- a/_burnmeter.gnut
+++ b/_burnmeter.gnut
@@ -324,12 +324,12 @@ void function PlayerUsesMaphackBurncardThreaded( entity player )
for ( int i = 0; i < MAPHACK_PULSE_COUNT; i++ )
{
EmitSoundOnEntityOnlyToPlayer( player, player, "Burn_Card_Map_Hack_Radar_Pulse_V1_1P" )
-
+ array<entity> aliveplayers = GetPlayerArray()
foreach ( entity otherPlayer in GetPlayerArray() )
{
Remote_CallFunction_Replay( otherPlayer, "ServerCallback_SonarPulseFromPosition", player.GetOrigin().x, player.GetOrigin().y, player.GetOrigin().z, SONAR_GRENADE_RADIUS )
- if ( otherPlayer.GetTeam() != player.GetTeam() )
+ if ( otherPlayer.GetTeam() != player.GetTeam() && aliveplayers.find(otherPlayer) != -1 && aliveplayers.find(player) != -1 )
{
StatusEffect_AddTimed( otherPlayer, eStatusEffect.maphack_detected, 1.0, MAPHACK_PULSE_DELAY / 2, 0.0 )
SonarStart( otherPlayer, player.GetOrigin(), player.GetTeam(), player )
@@ -338,7 +338,7 @@ void function PlayerUsesMaphackBurncardThreaded( entity player )
}
wait MAPHACK_PULSE_DELAY
foreach ( entity otherPlayer in GetPlayerArray() ) {
- if ( otherPlayer.GetTeam() != player.GetTeam() ) {
+ if ( otherPlayer.GetTeam() != player.GetTeam() && aliveplayers.find(otherPlayer) != -1 && aliveplayers.find(player) != -1 ) {
SonarEnd (otherPlayer, player.GetTeam() )
DecrementSonarPerTeam( player.GetTeam() )
}