806 {
807 string slotNameMounted = slot_name + "_Mounted";
808 EntityAI attachment = FindAttachmentBySlotName(slot_name);
809
810 if (attachment)
811 {
813 if (barbedWire && barbedWire.IsMounted())
815 else
817
818 if (is_locked)
819 {
820 SetAnimationPhase(slotNameMounted, 0);
821 SetAnimationPhase(slot_name, 1);
822 }
823 else
824 {
825 SetAnimationPhase(slotNameMounted, 1);
826 SetAnimationPhase(slot_name, 0);
827 }
828 }
829 else
830 {
831 SetAnimationPhase(slotNameMounted, 1);
832 SetAnimationPhase(slot_name, 1);
833
835 }
836 }