If you are with weapon on the back and walking slow and press Z the player made that quick movement
But only if you are walking slow, if you are moving "normal" like in the first try you do it correctly
I think that it is a bug
To test it on vanilla:
private _unit = player;
_unit action ["SwitchWeapon", _unit, _unit, 299];