From 01bbbfe08debdb81658f6363d2a1d061e3eeeb73 Mon Sep 17 00:00:00 2001 From: kitsune Date: Thu, 6 Nov 2025 07:14:18 +0100 Subject: [PATCH] hotfix: OnHitConfirm --- src/game/shared/swarm/rd_inventory_shared.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/game/shared/swarm/rd_inventory_shared.cpp b/src/game/shared/swarm/rd_inventory_shared.cpp index b67dbf516..9e8ac3eb7 100644 --- a/src/game/shared/swarm/rd_inventory_shared.cpp +++ b/src/game/shared/swarm/rd_inventory_shared.cpp @@ -3799,13 +3799,18 @@ namespace ReactiveDropInventory if ( engine->IsPlayingDemo() ) return; #endif - if ( !ASWGameResource() - || !pAttacker - || !pTarget ) + if ( !ASWGameResource() ) return; if ( !ASWDeathmatchMode() ) { + // Alien Kill Streak reset after marine death + if ( bKilled && pTarget && pTarget->IsInhabitableNPC() ) + s_RD_Inventory_Manager.IncrementStrangePropertyOnEquippedItems( assert_cast( pTarget ), 5007, 0, 0, false ); + + if ( !pAttacker && !pTarget ) + return; + if ( bKilled && pWeapon && pAttacker->IsInhabitableNPC() && pTarget->IsAlien() ) @@ -3842,6 +3847,7 @@ namespace ReactiveDropInventory else { if ( bKilled && pWeapon + && pAttacker && pTarget && pAttacker != pTarget && pAttacker->IsInhabitableNPC() && pTarget->Classify() == (Class_T)CLASS_ASW_MARINE )