mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 17:22:12 +00:00
NiGHTS drill meter penalty when mashing jump button
Thanks Inuyasha (KS) for code
This commit is contained in:
parent
bf74b81842
commit
b28183129f
1 changed files with 7 additions and 0 deletions
|
@ -6635,6 +6635,13 @@ static void P_NiGHTSMovement(player_t *player)
|
|||
S_StartSound(player->mo, sfx_drill1);
|
||||
player->drilltimer = 32;
|
||||
}
|
||||
else if (player->drilltimer == 32)
|
||||
{
|
||||
player->drilltimer = 31;
|
||||
player->drillmeter -= TICRATE/2;
|
||||
if (player->drillmeter <= 0)
|
||||
player->drillmeter = TICRATE/10;
|
||||
}
|
||||
else if (--player->drilltimer <= 0)
|
||||
{
|
||||
player->drilltimer = 10;
|
||||
|
|
Loading…
Reference in a new issue