mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-25 19:43:22 +00:00
Height check Lightning Shield attack
This commit is contained in:
parent
da2a1dfd77
commit
628d9cd127
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;
|
return BMIT_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// see if it went over / under
|
||||||
|
if (lightningSource->z > thing->z + thing->height)
|
||||||
|
return BMIT_CONTINUE; // overhead
|
||||||
|
if (lightningSource->z + lightningSource->height < thing->z)
|
||||||
|
return BMIT_CONTINUE; // underneath
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if (P_CheckSight(lightningSource, thing) == false)
|
if (P_CheckSight(lightningSource, thing) == false)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue