Results 1 to 3 of 3

Thread: Giving addon "ammocrate" charachteristic

  1. #1
    How do u make an addon that has weapons in it u can take - like my gunshop addon for middle east I released - Can I make it so there is already predefined weaponry in it - like an ammo crate.

    That way u could walk in it and also be able to take weapon Ak47 or something.

    I am pretty sure u can do this - what would be the exact config though?

    Can somone please help I am so bad at making configs . . .

  2. #2
    Assuming you know how to write an add-on config I present you a class taken from the config175.cpp (decrypted by a-lone-wolf):
    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    class MachineGunBox&#58; Strategic *** *** // a building
    {
    *** *** animated=0;
    *** *** scope=1;
    *** *** vehicleClass=&#34;Ammo&#34;;
    *** *** icon=&#34;Ammo_move&#34;;
    *** *** model=&#34;hromada_beden&#34;;
    *** *** displayName=&#34;&#036;STR_DN_MACHINE_GUN&#34;;
    *** *** accuracy=0.200000;
    *** *** typicalCargo&#91;&#93;={};
    *** *** destrType=&#34;DestructEngine&#34;;
    *** *** transportAmmo=0;
    *** *** transportRepair=0;
    *** *** transportFuel=0;
    *** *** class TransportWeapons
    *** *** {
    *** *** *** *** ***class MachineGun
    *** *** *** *** ***{
    *** *** *** *** *** *** *** weapon=&#34;M60&#34;;
    *** *** *** *** *** *** *** count=1;
    *** *** *** *** ***};
    *** *** };
    *** *** class TransportMagazines
    *** *** {
    *** *** *** *** ***class MachineGun
    *** *** *** *** ***{
    *** *** *** *** *** *** *** magazine=&#34;M60&#34;;
    *** *** *** *** *** *** *** count=3;
    *** *** *** *** ***};
    *** *** };
    *** *** transportMaxWeapons=1;
    *** *** transportMaxMagazines=3;
    *** *** cost=0;
    *** *** armor=20;
    *** *** mapSize=2.600000;
    };
    [/QUOTE]<span id='postcolor'>

    Self-explanatory, huh?
    Tempus Fugit.

  3. #3
    Private First Class
    Join Date
    Oct 5 2002
    Posts
    32
    Author of the Thread
    Thank you so much &#33;

Posting Permissions

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