mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-03-22 19:02:15 +00:00
Camera adjustments
- reverted boostcam timing, different max dist - zooms out based on camera momz - drift panning is twice as slow
This commit is contained in:
parent
1cdf5623db
commit
a9f34ce8ba
2 changed files with 5 additions and 7 deletions
|
@ -3273,13 +3273,13 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
if (player->kartstuff[k_boostcam] < player->kartstuff[k_destboostcam]
|
||||
&& player->kartstuff[k_destboostcam] != 0)
|
||||
{
|
||||
player->kartstuff[k_boostcam] += FRACUNIT/5;
|
||||
player->kartstuff[k_boostcam] += FRACUNIT/(TICRATE/4);
|
||||
if (player->kartstuff[k_boostcam] >= player->kartstuff[k_destboostcam])
|
||||
player->kartstuff[k_destboostcam] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
player->kartstuff[k_boostcam] -= FRACUNIT/20;
|
||||
player->kartstuff[k_boostcam] -= FRACUNIT/TICRATE;
|
||||
if (player->kartstuff[k_boostcam] < player->kartstuff[k_destboostcam])
|
||||
player->kartstuff[k_boostcam] = player->kartstuff[k_destboostcam] = 0;
|
||||
}
|
||||
|
|
|
@ -8373,16 +8373,14 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
|
||||
if (player->speed > K_GetKartSpeed(player, false))
|
||||
dist += 4*(player->speed - K_GetKartSpeed(player, false));
|
||||
dist += abs(thiscam->momz)/4;
|
||||
|
||||
if (player->kartstuff[k_boostcam])
|
||||
{
|
||||
dist -= FixedMul(19*dist/32, player->kartstuff[k_boostcam]);
|
||||
dist -= FixedMul(11*dist/16, player->kartstuff[k_boostcam]);
|
||||
height -= FixedMul(height, player->kartstuff[k_boostcam]);
|
||||
}
|
||||
|
||||
if (player->climbing || player->playerstate == PST_DEAD || (player->pflags & (PF_MACESPIN|PF_ITEMHANG|PF_ROPEHANG)))
|
||||
dist <<= 1;
|
||||
|
||||
// in splitscreen modes, mess with the camera distances to make it feel proportional to how it feels normally
|
||||
if (splitscreen == 1) // widescreen splits should get x1.5 distance
|
||||
{
|
||||
|
@ -8397,7 +8395,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
if (player->kartstuff[k_drift] != 0)
|
||||
{
|
||||
fixed_t panmax = (camdist/5);
|
||||
pan = min(player->kartstuff[k_driftcharge], K_GetKartDriftSparkValue(player)) * panmax / K_GetKartDriftSparkValue(player);
|
||||
pan = min(player->kartstuff[k_driftcharge]/2, K_GetKartDriftSparkValue(player)) * panmax / K_GetKartDriftSparkValue(player);
|
||||
if (pan > panmax)
|
||||
pan = panmax;
|
||||
if (player->kartstuff[k_drift] < 0)
|
||||
|
|
Loading…
Reference in a new issue