mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Reimplement follower hit confirm
This commit is contained in:
parent
01af5127c8
commit
98ec1779d9
1 changed files with 6 additions and 0 deletions
|
|
@ -2883,6 +2883,12 @@ void K_TryHurtSoundExchange(mobj_t *victim, mobj_t *attacker)
|
||||||
|
|
||||||
attacker->player->confirmVictim = (victim->player - players);
|
attacker->player->confirmVictim = (victim->player - players);
|
||||||
attacker->player->confirmVictimDelay = TICRATE/2;
|
attacker->player->confirmVictimDelay = TICRATE/2;
|
||||||
|
|
||||||
|
if (attacker->player->follower != NULL)
|
||||||
|
{
|
||||||
|
const follower_t *fl = &followers[attacker->player->followerskin];
|
||||||
|
attacker->player->follower->movecount = fl->hitconfirmtime; // movecount is used to play the hitconfirm animation for followers.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void K_PlayPowerGloatSound(mobj_t *source)
|
void K_PlayPowerGloatSound(mobj_t *source)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue