viewmodel_offset_z var viewmodel Controls the offset of the viewmodel in the Z coordinate. For other coordinates see viewmodel_offset_x and viewmodel_offset_y .