Make Fangboss' player pogo a little less bullshit by having an actually sensible calculation instead of trying to be smart.

The old behaviour was trying way too hard to be smart and as a consequence made the hitbox way too huge.
This commit is contained in:
toaster 2020-01-11 17:08:08 +00:00
parent 661c44b260
commit a5ad02eab9

View file

@ -433,7 +433,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|| special->state == &states[S_FANG_BOUNCE4]
|| special->state == &states[S_FANG_PINCHBOUNCE3]
|| special->state == &states[S_FANG_PINCHBOUNCE4])
&& P_MobjFlip(special)*((special->z + special->height/2) - (toucher->z - toucher->height/2)) > (special->height/4))
&& P_MobjFlip(special)*((special->z + special->height/2) - (toucher->z + toucher->height/2)) > (toucher->height/2))
{
P_DamageMobj(toucher, special, special, 1, 0);
P_SetTarget(&special->tracer, toucher);