weapon_xoffset is a constantly updated gamevar holding the offset for the x position of a sprite for weapon sway.