Remove driftfix and disable looking backwards

I believe editing the player data in G_BuildTiccmd will cause desync, especially for anything that would effect gameplay
driftfix didn't seem to do much, will find a way to re-enable looking backwards properly later (probably change one of the buttons, DRIFTLEFT or DRIFRRIGHT?)
This commit is contained in:
Sryder 2017-03-06 21:24:23 +00:00
parent f00f74d69b
commit bdd03bc830
4 changed files with 2 additions and 16 deletions

View File

@ -256,7 +256,6 @@ typedef enum
k_driftangle, // Stores player turn angle for drifting
k_driftcharge, // Charge your drift so you can release a burst of speed
k_driftboost, // Boost you get from drifting
k_driftfix, // Used to fix your angle after releasing drift.
k_boostcharge, // Charge-up for boosting at the start of the race, or when Lakitu drops you
k_jmp, // In Mario Kart, letting go of the jump button stops the drift
k_lakitu, // > 0 = Lakitu fishing, < 0 = Lakitu lap counter (was "player->airtime") // NOTE: Check for ->lakitu, replace with this

View File

@ -1147,6 +1147,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics)
}
*/
/*
if (PLAYER1INPUTDOWN(gc_lookback))
{
if (camera.chase && !player->kartstuff[k_camspin])
@ -1154,6 +1155,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics)
}
else if (player->kartstuff[k_camspin] > 0)
player->kartstuff[k_camspin] = -1;
*/
// jump button
if (PLAYER1INPUTDOWN(gc_jump))

View File

@ -1780,19 +1780,6 @@ fixed_t K_GetKartTurnValue(player_t *player, ticcmd_t *cmd)
player->kartstuff[k_driftangle] = p_angle;
if (!player->kartstuff[k_drift] && player->kartstuff[k_driftfix] > 0)
{
if (P_IsObjectOnGround(player->mo))
p_angle += FixedMul(800, adjustangle);
player->kartstuff[k_driftfix]--;
}
else if (!player->kartstuff[k_drift] && player->kartstuff[k_driftfix] < 0)
{
if (P_IsObjectOnGround(player->mo))
p_angle -= FixedMul(800, adjustangle);
player->kartstuff[k_driftfix]++;
}
return p_angle;
}

View File

@ -4591,12 +4591,10 @@ static void P_3dMovement(player_t *player)
if (player->kartstuff[k_drift] >= 1)
{
movepushangle = player->mo->angle+ANGLE_45;
player->kartstuff[k_driftfix] = 5;
}
else if (player->kartstuff[k_drift] <= -1)
{
movepushangle = player->mo->angle-ANGLE_45;
player->kartstuff[k_driftfix] = -5;
}
else
movepushangle = player->mo->angle;