Remove filthy filthy cheats

This commit is contained in:
fickleheart 2019-01-08 20:36:06 -06:00
parent 1bacc4e395
commit cd71e94785
2 changed files with 4 additions and 11 deletions

View file

@ -1552,9 +1552,6 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
else if (cmd->driftturn < (-angleturn[1] * realtics))
cmd->driftturn = (-angleturn[1] * realtics);
cmd->angleturn = FixedMul(cmd->angleturn, cv_cam2_dist.value/160);
if (cv_playbackspeed.value == 1)
if (player->mo)
cmd->angleturn = K_GetKartTurnValue(player, cmd->angleturn);

View file

@ -6649,10 +6649,6 @@ static void P_MovePlayer(player_t *player)
player->lturn_max[leveltime%MAXPREDICTTICS] = player->rturn_max[leveltime%MAXPREDICTTICS] = 0;
}
if (cv_soniccd.value)
{
player->mo->angle = cmd->angleturn << 16;
} else
if (leveltime >= starttime)
{
// KART: Don't directly apply angleturn! It may have been either A) forged by a malicious client, or B) not be a smooth turn due to a player dropping frames.
@ -6678,10 +6674,10 @@ static void P_MovePlayer(player_t *player)
if (add_delta) {
player->mo->angle += angle_diff<<16;
player->mo->angle &= ~0xFFFF; // Try to keep the turning somewhat similar to how it was before?
CONS_Printf("leftover turn (%s): %5d or %4d%%\n",
player_names[player-players],
(INT16) (cmd->angleturn - (player->mo->angle>>16)),
(INT16) (cmd->angleturn - (player->mo->angle>>16)) * 100 / (angle_diff ?: 1));
//CONS_Printf("leftover turn (%s): %5d or %4d%%\n",
// player_names[player-players],
// (INT16) (cmd->angleturn - (player->mo->angle>>16)),
// (INT16) (cmd->angleturn - (player->mo->angle>>16)) * 100 / (angle_diff ?: 1));
}
}