Skip to content

Commit

Permalink
Make dropships immune to Titan step damage (#737)
Browse files Browse the repository at this point in the history
Currently dropships take damage from titans stepping on them, this prevents that

Co-authored-by: William Miller <[email protected]>
  • Loading branch information
ASpoonPlaysGames and Zanieon authored Oct 16, 2023
1 parent 8dfc1b9 commit 6df399f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,10 @@ void function SetRecalculateRespawnAsTitanStartPointCallback( entity functionref

bool function ShouldEntTakeDamage_SPMP( entity ent, var damageInfo )
{
// dropships are immune to being crushed
if ( ( IsDropship( ent ) || IsEvacDropship( ent ) ) && IsTitanCrushDamage( damageInfo ) )
return false

return true
}

Expand Down

0 comments on commit 6df399f

Please sign in to comment.