mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +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
b29a3958e0
commit
3a0f5fd2ae
2 changed files with 16 additions and 17 deletions
18
src/g_game.c
18
src/g_game.c
|
@ -4339,20 +4339,10 @@ void G_GhostTicker(void)
|
|||
switch(g->color)
|
||||
{
|
||||
case GHC_SUPER: // Super Sonic (P_DoSuperStuff)
|
||||
// Yousa yellow now!
|
||||
g->mo->color = SKINCOLOR_SUPER1 + (leveltime/2) % 5;
|
||||
if (g->mo->skin)
|
||||
switch (((skin_t*)g->mo->skin)-skins)
|
||||
{
|
||||
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;
|
||||
}
|
||||
if (leveltime % 9 < 5)
|
||||
g->mo->color = SKINCOLOR_SUPER1 + leveltime % 9;
|
||||
else
|
||||
g->mo->color = SKINCOLOR_SUPER1 + 9 - leveltime % 9;
|
||||
break;
|
||||
case GHC_INVINCIBLE: // Mario invincibility (P_CheckInvincibilityTimer)
|
||||
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)
|
||||
{
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue