function SubmashotgunAuto(actor) local gun = ToAHuman(actor).EquippedItem; if gun ~= nil then local gun = ToHDFirearm(gun); local magSwitchName = "Magazine Coalition MG"; if gun.Magazine == nil or (gun.Magazine ~= nil and gun.Magazine.PresetName ~= magSwitchName) then gun:SetNextMagazineName(magSwitchName); gun:Reload(); end end end function SubmashotgunShot(actor) local gun = ToAHuman(actor).EquippedItem; if gun ~= nil then local gun = ToHDFirearm(gun); local magSwitchName = "Magazine Coalition Auto Shotgun"; if gun.Magazine == nil or (gun.Magazine ~= nil and gun.Magazine.PresetName ~= magSwitchName) then gun:SetNextMagazineName(magSwitchName); gun:Reload(); end end end