This lets the player jump into the vents in DUKEDC3.MAP

Since this is Duke3D, I'm sure this change breaks something else.

git-svn-id: https://svn.eduke32.com/eduke32@8640 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2020-02-11 09:21:56 +00:00 committed by Christoph Oelckers
parent ff3ec2e66b
commit a9e8666b07
2 changed files with 7 additions and 1 deletions

View file

@ -5311,6 +5311,12 @@ void P_ProcessInput(int playerNum)
else if (((pPlayer->on_ground && TEST_SYNC_KEY(playerBits, SK_CROUCH)) else if (((pPlayer->on_ground && TEST_SYNC_KEY(playerBits, SK_CROUCH))
|| (*weaponFrame > 10 && PWEAPON(playerNum, pPlayer->curr_weapon, WorksLike) == KNEE_WEAPON))) || (*weaponFrame > 10 && PWEAPON(playerNum, pPlayer->curr_weapon, WorksLike) == KNEE_WEAPON)))
playerSpeedReduction = 0x2000; playerSpeedReduction = 0x2000;
else if (pPlayer->on_ground && !pPlayer->jumping_toggle && !TEST_SYNC_KEY(playerBits, SK_CROUCH)
&& (klabs(pPlayer->truefz - pPlayer->truecz) - (PMINHEIGHT << 1)) < stepHeight)
{
playerSpeedReduction = 0x2000;
// pPlayer->pos.z += PCROUCHINCREMENT;
}
pPlayer->vel.x = mulscale16(pPlayer->vel.x, pPlayer->runspeed - playerSpeedReduction); pPlayer->vel.x = mulscale16(pPlayer->vel.x, pPlayer->runspeed - playerSpeedReduction);
pPlayer->vel.y = mulscale16(pPlayer->vel.y, pPlayer->runspeed - playerSpeedReduction); pPlayer->vel.y = mulscale16(pPlayer->vel.y, pPlayer->runspeed - playerSpeedReduction);

View file

@ -42,7 +42,7 @@ extern int32_t g_mostConcurrentPlayers;
#define PHEIGHT (38<<8) #define PHEIGHT (38<<8)
#define PCROUCHHEIGHT (16<<8) #define PCROUCHHEIGHT (16<<8)
#define PCROUCHINCREMENT (2048+768) #define PCROUCHINCREMENT (2048+768)
#define PMINHEIGHT (2048) #define PMINHEIGHT 1024 // this is NOT the value I wanted here, but Duke It Out in DC's shitty vents said otherwise
#define PCRACKTIME 777 #define PCRACKTIME 777