mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-14 02:32:38 +00:00
Put dashmode players in pain state when damaging enemy with >1HP
This commit is contained in:
parent
253775fc96
commit
ab0bb76705
1 changed files with 3 additions and 0 deletions
|
|
@ -477,6 +477,9 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
toucher->momy = -toucher->momy;
|
||||
if (player->charability == CA_FLY && player->panim == PA_ABILITY)
|
||||
toucher->momz = -toucher->momz/2;
|
||||
if (player->dashmode >= DASHMODE_THRESHOLD && (player->charflags & (SF_DASHMODE|SF_MACHINE)) == (SF_DASHMODE|SF_MACHINE)
|
||||
&& player->panim == PA_DASH)
|
||||
P_DoPlayerPain(player, special, special);
|
||||
}
|
||||
P_DamageMobj(special, toucher, toucher, 1, 0);
|
||||
if (player->charability == CA_TWINSPIN && player->panim == PA_ABILITY)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue