Reset Flamedash when flamestore expires
This makes it so that the turning loss given by the flameshield resets when you use up your flameshield, rather then lingering.
This commit is contained in:
parent
739c449745
commit
89d2fd24f6
2 changed files with 4 additions and 0 deletions
|
|
@ -2515,6 +2515,7 @@ void K_PlayerItemThink(player_t *player, boolean onground)
|
|||
{
|
||||
player->itemamount--;
|
||||
player->flametimer = (itemtime*3);
|
||||
player->flamedash = 0;
|
||||
mobj_t *shield = P_SpawnMobj(player->mo->x, player->mo->y, player->mo->z, MT_FLAMESHIELD);
|
||||
P_SetScale(shield, (shield->destscale = (5*shield->destscale)>>2));
|
||||
P_SetTarget(&shield->target, player->mo);
|
||||
|
|
|
|||
|
|
@ -7764,7 +7764,10 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
if (player->flamestore)
|
||||
{
|
||||
if (--player->flamestore == 0)
|
||||
{
|
||||
S_StopSoundByID(player->mo, sfx_s3kd3l);
|
||||
player->flamedash = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (player->flametimer > 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue