Skip to content

Commit c272b17

Browse files
authored
Merge pull request #997 from Kitsune44/hotfix
hotfix: OnHitConfirm
2 parents efcca99 + 01bbbfe commit c272b17

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/game/shared/swarm/rd_inventory_shared.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3799,13 +3799,18 @@ namespace ReactiveDropInventory
37993799
if ( engine->IsPlayingDemo() )
38003800
return;
38013801
#endif
3802-
if ( !ASWGameResource()
3803-
|| !pAttacker
3804-
|| !pTarget )
3802+
if ( !ASWGameResource() )
38053803
return;
38063804

38073805
if ( !ASWDeathmatchMode() )
38083806
{
3807+
// Alien Kill Streak reset after marine death
3808+
if ( bKilled && pTarget && pTarget->IsInhabitableNPC() )
3809+
s_RD_Inventory_Manager.IncrementStrangePropertyOnEquippedItems( assert_cast<CASW_Inhabitable_NPC*>( pTarget ), 5007, 0, 0, false );
3810+
3811+
if ( !pAttacker && !pTarget )
3812+
return;
3813+
38093814
if ( bKilled && pWeapon
38103815
&& pAttacker->IsInhabitableNPC()
38113816
&& pTarget->IsAlien() )
@@ -3842,6 +3847,7 @@ namespace ReactiveDropInventory
38423847
else
38433848
{
38443849
if ( bKilled && pWeapon
3850+
&& pAttacker && pTarget
38453851
&& pAttacker != pTarget
38463852
&& pAttacker->IsInhabitableNPC()
38473853
&& pTarget->Classify() == (Class_T)CLASS_ASW_MARINE )

0 commit comments

Comments
 (0)