mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-02 14:12:47 +00:00
Finalize Bungee hardcode
This commit is contained in:
parent
85a103e743
commit
9b432381c6
2 changed files with 6 additions and 5 deletions
|
|
@ -11845,7 +11845,9 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
}
|
||||
|
||||
Obj_RingShooterInput(player);
|
||||
Obj_playerBungeeThink(player);
|
||||
|
||||
if (player->bungee)
|
||||
Obj_playerBungeeThink(player);
|
||||
}
|
||||
|
||||
void K_CheckSpectateStatus(boolean considermapreset)
|
||||
|
|
|
|||
|
|
@ -49,8 +49,6 @@ void Obj_BungeeSpecial(mobj_t *mo, player_t *p)
|
|||
|
||||
S_StartSound(mo, sfx_s3k5a);
|
||||
P_SetTarget(&p->mo->tracer, latch);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// this is the thinker to call on the player when they get bungee'd.
|
||||
|
|
@ -61,7 +59,7 @@ void Obj_playerBungeeThink(player_t *p)
|
|||
UINT8 i;
|
||||
|
||||
// someone removed it
|
||||
if (!bungee || !P_MobjWasRemoved(bungee))
|
||||
if (!bungee || P_MobjWasRemoved(bungee))
|
||||
return;
|
||||
|
||||
bungee->tics = 4; // we set this to a low value so that it despawns if the player vanishes for some reason.
|
||||
|
|
@ -90,7 +88,7 @@ void Obj_playerBungeeThink(player_t *p)
|
|||
|
||||
p->mo->flags &= ~MF_NOGRAVITY;
|
||||
p->mo->flags &= ~MF_NOCLIPTHING;
|
||||
p->mo->pflags &= ~PF_NOFASTFALL;
|
||||
p->pflags &= ~PF_NOFASTFALL;
|
||||
p->bungee = BUNGEE_NONE;
|
||||
P_InstaThrust(p->mo, bungee->angle, p->mo->momz/8);
|
||||
p->mo->momz = (p->mo->momz*3)/4;
|
||||
|
|
@ -115,6 +113,7 @@ void Obj_playerBungeeThink(player_t *p)
|
|||
|
||||
P_SetScale(seg, mapobjectscale/3);
|
||||
seg->color = SKINCOLOR_EMERALD;
|
||||
seg->frame = 0;
|
||||
seg->fuse = 2;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue