mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Merge branch 'tailsoverlay-dash' into 'next'
Dash state for Tails overlay (Closes #325) Closes #325 See merge request STJr/SRB2!1210
This commit is contained in:
commit
fdbeafca42
4 changed files with 8 additions and 0 deletions
|
@ -5178,6 +5178,7 @@ static const char *const STATE_LIST[] = { // array length left dynamic for sanit
|
|||
"S_TAILSOVERLAY_PAIN",
|
||||
"S_TAILSOVERLAY_GASP",
|
||||
"S_TAILSOVERLAY_EDGE",
|
||||
"S_TAILSOVERLAY_DASH",
|
||||
|
||||
// [:
|
||||
"S_JETFUMEFLASH",
|
||||
|
|
|
@ -584,6 +584,7 @@ char spr2names[NUMPLAYERSPRITES][5] =
|
|||
"TAL9",
|
||||
"TALA",
|
||||
"TALB",
|
||||
"TALC",
|
||||
|
||||
"CNT1",
|
||||
"CNT2",
|
||||
|
@ -661,6 +662,7 @@ playersprite_t spr2defaults[NUMPLAYERSPRITES] = {
|
|||
SPR2_TAL0, // SPR2_TAL9,
|
||||
SPR2_TAL9, // SPR2_TALA,
|
||||
SPR2_TAL0, // SPR2_TALB,
|
||||
SPR2_TAL6, // SPR2_TALC,
|
||||
|
||||
SPR2_WAIT, // SPR2_CNT1,
|
||||
SPR2_FALL, // SPR2_CNT2,
|
||||
|
@ -801,6 +803,7 @@ state_t states[NUMSTATES] =
|
|||
{SPR_PLAY, SPR2_TAL9|FF_SPR2MIDSTART, 35, {NULL}, 0, 0, S_TAILSOVERLAY_PAIN}, // S_TAILSOVERLAY_PAIN
|
||||
{SPR_PLAY, SPR2_TALA|FF_SPR2MIDSTART, 35, {NULL}, 0, 0, S_TAILSOVERLAY_GASP}, // S_TAILSOVERLAY_GASP
|
||||
{SPR_PLAY, SPR2_TALB , 35, {NULL}, 0, 0, S_TAILSOVERLAY_EDGE}, // S_TAILSOVERLAY_EDGE
|
||||
{SPR_PLAY, SPR2_TALC|FF_SPR2MIDSTART, 35, {NULL}, 0, 0, S_TAILSOVERLAY_DASH}, // S_TAILSOVERLAY_DASH
|
||||
|
||||
// [:
|
||||
{SPR_JETF, 3|FF_ANIMATE|FF_FULLBRIGHT, 2, {NULL}, 1, 1, S_JETFUME1}, // S_JETFUMEFLASH
|
||||
|
|
|
@ -856,6 +856,7 @@ typedef enum playersprite
|
|||
SPR2_TAL9,
|
||||
SPR2_TALA,
|
||||
SPR2_TALB,
|
||||
SPR2_TALC,
|
||||
|
||||
SPR2_CNT1, // continue disappointment
|
||||
SPR2_CNT2, // continue lift
|
||||
|
@ -997,6 +998,7 @@ typedef enum state
|
|||
S_TAILSOVERLAY_PAIN,
|
||||
S_TAILSOVERLAY_GASP,
|
||||
S_TAILSOVERLAY_EDGE,
|
||||
S_TAILSOVERLAY_DASH,
|
||||
|
||||
// [:
|
||||
S_JETFUMEFLASH,
|
||||
|
|
|
@ -11206,6 +11206,8 @@ static void P_DoTailsOverlay(player_t *player, mobj_t *tails)
|
|||
chosenstate = S_TAILSOVERLAY_GASP;
|
||||
else if (player->mo->state-states == S_PLAY_EDGE)
|
||||
chosenstate = S_TAILSOVERLAY_EDGE;
|
||||
else if (player->panim == PA_DASH)
|
||||
chosenstate = S_TAILSOVERLAY_DASH;
|
||||
else if (player->panim == PA_RUN)
|
||||
chosenstate = S_TAILSOVERLAY_RUN;
|
||||
else if (player->panim == PA_WALK)
|
||||
|
|
Loading…
Reference in a new issue