Skip to content

Commit 01ff4dd

Browse files
authored
Update asw_marine.cpp make hornets and smartbomb nolonger friendlyfire
1 parent bdc69f7 commit 01ff4dd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/game/server/swarm/asw_marine.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,12 @@ 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-
else
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+
}
1427+
else
14231428
{
14241429
if ( newInfo.GetDamageType() & DMG_CLUB )
14251430
{

0 commit comments

Comments
 (0)