Results 1 to 8 of 8

Thread: magazine slots and weapon type

Hybrid View

  1. #1
    heya

    I'm trying to mess around with addons and get a few things working. Could someone explain a couple of things to me please.

    Is it possible to make say a handgun magazine take more than one handgun mag slot? if so how?

    Also could someone how i would convert a law launcher to be in the handgun weapon slot instead of secondary weapon slot?

    thanks in advance

  2. #2
    Private First Class
    Join Date
    Dec 19 2006
    Posts
    17
    Author of the Thread
    there must be someone who knows about configs??? help

  3. #3
    For magazines to take up two hand gun mag slots, give the magazine this config entry:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">type = 2 * 16;[/QUOTE]

    You can put magazines pretty much wherever, but weapons (because of proxies) are limited. AT weapons are only supported in the secondary weapon slot. If you put it in the hand gun slot your soldier would have to use the hand gun proxy and anims for it, and that just wouldn&#39;t work. Short answer: no.



    VBS2 Designer

    Quote Originally Posted by Armored_Sheep View Post
    I like to call Arma a sandbox game that works pretty much like LEGO - you buy it not just because you want to have a nice car from the main picture on its box, do you?

  4. #4
    Private First Class
    Join Date
    Dec 19 2006
    Posts
    17
    Author of the Thread
    thanks for the info

    so for handgun ammo slots its 2*16 or 3*16 for example

    what is it for primary mag slots?
    oh and also on a similar note, can i edit an ammo crate to hold a certain number of mags and weapons from each type?




  5. #5
    Primary inventory slots are:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">type = 256;[/QUOTE]

    You can define the amount of total weapons and amount of total magazines an ammo crate can hold but you cannot define certain amounts for different types.

  6. #6
    Private First Class
    Join Date
    Dec 19 2006
    Posts
    17
    Author of the Thread
    thanks again Kyle

    Although I am having troubles getting my ammocrates to work.

    this is what i have

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    class CfgVehicleClasses
    {
    class Misc_Ammo
    {
    displayName = &#34;My Ammo Crates&#34;;
    };
    };
    class CfgVehicles
    {
    class ReammoBox;
    class MYAmmoBox&#58; ReammoBox
    {
    scope = 2;
    accuracy = 1000;
    vehicleClass=&#34;Misc_Ammo&#34;;
    displayName = &#34;MY AmmoBox&#34;;
    class TransportMagazines
    {
    class _my_Mag1
    {
    magazine = &#34;my_mag&#34;;
    count = 10;
    };
    };
    class TransportWeapons
    {
    class _my_Wep1
    {
    weapon = &#34;my_weapon&#34;;
    count = 5;
    };
    };
    };

    class MYAmmoBox2&#58; ReammoBox
    {
    displayName = &#34;MY AmmoBox 2&#34;;
    vehicleClass=&#34;Misc_Ammo&#34;;
    transportMaxWeapons=4;
    transportMaxMagazines=20;
    };



    };
    [/QUOTE]

    Any ideas where I am going wrong? I get the first ammocrate ingame and working fine, the second however causes no crashes but never displays in the list either.

  7. #7
    You have this in your MYAmmoBox class:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">scope = 2;[/QUOTE]

    This makes it selectable in the editor. However you don&#39;t have the scope defined in MYAmmoBox2, meaning it inherets the scope value of the previous class it&#39;s based on (being ReammoBox in this case). Judging by the fact that MYAmmoBox2 doesn&#39;t appear in the editor, class ReammoBox must have a scope value that makes it hidden. Redefine MYAmmoBox2&#39;s scope value (simply copy that line to class MYAmmoBox2) like you did in MYAmmoBox and it should work.

  8. #8
    Private First Class
    Join Date
    Dec 19 2006
    Posts
    17
    Author of the Thread
    thanks kyle got it working at last

Posting Permissions

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