aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/gamemodes
diff options
context:
space:
mode:
authorx3Karma <juliuslimck@gmail.com>2021-12-30 14:22:42 +0800
committerGitHub <noreply@github.com>2021-12-30 14:22:42 +0800
commit9c828a8e24f3f9f48c2754cef9e81d9c79adc3f9 (patch)
tree4bec22a0bc809561e90a8dee8d94f9d3a21bcb46 /Northstar.CustomServers/mod/scripts/vscripts/gamemodes
parenta0923c46ade1d30a9fb0949f9468255b9dd91c50 (diff)
parentbde589963e9030bdae5bfad1cbf068c0ad6e078a (diff)
downloadNorthstarMods-9c828a8e24f3f9f48c2754cef9e81d9c79adc3f9.tar.gz
NorthstarMods-9c828a8e24f3f9f48c2754cef9e81d9c79adc3f9.zip
Merge branch 'R2Northstar:main' into main
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_speedball.nut4
1 files changed, 3 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_speedball.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_speedball.nut
index bba70358..3bc11c3a 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_speedball.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_speedball.nut
@@ -104,7 +104,9 @@ void function DropFlag()
file.flag.ClearParent()
file.flag.SetAngles( < 0, 0, 0 > )
SetGlobalNetEnt( "flagCarrier", file.flag )
- EmitSoundOnEntityOnlyToPlayer( file.flagCarrier, file.flagCarrier, "UI_CTF_1P_FlagDrop" )
+
+ if ( IsValid( file.flagCarrier ) )
+ EmitSoundOnEntityOnlyToPlayer( file.flagCarrier, file.flagCarrier, "UI_CTF_1P_FlagDrop" )
foreach ( entity player in GetPlayerArray() )
MessageToPlayer( player, eEventNotifications.SPEEDBALL_FlagDropped, file.flagCarrier )