mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-10 20:16:14 +00:00
capsule->extravalue2 tic timer
This commit is contained in:
parent
f19b7bfacf
commit
9faace9e5d
2 changed files with 6 additions and 3 deletions
|
@ -8751,7 +8751,8 @@ mobj_t *P_SpawnMobj(fixed_t x, fixed_t y, fixed_t z, mobjtype_t type)
|
|||
nummaprings = -1; // no perfect bonus, rings are free
|
||||
break;
|
||||
case MT_EGGCAPSULE:
|
||||
mobj->extravalue1 = -1; // timer for how long a player has been at the capsule
|
||||
mobj->extravalue1 = -1; // sphere timer for how long a player has been at the capsule
|
||||
mobj->extravalue2 = -1; // tic timer for how long a player has been at the capsule
|
||||
break;
|
||||
case MT_REDTEAMRING:
|
||||
mobj->color = skincolor_redteam;
|
||||
|
|
|
@ -5927,6 +5927,8 @@ static void P_DoNiGHTSCapsule(player_t *player)
|
|||
{
|
||||
INT32 i;
|
||||
|
||||
player->capsule->extravalue2++;
|
||||
|
||||
if (abs(player->mo->x-player->capsule->x) <= 2*FRACUNIT)
|
||||
{
|
||||
P_UnsetThingPosition(player->mo);
|
||||
|
@ -6011,7 +6013,7 @@ static void P_DoNiGHTSCapsule(player_t *player)
|
|||
player->capsule->flags &= ~MF_NOGRAVITY;
|
||||
player->capsule->momz = 5*FRACUNIT;
|
||||
player->capsule->reactiontime = 0;
|
||||
player->capsule->extravalue1 = -1;
|
||||
player->capsule->extravalue1 = player->capsule->extravalue2 = -1;
|
||||
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
if (playeringame[i] && !player->exiting && players[i].mare == player->mare)
|
||||
|
@ -6088,7 +6090,7 @@ static void P_DoNiGHTSCapsule(player_t *player)
|
|||
player->texttimer = 4*TICRATE;
|
||||
player->textvar = 3; // Get more rings!
|
||||
player->capsule->reactiontime = 0;
|
||||
player->capsule->extravalue1 = -1;
|
||||
player->capsule->extravalue1 = player->capsule->extravalue2 = -1;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue