Results 1 to 6 of 6

Thread: Original source files

  1. #1

    Original source files

    Hi, all

    first my english is not very good.

    i want to stard modding, just some small config changes.

    example: i want to changes the weapons of the a10.

    so i make

    Code:
    ...
    class A10:plane{};
    
    class MyA10:A10
    {
    
    }
    but where can i find the orignal code of the a10,
    because i can't change antyhing without knowing the orignal values.

  2. #2
    It's in the ArmA2\AddOns\a10.pbo

    You just need cPBO or some similar tool to unpack the .pbo archive, and Kegetys' unRap or whatever derapifying-tool to unbinarize the config.bin file.

    Then I'd recommend Notepad++ or some other more proper coding tool to open the .cpp and .hpp files, because the standard notepad can't handle the endlines.

  3. #3
    thanks.

    i found this 2 lines

    Code:
    weapons[] = {GAU8, "MaverickLauncher", "SidewinderLaucher_AH1Z", "BombLauncherA10", "FFARLauncher_14"};
    magazines[] = {"1350Rnd_30mmAP_A10", "2Rnd_Maverick_A10", "2Rnd_Sidewinder_AH1Z", "4Rnd_GBU12", "14Rnd_FFAR"};
    but how can raise the count of mavericks to 4 or more.

    i have delete the entry for bombs and FFARLauncher

    Code:
    weapons[] = {GAU8, "MaverickLauncher", "SidewinderLaucher_AH1Z",};
    magazines[] = {"1350Rnd_30mmAP_A10", "2Rnd_Maverick_A10", "2Rnd_Sidewinder_AH1Z"},
    and what should i do now.

    can anyone help me?

  4. #4
    First Lieutenant PuFu's Avatar
    Join Date
    Feb 17 2007
    Location
    unallocated
    Posts
    5,379
    you can either add another magazine of 2Rnd_Maverick_A10, or define anew magazine, say 4rnd_Maverick_A10, and change the count of that

    Spoiler:

  5. #5
    Next you have to find "class CfgMagazines" and then just edit "count" for any weapon you want.

  6. #6
    add another magazine works but look not good.

    in game the maverik launcher has 2 shots and another magazine

    when i have shot the 2 rockets, i get another 2, but the problem is every time i shot an magazin empty the rockets jump around the weapon slots and this looks not good.

    pufu: have you a link or can you say me how i can add a new magazine?

    hamsi: where can i finde the class CfgMagazines?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •