mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Player hyudorotimer: use modulate blendmode instead of flickering
- Player invisibility is preserved for other players - Flicker blendmode (and visibility, for other players) at beginning and end of hyudorotimer
This commit is contained in:
parent
6878c7dd90
commit
2fd5ae3cb3
1 changed files with 6 additions and 10 deletions
16
src/k_kart.c
16
src/k_kart.c
|
|
@ -11667,23 +11667,19 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
|
||||
if (player->hyudorotimer > 0)
|
||||
{
|
||||
if (leveltime & 1)
|
||||
player->mo->renderflags |= RF_DONTDRAW | RF_MODULATE;
|
||||
player->mo->renderflags &= ~K_GetPlayerDontDrawFlag(player);
|
||||
|
||||
if (!(leveltime & 1) && (player->hyudorotimer < (TICRATE/2) || player->hyudorotimer > hyudorotime-(TICRATE/2)))
|
||||
{
|
||||
player->mo->renderflags |= RF_DONTDRAW;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (player->hyudorotimer >= (TICRATE/2) && player->hyudorotimer <= hyudorotime-(TICRATE/2))
|
||||
player->mo->renderflags &= ~K_GetPlayerDontDrawFlag(player);
|
||||
else
|
||||
player->mo->renderflags &= ~RF_DONTDRAW;
|
||||
player->mo->renderflags &= ~(RF_DONTDRAW | RF_BLENDMASK);
|
||||
}
|
||||
|
||||
player->flashing = player->hyudorotimer; // We'll do this for now, let's people know about the invisible people through subtle hints
|
||||
}
|
||||
else if (player->hyudorotimer == 0)
|
||||
{
|
||||
player->mo->renderflags &= ~RF_DONTDRAW;
|
||||
player->mo->renderflags &= ~RF_BLENDMASK;
|
||||
}
|
||||
|
||||
if (player->trickpanel == 1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue