786 {
787 string slotNameMounted = slot_name + "_Mounted";
788 EntityAI attachment = FindAttachmentBySlotName(slot_name);
789
790 if (attachment)
791 {
793 if (barbedWire && barbedWire.IsMounted())
795 else
797
798 if (is_locked)
799 {
800 SetAnimationPhase(slotNameMounted, 0);
801 SetAnimationPhase(slot_name, 1);
802 }
803 else
804 {
805 SetAnimationPhase(slotNameMounted, 1);
806 SetAnimationPhase(slot_name, 0);
807 }
808 }
809 else
810 {
811 SetAnimationPhase(slotNameMounted, 1);
812 SetAnimationPhase(slot_name, 1);
813
815 }
816 }