A.W.O.L 0 Posted November 3, 2002 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 . . . Share this post Link to post Share on other sites
der bastler 0 Posted November 3, 2002 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: Strategic   // a building {   animated=0;   scope=1;   vehicleClass="Ammo";   icon="Ammo_move";   model="hromada_beden";   displayName="$STR_DN_MACHINE_GUN";   accuracy=0.200000;   typicalCargo[]={};   destrType="DestructEngine";   transportAmmo=0;   transportRepair=0;   transportFuel=0;   class TransportWeapons   {      class MachineGun      {        weapon="M60";        count=1;      };   };   class TransportMagazines   {      class MachineGun      {        magazine="M60";        count=3;      };   };   transportMaxWeapons=1;   transportMaxMagazines=3;   cost=0;   armor=20;   mapSize=2.600000; }; <span id='postcolor'> Self-explanatory, huh? Share this post Link to post Share on other sites
A.W.O.L 0 Posted November 3, 2002 Thank you so much ! Share this post Link to post Share on other sites