aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/weapons/_weapon_utility.nut4
1 files changed, 4 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/weapons/_weapon_utility.nut b/Northstar.CustomServers/mod/scripts/vscripts/weapons/_weapon_utility.nut
index b3e5f5a3..40d42fd1 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/weapons/_weapon_utility.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/weapons/_weapon_utility.nut
@@ -2774,6 +2774,8 @@ void function PAS_CooldownReduction_OnKill( entity victim, entity attacker, var
if ( GetCurrentPlaylistVarInt( "featured_mode_tactikill", 0 ) > 0 )
{
entity weapon = attacker.GetOffhandWeapon( OFFHAND_LEFT )
+ if ( !IsValid(weapon) )
+ return
switch ( GetWeaponInfoFileKeyField_Global( weapon.GetWeaponClassName(), "cooldown_type" ) )
{
@@ -2807,6 +2809,8 @@ void function PAS_CooldownReduction_OnKill( entity victim, entity attacker, var
return
entity weapon = attacker.GetOffhandWeapon( OFFHAND_LEFT )
+ if ( !IsValid(weapon) )
+ return
switch ( GetWeaponInfoFileKeyField_Global( weapon.GetWeaponClassName(), "cooldown_type" ) )
{