Jump to content
Amphibious05

Weird weapon config issue with firemode

Recommended Posts

Hi, I'm encountering a really weird issue when trying to make a modified version of a pre-existing weapon.

TLDR; fire mode is broken (trying to change puts the weapon on my back, and no white bars indicating which mode), infinite ammo, and the OPTRE ammo counter breaks.

This is a video with the weapon in question.

  class twelfth_MA37K: OPTRE_MA37K {
    author = "Waylen";
    scope = 2;
    scopeArsenal = 2;
    canShootInWater = 1;
    mass = 30;
    displayName = "[12th] MA37K Carbine";
    baseWeapon = "twelfth_MA37K";
    magazines[] = COMMON_MA5C_MAGAZINES;
    class WeaponSlotsInfo: WeaponSlotsInfo {
      mass = 30;
      class MuzzleSlot: MuzzleSlot {
          compatibleitems[] = { "OPTRE_MA37KSuppressor" };
      };
      class CowsSlot: CowsSlot {};
      class PointerSlot: PointerSlot {
          compatibleitems[] = COMMON_SIGHTS;
      };
      class UnderBarrelSlot: UnderBarrelSlot {
          compatibleitems[] = {};
      };
    };
  };

 

I've had reports as well that apparently this exact same issue is appearing on other weapons as well, but I've personally not experienced it on my game.

 

FWIW, COMMON_SIGHTS and COMMON_MA5C_MAGAZINES are essentially just long arrays of magazines/sights defined like such; 

#define SOME_MACRO { "some class name", "bla bla" }

 

Found solution; 

https://cdn.discordapp.com/attachments/1262214879759302766/1304281870665777254/image.png?ex=672f7b66&is=672e29e6&hm=b583caefd823c01e6bf49a73cae755b7d20c8da7d62c90948b9c192bab97fd18&

The circled classes need to not be in CfgWeapons.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×