Updated speed lines

This commit is contained in:
TehRealSalt 2018-09-15 01:24:29 -04:00
parent a76e341711
commit cf7198f765
4 changed files with 8 additions and 17 deletions

View file

@ -6253,9 +6253,6 @@ static const char *const STATE_LIST[] = { // array length left dynamic for sanit
"S_FASTLINE3",
"S_FASTLINE4",
"S_FASTLINE5",
"S_FASTLINE6",
"S_FASTLINE7",
"S_FASTLINE8",
// Thunder Shield Burst

View file

@ -2584,10 +2584,7 @@ state_t states[NUMSTATES] =
{SPR_FAST, FF_PAPERSPRITE|FF_FULLBRIGHT|1, 1, {NULL}, 0, 0, S_FASTLINE3}, // S_FASTLINE2
{SPR_FAST, FF_PAPERSPRITE|FF_FULLBRIGHT|2, 1, {NULL}, 0, 0, S_FASTLINE4}, // S_FASTLINE3
{SPR_FAST, FF_PAPERSPRITE|FF_FULLBRIGHT|3, 1, {NULL}, 0, 0, S_FASTLINE5}, // S_FASTLINE4
{SPR_FAST, FF_PAPERSPRITE|FF_FULLBRIGHT|4, 1, {NULL}, 0, 0, S_FASTLINE6}, // S_FASTLINE5
{SPR_FAST, FF_PAPERSPRITE|FF_FULLBRIGHT|5, 1, {NULL}, 0, 0, S_FASTLINE7}, // S_FASTLINE6
{SPR_FAST, FF_PAPERSPRITE|FF_FULLBRIGHT|6, 1, {NULL}, 0, 0, S_FASTLINE8}, // S_FASTLINE7
{SPR_FAST, FF_PAPERSPRITE|FF_FULLBRIGHT|7, 1, {NULL}, 0, 0, S_NULL}, // S_FASTLINE8
{SPR_FAST, FF_PAPERSPRITE|FF_FULLBRIGHT|4, 1, {NULL}, 0, 0, S_NULL}, // S_FASTLINE5
{SPR_BOST, FF_FULLBRIGHT|FF_ANIMATE, TICRATE, {NULL}, 6, 1, S_BOOSTSMOKESPAWNER}, // S_BOOSTFLAME
{SPR_NULL, 0, TICRATE/2, {NULL}, 0, 0, S_NULL}, // S_BOOSTSMOKESPAWNER

View file

@ -3101,9 +3101,6 @@ typedef enum state
S_FASTLINE3,
S_FASTLINE4,
S_FASTLINE5,
S_FASTLINE6,
S_FASTLINE7,
S_FASTLINE8,
// Magnet Burst

View file

@ -3314,16 +3314,16 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
K_GetKartBoostPower(player);
// Speed lines
if (player->kartstuff[k_speedboost] > FRACUNIT/8 && (leveltime & 1))
if ((player->kartstuff[k_sneakertimer] || player->kartstuff[k_driftboost] || player->kartstuff[k_startboost]) && player->speed > 0)
{
mobj_t *fast = P_SpawnMobj(player->mo->x + (P_RandomRange(-32,32)<<FRACBITS),
player->mo->y + (P_RandomRange(-32,32)<<FRACBITS),
player->mo->z + (player->mo->height/2) + (P_RandomRange(-24,24)<<FRACBITS),
mobj_t *fast = P_SpawnMobj(player->mo->x + (P_RandomRange(-36,36)<<FRACBITS),
player->mo->y + (P_RandomRange(-36,36)<<FRACBITS),
player->mo->z + (player->mo->height/2) + (P_RandomRange(-20,20)<<FRACBITS),
MT_FASTLINE);
fast->angle = R_PointToAngle2(0, 0, player->mo->momx, player->mo->momy);
fast->momx = player->mo->momx/2;
fast->momy = player->mo->momy/2;
fast->momz = player->mo->momz/2;
fast->momx = 3*player->mo->momx/4;
fast->momy = 3*player->mo->momy/4;
fast->momz = 3*player->mo->momz/4;
}
if (player->kartstuff[k_eggmanexplode]) // You're gonna diiiiie