mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Spindash iframe ring drain based off of speed/weight
This commit is contained in:
parent
784a541c09
commit
d843cc5b5c
1 changed files with 2 additions and 1 deletions
|
|
@ -8713,6 +8713,7 @@ static void K_KartSpindash(player_t *player)
|
||||||
{
|
{
|
||||||
if ((cmd->buttons & (BT_DRIFT|BT_BRAKE)) == (BT_DRIFT|BT_BRAKE))
|
if ((cmd->buttons & (BT_DRIFT|BT_BRAKE)) == (BT_DRIFT|BT_BRAKE))
|
||||||
{
|
{
|
||||||
|
UINT8 ringdropframes = 2 + (player->kartspeed + player->kartweight);
|
||||||
INT16 chargetime = MAXCHARGETIME - ++player->spindash;
|
INT16 chargetime = MAXCHARGETIME - ++player->spindash;
|
||||||
boolean spawnOldEffect = true;
|
boolean spawnOldEffect = true;
|
||||||
|
|
||||||
|
|
@ -8727,7 +8728,7 @@ static void K_KartSpindash(player_t *player)
|
||||||
K_KartSpindashWind(player->mo);
|
K_KartSpindashWind(player->mo);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player->flashing > 0 && (leveltime & 1) && player->hyudorotimer == 0)
|
if (player->flashing > 0 && (player->spindash % ringdropframes == 0) && player->hyudorotimer == 0)
|
||||||
{
|
{
|
||||||
// Every frame that you're invisible from flashing, spill a ring.
|
// Every frame that you're invisible from flashing, spill a ring.
|
||||||
// Intentionally a lop-sided trade-off, so the game doesn't become
|
// Intentionally a lop-sided trade-off, so the game doesn't become
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue