add BodyType, fix crouching
This commit is contained in:
@@ -71,6 +71,7 @@ void Player::updateInput(PlayerInput& input, float delta) {
|
||||
speed *= CHEAT_SPEED_MUL;
|
||||
}
|
||||
|
||||
hitbox->crouching = crouch;
|
||||
if (crouch) {
|
||||
speed *= CROUCH_SPEED_MUL;
|
||||
} else if (input.sprint) {
|
||||
|
||||
Reference in New Issue
Block a user