Added bounce-off behavior for multi-hit enemies/bosses
This commit is contained in:
parent
3fdf48f9b0
commit
98d0a0d98e
|
@ -471,6 +471,11 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
||||||
toucher->momy = -toucher->momy;
|
toucher->momy = -toucher->momy;
|
||||||
if (player->charability == CA_FLY && player->panim == PA_ABILITY)
|
if (player->charability == CA_FLY && player->panim == PA_ABILITY)
|
||||||
toucher->momz = -toucher->momz/2;
|
toucher->momz = -toucher->momz/2;
|
||||||
|
else if (player->charability == CA_GLIDEANDCLIMB && player->pflags & PF_GLIDING && !P_IsObjectOnGround(player->mo))
|
||||||
|
{
|
||||||
|
player->pflags &= ~(PF_GLIDING|PF_JUMPED|PF_NOJUMPDAMAGE);
|
||||||
|
P_SetPlayerMobjState(player->mo, S_PLAY_FALL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
P_DamageMobj(special, toucher, toucher, 1, 0);
|
P_DamageMobj(special, toucher, toucher, 1, 0);
|
||||||
if (player->charability == CA_TWINSPIN && player->panim == PA_ABILITY)
|
if (player->charability == CA_TWINSPIN && player->panim == PA_ABILITY)
|
||||||
|
|
Loading…
Reference in a new issue