Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 21 commits into from
Sep 20, 2024

Conversation

lambdatiger
Copy link
Contributor

@lambdatiger lambdatiger commented Sep 10, 2024

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.

@PabstMirror PabstMirror added this to the v1.3.45 milestone Sep 11, 2024
@lambdatiger
Copy link
Contributor Author

lambdatiger commented Sep 20, 2024

Resolved merge conflicts

@PabstMirror PabstMirror merged commit 54ca8de into BourbonWarfare:master Sep 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants