Skip to content

Commit 3572234

Browse files
authored
Merge pull request #1007 from connman116/reactivedrop_beta
Update asw_marine.cpp make hornets and smartbomb nolonger friendlyfire
2 parents d0d931f + 3117211 commit 3572234

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/game/server/swarm/asw_marine.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,6 +1419,11 @@ int CASW_Marine::OnTakeDamage_Alive( const CTakeDamageInfo &info )
14191419
Msg( " but all ignored, since it's from a team mate\n" );
14201420
return 0;
14211421
}
1422+
//make hornet and smart bomb no longer friendlyfire
1423+
else if (!ASWDeathmatchMode() && pWeapon && (pWeapon->Classify() == CLASS_ASW_HORNET_BARRAGE || pWeapon->Classify() == CLASS_ASW_SMART_BOMB))
1424+
{
1425+
return 0;
1426+
}
14221427
else
14231428
{
14241429
if ( newInfo.GetDamageType() & DMG_CLUB )

0 commit comments

Comments
 (0)