Skip to content

Commit

Permalink
Fix Thunderbolt crashing clients when owner is invalid (#906)
Browse files Browse the repository at this point in the history
Hacky fix that adds an extra check if the weapon in question is a thunderbolt
  • Loading branch information
Zanieon authored Nov 27, 2024
1 parent a422da8 commit 49791ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ void function DamageIndicators( DamageHistoryStruct damageHistory, bool playerIs
cockpit.AddToTitanHudDamageHistory( COCKPIT_PANEL_LEFT, damageHistory.damage )
}

if ( damageHistory.attacker && damageHistory.attacker.GetParent() == localViewPlayer )
if ( damageHistory.damageSourceId != eDamageSourceId.mp_weapon_arc_launcher && damageHistory.attacker && damageHistory.attacker.GetParent() == localViewPlayer )
{
damageHistory.rodeoDamage = true
return
Expand Down

0 comments on commit 49791ea

Please sign in to comment.