diff options
author | x3Karma <juliuslimck@gmail.com> | 2021-12-30 14:22:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-30 14:22:42 +0800 |
commit | 9c828a8e24f3f9f48c2754cef9e81d9c79adc3f9 (patch) | |
tree | 4bec22a0bc809561e90a8dee8d94f9d3a21bcb46 /Northstar.CustomServers/mod/scripts/vscripts/gamemodes | |
parent | a0923c46ade1d30a9fb0949f9468255b9dd91c50 (diff) | |
parent | bde589963e9030bdae5bfad1cbf068c0ad6e078a (diff) | |
download | NorthstarMods-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.nut | 4 |
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 ) |