mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'rings' of git@git.magicalgirl.moe:KartKrew/Kart.git into rings_slopechange
This commit is contained in:
commit
7635743486
4 changed files with 6 additions and 6 deletions
|
|
@ -1657,9 +1657,9 @@ static void K_UpdateDraft(player_t *player)
|
|||
UINT8 i;
|
||||
|
||||
// Distance you have to be to draft. If you're still accelerating, then this distance is lessened.
|
||||
// This distance biases toward low weight! (min weight gets 3584 units, max weight gets 2560 units)
|
||||
// This distance biases toward low weight! (min weight gets 4096 units, max weight gets 3072 units)
|
||||
// This distance is also scaled based on game speed.
|
||||
draftdistance = (2560 + (128 * (9 - player->kartweight))) * player->mo->scale;
|
||||
draftdistance = (3072 + (128 * (9 - player->kartweight))) * player->mo->scale;
|
||||
if (player->speed < topspd)
|
||||
draftdistance = FixedMul(draftdistance, FixedDiv(player->speed, topspd));
|
||||
draftdistance = FixedMul(draftdistance, K_GetKartGameSpeedScalar(gamespeed));
|
||||
|
|
|
|||
|
|
@ -6702,7 +6702,7 @@ void P_MobjThinker(mobj_t *mobj)
|
|||
|
||||
if ((G_RaceGametype() || mobj->target->player->kartstuff[k_bumper] <= 0)
|
||||
#if 1 // Set to 0 to test without needing to host
|
||||
|| ((mobj->target->player == &players[displayplayers[0]]) || P_IsLocalPlayer(mobj->target->player))
|
||||
|| (P_IsDisplayPlayer(mobj->target->player))
|
||||
#endif
|
||||
)
|
||||
mobj->flags2 |= MF2_DONTDRAW;
|
||||
|
|
|
|||
|
|
@ -4242,7 +4242,7 @@ DoneSection2:
|
|||
player->starpostangle = player->starpostx = player->starposty = player->starpostz = player->kartstuff[k_starpostflip] = 0;
|
||||
}
|
||||
|
||||
if (P_IsLocalPlayer(player))
|
||||
if (P_IsDisplayPlayer(player))
|
||||
{
|
||||
if (player->laps == (UINT8)(cv_numlaps.value - 1))
|
||||
S_StartSound(NULL, sfx_s3k68);
|
||||
|
|
@ -4272,7 +4272,7 @@ DoneSection2:
|
|||
|
||||
if (player->laps >= (unsigned)cv_numlaps.value)
|
||||
{
|
||||
if (P_IsLocalPlayer(player))
|
||||
if (P_IsDisplayPlayer(player))
|
||||
S_StartSound(NULL, sfx_s3k6a);
|
||||
else if (player->kartstuff[k_position] == 1)
|
||||
S_StartSound(NULL, sfx_s253);
|
||||
|
|
|
|||
|
|
@ -1674,7 +1674,7 @@ void P_DoPlayerExit(player_t *player)
|
|||
|
||||
if (cv_kartvoices.value)
|
||||
{
|
||||
if (P_IsLocalPlayer(player))
|
||||
if (P_IsDisplayPlayer(player))
|
||||
{
|
||||
sfxenum_t sfx_id;
|
||||
if (K_IsPlayerLosing(player))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue