Setting cg_thirdperson 1 and cg_thirdpersonangle 180 really helps reproduce this problem.
All you do, is use up all your ammo, and if you don't change weapons, your character will still be in the "aiming" animation that is used while shooting the weapon, even while moving.
The normal stance is reset when you change weapons.
According to game/bg_pmove.c r809 lines 2657 thru 2669, idle torso animation is set when pm->ps->weaponstate == WEAPON_READY. Case closed.
*** This bug has been marked as a duplicate of 2737 ***
"Does the item toggle button work all times or do you have to press it several
times to change weapon, use medkit, toggle jetpack or throw grenade?"
No, it works just fine. That's not the problem I'm noticing.
How is this a duplicate? The other bug is totally differant.
Did you test that item toggle button on localhost or on some Internet server? If it was on some Internet server, try again a few times on localhost.
The item toggle glitch bug is caused by WEAPON_FIRING weaponstate that was not cleared when the player ran out of ammo. That weaponstate has to be cleared first to return to idle torso animation. Since 2737 has been fixed, this bug should be fixed as well in SVN.
Created attachment 1052[details]
Proof demos
This archive contains 2 demos of marine running out of ammo. ammo1.dm_69 is recorded on vanilla 1.1.0 server and the bug is clearly visible in 3rd person view, ammo2.dm_69 is recorded on SVN r814 server and as you can see in 3rd person view, the bug is fixed, the upper body returns to idle animation.
Created attachment 1052 [details] Proof demos This archive contains 2 demos of marine running out of ammo. ammo1.dm_69 is recorded on vanilla 1.1.0 server and the bug is clearly visible in 3rd person view, ammo2.dm_69 is recorded on SVN r814 server and as you can see in 3rd person view, the bug is fixed, the upper body returns to idle animation.