mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 22:00:50 +00:00
Changed super colors to make them pulse instead of flash. Removed alt. supercolors from replay ghost stuff, because that's stupid. :/
git-svn-id: https://code.orospakr.ca/svn/srb2/trunk@8999 6de4a73c-47e2-0310-b8c1-93d6ecd3f8cd
This commit is contained in:
parent
092134ad0c
commit
8d7b5941a8
2 changed files with 16 additions and 17 deletions
18
src/g_game.c
18
src/g_game.c
|
@ -4329,20 +4329,10 @@ void G_GhostTicker(void)
|
||||||
switch(g->color)
|
switch(g->color)
|
||||||
{
|
{
|
||||||
case GHC_SUPER: // Super Sonic (P_DoSuperStuff)
|
case GHC_SUPER: // Super Sonic (P_DoSuperStuff)
|
||||||
// Yousa yellow now!
|
if (leveltime % 9 < 5)
|
||||||
g->mo->color = SKINCOLOR_SUPER1 + (leveltime/2) % 5;
|
g->mo->color = SKINCOLOR_SUPER1 + leveltime % 9;
|
||||||
if (g->mo->skin)
|
else
|
||||||
switch (((skin_t*)g->mo->skin)-skins)
|
g->mo->color = SKINCOLOR_SUPER1 + 9 - leveltime % 9;
|
||||||
{
|
|
||||||
case 1: // Golden orange supertails.
|
|
||||||
g->mo->color = SKINCOLOR_TSUPER1 + (leveltime/2) % 5;
|
|
||||||
break;
|
|
||||||
case 2: // Pink superknux.
|
|
||||||
g->mo->color = SKINCOLOR_KSUPER1 + (leveltime/2) % 5;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case GHC_INVINCIBLE: // Mario invincibility (P_CheckInvincibilityTimer)
|
case GHC_INVINCIBLE: // Mario invincibility (P_CheckInvincibilityTimer)
|
||||||
g->mo->color = (UINT8)(leveltime % MAXSKINCOLORS);
|
g->mo->color = (UINT8)(leveltime % MAXSKINCOLORS);
|
||||||
|
|
15
src/p_user.c
15
src/p_user.c
|
@ -3385,13 +3385,22 @@ static void P_DoSuperStuff(player_t *player)
|
||||||
switch (player->skin)
|
switch (player->skin)
|
||||||
{
|
{
|
||||||
case 1: // Golden orange supertails.
|
case 1: // Golden orange supertails.
|
||||||
player->mo->color = SKINCOLOR_TSUPER1 + (leveltime/2) % 5;
|
if (leveltime % 9 < 5)
|
||||||
|
player->mo->color = SKINCOLOR_TSUPER1 + leveltime % 9;
|
||||||
|
else
|
||||||
|
player->mo->color = SKINCOLOR_TSUPER1 + 9 - leveltime % 9;
|
||||||
break;
|
break;
|
||||||
case 2: // Pink superknux.
|
case 2: // Pink superknux.
|
||||||
player->mo->color = SKINCOLOR_KSUPER1 + (leveltime/2) % 5;
|
if (leveltime % 9 < 5)
|
||||||
|
player->mo->color = SKINCOLOR_KSUPER1 + leveltime % 9;
|
||||||
|
else
|
||||||
|
player->mo->color = SKINCOLOR_KSUPER1 + 9 - leveltime % 9;
|
||||||
break;
|
break;
|
||||||
default: // Yousa yellow now!
|
default: // Yousa yellow now!
|
||||||
player->mo->color = SKINCOLOR_SUPER1 + (leveltime/2) % 5;
|
if (leveltime % 9 < 5)
|
||||||
|
player->mo->color = SKINCOLOR_SUPER1 + leveltime % 9;
|
||||||
|
else
|
||||||
|
player->mo->color = SKINCOLOR_SUPER1 + 9 - leveltime % 9;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue