mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-17 02:01:15 +00:00
A better method of
Instead of returning at the very start of P_MoveChaseCamera, just set camstill to true, and add another exiting check to momentum. This lets the mirror mode post process effect to continue working.
This commit is contained in:
parent
4e2b30fcae
commit
3dac0e21cc
2 changed files with 31 additions and 21 deletions
|
@ -152,6 +152,9 @@ void P_ResetStarposts(void)
|
||||||
//
|
//
|
||||||
boolean P_CanPickupItem(player_t *player, boolean weapon)
|
boolean P_CanPickupItem(player_t *player, boolean weapon)
|
||||||
{
|
{
|
||||||
|
if (player->exiting)
|
||||||
|
return false;
|
||||||
|
|
||||||
/*if (G_BattleGametype() && player->kartstuff[k_balloon] <= 0) // No balloons in Match
|
/*if (G_BattleGametype() && player->kartstuff[k_balloon] <= 0) // No balloons in Match
|
||||||
return false;*/
|
return false;*/
|
||||||
|
|
||||||
|
|
17
src/p_user.c
17
src/p_user.c
|
@ -8138,9 +8138,6 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
subsector_t *newsubsec;
|
subsector_t *newsubsec;
|
||||||
fixed_t f1, f2;
|
fixed_t f1, f2;
|
||||||
|
|
||||||
if (player->exiting) // SRB2Kart: Leave the camera behind while exiting, for dramatic effect!
|
|
||||||
return true;
|
|
||||||
|
|
||||||
cameranoclip = (player->pflags & (PF_NOCLIP|PF_NIGHTSMODE)) || (player->mo->flags & (MF_NOCLIP|MF_NOCLIPHEIGHT)); // Noclipping player camera noclips too!!
|
cameranoclip = (player->pflags & (PF_NOCLIP|PF_NIGHTSMODE)) || (player->mo->flags & (MF_NOCLIP|MF_NOCLIPHEIGHT)); // Noclipping player camera noclips too!!
|
||||||
|
|
||||||
if (!(player->climbing || (player->pflags & PF_NIGHTSMODE) || player->playerstate == PST_DEAD))
|
if (!(player->climbing || (player->pflags & PF_NIGHTSMODE) || player->playerstate == PST_DEAD))
|
||||||
|
@ -8275,8 +8272,9 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
lookback = camspin4;
|
lookback = camspin4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// SRB2kart - Camera flipper
|
if (player->exiting) // SRB2Kart: Leave the camera behind while exiting, for dramatic effect!
|
||||||
if (lookback)
|
camstill = true;
|
||||||
|
else if (lookback) // SRB2kart - Camera flipper
|
||||||
{
|
{
|
||||||
camrotate += 180;
|
camrotate += 180;
|
||||||
camspeed *= 2;
|
camspeed *= 2;
|
||||||
|
@ -8684,6 +8682,14 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
if (player->exiting)
|
||||||
|
{
|
||||||
|
thiscam->momx = 0;
|
||||||
|
thiscam->momy = 0;
|
||||||
|
thiscam->momz = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if (twodlevel || (mo->flags2 & MF2_TWOD))
|
if (twodlevel || (mo->flags2 & MF2_TWOD))
|
||||||
{
|
{
|
||||||
thiscam->momx = x-thiscam->x;
|
thiscam->momx = x-thiscam->x;
|
||||||
|
@ -8706,6 +8712,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
else
|
else
|
||||||
thiscam->momz = FixedMul(z - thiscam->z, camspeed);
|
thiscam->momz = FixedMul(z - thiscam->z, camspeed);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// compute aming to look the viewed point
|
// compute aming to look the viewed point
|
||||||
f1 = viewpointx-thiscam->x;
|
f1 = viewpointx-thiscam->x;
|
||||||
|
|
Loading…
Reference in a new issue