BourbonWarfare / POTATO

GNU General Public License v2.0
18 stars 28 forks source link

Add ability to define vehicle loadouts to be stored in crates #544

Closed lambdatiger closed 1 month ago

lambdatiger commented 1 month ago

This lets you add supply boxes in a similar fashion to the changes added in #540, but for vehicles. Similar parameters as before, but in this case both the normal TransportXXX[] arrays and the classes can be present, and the classes are only used in setVehicleLoadouts = 3, ignoring the other storage arrays.

class Car {
  TransportWeapons[] = {AT};
  TransportMagazines[] = {RIFLE_MAG,GLRIFLE_MAG,CARBINE_MAG,AR_MAG,AR_MAG,GLRIFLE_MAG_HE};
  TransportItems[] = {BASE_MEDICAL,BASE_MEDICAL,BASE_MEDICAL,BASE_MEDICAL};
  class Box_NATO_Ammo_F {
    boxCount = 2;
    boxCustomName = "Resupply Box";
    TransportWeapons[] = {AT};
    TransportMagazines[] = {
      RIFLE_MAG, RIFLE_MAG, RIFLE_MAG,
      GLRIFLE_MAG, CARBINE_MAG, AR_MAG, GLRIFLE_MAG_HE
    };
    TransportItems[] = {
      "ACE_elasticBandage:25",
      "ACE_packingBandage:15",
      "ACE_tourniquet:5",
      "ACE_splint:5"
    };
  };
};
class gm_ge_army_u1300l_cargo { // specific logi vehicle
  minVehicleBoxSpace = 20; // the new amount of cargo space
  class Box_NATO_Ammo_F {
    boxCount = 12; // the number of boxes of this type to put into the vehicle
    boxCustomName = "Resupply Box";
    TransportWeapons[] = {AT};
    TransportMagazines[] = {
      RIFLE_MAG, RIFLE_MAG, RIFLE_MAG,
      GLRIFLE_MAG, CARBINE_MAG, AR_MAG, GLRIFLE_MAG_HE
    };
    TransportItems[] = {
      "ACE_elasticBandage:25",
      "ACE_packingBandage:15",
      "ACE_tourniquet:5",
      "ACE_splint:5"
    };
  };
};

This requires #539 and #540 to be merged first, and then some merge conflicts to be dealt with.

lambdatiger commented 1 month ago

Resolved merge conflicts