Home   Help Search Login Register  

Author Topic: How do you make a soldier a Transport Magazine?  (Read 1067 times)

0 Members and 1 Guest are viewing this topic.

RangerStew

  • Guest
How do you make a soldier a Transport Magazine?
« on: 19 Nov 2002, 00:17:45 »
Ok, I am making an addon where there is an AT team. One man carries and fires the carl gustav, while the other carries extra rounds for it. Can't figure out how that is done. The only addon I know of where this has been done is the Australian Defense Force addon. I can't get a hold of those guys and I can't figure it out from their .cpp. Anyone know? thanks.

RangerStew

Wires

  • Guest
Re:How do you make a soldier a Transport Magazine?
« Reply #1 on: 19 Nov 2002, 02:50:05 »
It's actually a lot easier to script than put in an add-on. the ADF support guy just carries extra rounds as part of his loadout. What exacltly do you want the support guy to do? it is now possible with 1.75 to drop ammo so it again could be scripted but that would be about it I would think.

RangerStew

  • Guest
Re:How do you make a soldier a Transport Magazine?
« Reply #2 on: 19 Nov 2002, 23:01:15 »
Here is Loader section from the ADF config.cpp:

class STU_57RAR_AT_LDR:SoldierWAT
      // 5-7th Battalion Royal Australian Regiment - Carl Gustav Anti-Tank Loader
      {
      displayName="5/7RAR Mech Inf CG-LDR";
      model="\STU ADF Troops\5-7 RAR\STU_MechInf";
            nightVision=1;
      weapons[]={"Steyr","NVGoggles","Throw","Put"};
            magazines[]={"Steyrmag","Steyrmag","Steyrmag","Steyrmag"};
            class TransportMagazines
            {          
                  class STL_CGAT_001
                  {
                  magazine="STL_84mmHE";
                  count=4;
                  };

                  class STL_CGAT_002
                  {
                  magazine="STL_84mmHEAT";
                  count=4;
                  };
          };
      };


As you can see, the extra rounds are not just in his loadout. Whenever I put more than one round for the CarlGustav in the magazine loadout section my game crashes. Anyone else?

RangerStew