mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed crouch height bounding box
This commit is contained in:
parent
b8e8aead93
commit
b6b35079ef
1 changed files with 19 additions and 18 deletions
|
@ -3949,24 +3949,25 @@ void Player::ClientMove(usercmd_t *ucmd)
|
|||
client->ps.pm_flags |= PMF_NO_PREDICTION;
|
||||
client->ps.pm_flags |= PMF_NO_MOVE;
|
||||
}
|
||||
|
||||
/*
|
||||
if (maxs.z == 60.0f) {
|
||||
client->ps.pm_flags |= PMF_DUCKED;
|
||||
} else if (maxs.z == 54.0f) {
|
||||
client->ps.pm_flags |= PMF_DUCKED | PMF_VIEW_PRONE;
|
||||
} else if (maxs.z == 20.0f) {
|
||||
client->ps.pm_flags |= PMF_VIEW_PRONE;
|
||||
} else if (maxs.z == 53.0f) {
|
||||
client->ps.pm_flags |= PMF_VIEW_DUCK_RUN;
|
||||
} else if (viewheight == 52) {
|
||||
client->ps.pm_flags |= PMF_VIEW_JUMP_START;
|
||||
}
|
||||
*/
|
||||
if (maxs.z == 54.0f || maxs.z == 60.0f) {
|
||||
client->ps.pm_flags |= PMF_DUCKED;
|
||||
} else if (viewheight == 52) {
|
||||
client->ps.pm_flags |= PMF_VIEW_JUMP_START;
|
||||
|
||||
if (g_protocol >= protocol_e::PROTOCOL_MOHTA_MIN) {
|
||||
if (maxs.z == 54.0f || maxs.z == 60.0f) {
|
||||
client->ps.pm_flags |= PMF_DUCKED;
|
||||
} else if (viewheight == JUMP_START_VIEWHEIGHT) {
|
||||
client->ps.pm_flags |= PMF_VIEW_JUMP_START;
|
||||
}
|
||||
} else {
|
||||
if (maxs.z == 60.0f) {
|
||||
client->ps.pm_flags |= PMF_DUCKED;
|
||||
} else if (maxs.z == 54.0f) {
|
||||
client->ps.pm_flags |= PMF_DUCKED | PMF_VIEW_PRONE;
|
||||
} else if (maxs.z == 20.0f) {
|
||||
client->ps.pm_flags |= PMF_VIEW_PRONE;
|
||||
} else if (maxs.z == 53.0f) {
|
||||
client->ps.pm_flags |= PMF_VIEW_DUCK_RUN;
|
||||
} else if (viewheight == JUMP_START_VIEWHEIGHT) {
|
||||
client->ps.pm_flags |= PMF_VIEW_JUMP_START;
|
||||
}
|
||||
}
|
||||
|
||||
switch (movecontrol) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue