mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +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
702e4dda11
commit
cefa21059c
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]
|
if (player->kartstuff[k_boostcam] < player->kartstuff[k_destboostcam]
|
||||||
&& player->kartstuff[k_destboostcam] != 0)
|
&& 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])
|
if (player->kartstuff[k_boostcam] >= player->kartstuff[k_destboostcam])
|
||||||
player->kartstuff[k_destboostcam] = 0;
|
player->kartstuff[k_destboostcam] = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player->kartstuff[k_boostcam] -= FRACUNIT/20;
|
player->kartstuff[k_boostcam] -= FRACUNIT/TICRATE;
|
||||||
if (player->kartstuff[k_boostcam] < player->kartstuff[k_destboostcam])
|
if (player->kartstuff[k_boostcam] < player->kartstuff[k_destboostcam])
|
||||||
player->kartstuff[k_boostcam] = player->kartstuff[k_destboostcam] = 0;
|
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))
|
if (player->speed > K_GetKartSpeed(player, false))
|
||||||
dist += 4*(player->speed - K_GetKartSpeed(player, false));
|
dist += 4*(player->speed - K_GetKartSpeed(player, false));
|
||||||
|
dist += abs(thiscam->momz)/4;
|
||||||
|
|
||||||
if (player->kartstuff[k_boostcam])
|
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]);
|
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
|
// 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
|
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)
|
if (player->kartstuff[k_drift] != 0)
|
||||||
{
|
{
|
||||||
fixed_t panmax = (camdist/5);
|
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)
|
if (pan > panmax)
|
||||||
pan = panmax;
|
pan = panmax;
|
||||||
if (player->kartstuff[k_drift] < 0)
|
if (player->kartstuff[k_drift] < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue