I'm not experienced in fixing bugs. I don't even know how to make code patches(posted in code submissions). However, I found this in p_user.cpp (zdoom 2.3.1 src)
line 1513: void P_CalcHeight (player_t *player)
___blah blah___
line 1528: if ((player->mo->flags & MF_NOGRAVITY) && !onground)
Cheks if player isn't standing on ground and have NOGRAVITY flag. So, this turns off movement bobbing if player have nogravity flag (by entering fly cheat for example) AND is in air. Shouldn 't that be changed to something like this?
if (((player->mo->flags & MF_NOGRAVITY) && !onground) || !onground)
So it checks if player is in air with nogravity flag set, or simply when he is in air.
EDIT. Wait, isn't that just
if ( !onground)
My maths is sooo bad...
I can't test this right now, I'm downloading vc++ and stuff, so it will take some days.
EDIT2:
(needs to be calculated for gun swing even if not on ground)
Damn... Is it really needed even if not on ground?
I'm not experienced in fixing bugs. I don't even know how to make code patches(posted in code submissions). However, I found this in p_user.cpp (zdoom 2.3.1 src)
line 1513: void P_CalcHeight (player_t *player)
___blah blah___
line 1528: if ((player->mo->flags & MF_NOGRAVITY) && !onground)
Cheks if player isn't standing on ground and have NOGRAVITY flag. So, this turns off movement bobbing if player have nogravity flag (by entering fly cheat for example) AND is in air. Shouldn 't that be changed to something like this?
if (((player->mo->flags & MF_NOGRAVITY) && !onground) || !onground)
So it checks if player is in air with nogravity flag set, or simply when he is in air.
EDIT. Wait, isn't that just
if ( !onground)
My maths is sooo bad...
I can't test this right now, I'm downloading vc++ and stuff, so it will take some days.
EDIT2:
[quote](needs to be calculated for gun swing even if not on ground)[/quote]Damn... Is it really needed even if not on ground?