mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'lightning-height-check' into 'master'
Height check Lightning Shield attack Closes #1523 See merge request kart-krew-dev/ring-racers-internal!2588
This commit is contained in:
commit
4a6857814a
1 changed files with 6 additions and 0 deletions
|
|
@ -777,6 +777,12 @@ static inline BlockItReturn_t PIT_LightningShieldAttack(mobj_t *thing)
|
|||
return BMIT_CONTINUE;
|
||||
}
|
||||
|
||||
// see if it went over / under
|
||||
if (lightningSource->z - lightningDist > thing->z + thing->height)
|
||||
return BMIT_CONTINUE; // overhead
|
||||
if (lightningSource->z + lightningSource->height + lightningDist < thing->z)
|
||||
return BMIT_CONTINUE; // underneath
|
||||
|
||||
#if 0
|
||||
if (P_CheckSight(lightningSource, thing) == false)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue