mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
Fixed the previous commit not accounting for mods that already fixed this internally.
This commit is contained in:
parent
0aefc61f86
commit
75c791ecff
3 changed files with 3 additions and 6 deletions
|
@ -310,7 +310,6 @@ public:
|
|||
double viewz = 0; // focal origin above r.z
|
||||
double viewheight = 0; // base height above floor for viewz
|
||||
double deltaviewheight = 0; // squat speed.
|
||||
float prevbob = 0; // Previous value of "bob"
|
||||
double bob = 0; // bounded/scaled total velocity
|
||||
|
||||
// killough 10/98: used for realistic bobbing (i.e. not simply overall speed)
|
||||
|
|
|
@ -275,7 +275,6 @@ void player_t::CopyFrom(player_t &p, bool copyPSP)
|
|||
viewz = p.viewz;
|
||||
viewheight = p.viewheight;
|
||||
deltaviewheight = p.deltaviewheight;
|
||||
prevbob = p.prevbob;
|
||||
bob = p.bob;
|
||||
Vel = p.Vel;
|
||||
centering = p.centering;
|
||||
|
@ -1265,7 +1264,7 @@ void P_PlayerThink (player_t *player)
|
|||
player->original_cmd = cmd->ucmd;
|
||||
// Don't interpolate the view for more than one tic
|
||||
player->cheats &= ~CF_INTERPVIEW;
|
||||
player->prevbob = player->bob;
|
||||
player->mo->FloatVar("prevBob") = player->bob;
|
||||
|
||||
IFVIRTUALPTRNAME(player->mo, NAME_PlayerPawn, PlayerThink)
|
||||
{
|
||||
|
@ -1736,7 +1735,6 @@ DEFINE_FIELD_X(PlayerInfo, player_t, FOV)
|
|||
DEFINE_FIELD_X(PlayerInfo, player_t, viewz)
|
||||
DEFINE_FIELD_X(PlayerInfo, player_t, viewheight)
|
||||
DEFINE_FIELD_X(PlayerInfo, player_t, deltaviewheight)
|
||||
DEFINE_FIELD_X(PlayerInfo, player_t, prevbob)
|
||||
DEFINE_FIELD_X(PlayerInfo, player_t, bob)
|
||||
DEFINE_FIELD_X(PlayerInfo, player_t, Vel)
|
||||
DEFINE_FIELD_X(PlayerInfo, player_t, centering)
|
||||
|
|
|
@ -49,6 +49,7 @@ class PlayerPawn : Actor
|
|||
double ViewBob; // [SP] ViewBob Multiplier
|
||||
double FullHeight;
|
||||
double curBob;
|
||||
double prevBob;
|
||||
|
||||
meta Name HealingRadiusType;
|
||||
meta Name InvulMode;
|
||||
|
@ -2358,7 +2359,7 @@ class PlayerPawn : Actor
|
|||
double bobVal = player.bob;
|
||||
if (i == 0)
|
||||
{
|
||||
bobVal = player.prevBob;
|
||||
bobVal = prevBob;
|
||||
}
|
||||
//[SP] Added in decorate player.viewbob checks
|
||||
double bobx = (bobVal * BobIntensity * Rangex * ViewBob);
|
||||
|
@ -2646,7 +2647,6 @@ struct PlayerInfo native play // self is what internally is known as player_t
|
|||
native double viewz;
|
||||
native double viewheight;
|
||||
native double deltaviewheight;
|
||||
native float prevbob;
|
||||
native double bob;
|
||||
native vector2 vel;
|
||||
native bool centering;
|
||||
|
|
Loading…
Reference in a new issue