Skip to content

GenerateWithEquip

BBLKepling edited this page May 28, 2023 · 3 revisions

In order to work GenerateWithEquip needs to be enabled in the ModFeatureDef.

When the game tries to spawn a pawn with a weapon it will check for the modExtension on the weapon to spawn the list items. There is limited support for stuffable things, but it's a WIP. If both the weapon and spawned thing are stuffable it will try to pass the stuff properties from the weapon to the thing. If the weapon isn't stuffable but the thing is then it will try to apply a random stuff available to hat thing.

  <modExtensions>
    <li Class="GNATFramework.GenerateWithEquip">
      <generateEquip>
        <Pila>5~10</Pila>
        <Weapon_GrenadeFrag>
          <min>5</min>
          <max>10</max>
        </Weapon_GrenadeFrag>
      </generateEquip>
    </li>
  </modExtensions>

Code Lineage: This was originally GenerateWithAmmo in legodude17's 1.2 Reloading Framework, revived for 1.4.

Clone this wiki locally