mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
remove unnecessary version consistency for some player movement code
This commit is contained in:
parent
a8fd512dad
commit
12f4e9bc79
@ -898,7 +898,7 @@ void PM_WalkMove()
|
|||||||
|
|
||||||
#ifdef REGAMEDLL_ADD
|
#ifdef REGAMEDLL_ADD
|
||||||
// Player can speed up the run if '+speed' button is pressed
|
// Player can speed up the run if '+speed' button is pressed
|
||||||
if (pmoveplayer->m_MovementVersion.IsAtLeast(1, 0) && (pmove->cmd.buttons & IN_RUN) && pmove->fuser3 > 0)
|
if ((pmove->cmd.buttons & IN_RUN) && pmove->fuser3 > 0)
|
||||||
{
|
{
|
||||||
fmove *= pmove->fuser3;
|
fmove *= pmove->fuser3;
|
||||||
smove *= pmove->fuser3;
|
smove *= pmove->fuser3;
|
||||||
@ -1704,7 +1704,7 @@ void PM_SpectatorMove()
|
|||||||
|
|
||||||
#ifdef REGAMEDLL_ADD
|
#ifdef REGAMEDLL_ADD
|
||||||
// Observer can accelerate in air if '+speed' button is pressed
|
// Observer can accelerate in air if '+speed' button is pressed
|
||||||
if (pmoveplayer->m_MovementVersion.IsAtLeast(1, 0) && pmove->cmd.buttons & IN_RUN)
|
if (pmove->cmd.buttons & IN_RUN)
|
||||||
{
|
{
|
||||||
float flAirAccelerate = (pmove->fuser3 > 0.0f) ? pmove->fuser3 : max(pmove->movevars->airaccelerate / 100.0f, 7.0f);
|
float flAirAccelerate = (pmove->fuser3 > 0.0f) ? pmove->fuser3 : max(pmove->movevars->airaccelerate / 100.0f, 7.0f);
|
||||||
fmove *= flAirAccelerate;
|
fmove *= flAirAccelerate;
|
||||||
@ -2368,7 +2368,7 @@ void PM_NoClip()
|
|||||||
|
|
||||||
#ifdef REGAMEDLL_ADD
|
#ifdef REGAMEDLL_ADD
|
||||||
// Player with noclip can accelerate in air if '+speed' button is pressed
|
// Player with noclip can accelerate in air if '+speed' button is pressed
|
||||||
if (pmoveplayer->m_MovementVersion.IsAtLeast(1, 0) && (pmove->cmd.buttons & IN_RUN) && pmove->fuser3 > 0)
|
if ((pmove->cmd.buttons & IN_RUN) && pmove->fuser3 > 0)
|
||||||
{
|
{
|
||||||
float flAirAccelerate = pmove->fuser3;
|
float flAirAccelerate = pmove->fuser3;
|
||||||
fmove *= flAirAccelerate;
|
fmove *= flAirAccelerate;
|
||||||
|
Loading…
Reference in New Issue
Block a user