Make an ammo crate [AtStWalker]
|Back to Tuts index|
1) Make a new folder in "o2_viewer" with the name of your addon
2) Make the .p3d file :o)
3) Go to LOD Geometry, copy and paste your model here (from the LOD 0.0)
4) Use the tool "Structure > Topology > Find Components" (automatic search tool)
5) Now go to LOD Memory and add two points (look the pic n.1):
- doplnovani (Ammunition replenishment)
- doplnovani2 (Ammunition replenishment2)
6) You can download the BIS ammo crate
here
Pic 1
6) Make a .cpp file and add these rows (you can change the valour offcourse):
class CfgPatches
{
class NEWAmmoCrateCLASS
{
units[] = {NEWAmmoCrateCLASS};
weapons[] = {};
requiredVersion = 1.0;
};
};
class CfgVehicles
{
class All {};
class Static: All {};
class Building: Static {};
class Strategic: Building {};
class ReammoBox : Strategic {};
class NEWAmmoCrateCLASS : ReammoBox
{
scope=2;
displayName="NAME_NEW_AMMOCRATE";
model="FOLDER_NEW_AMMOCRATE/NAME.p3d";
class TransportWeapons
{
class _w_M16
{
weapon="M16";
count=2;
};
};
class TransportMagazines
{
class _xx_M16
{
magazine="M16";
count=80;
};
class _xx_HandGrenade
{
magazine="HandGrenade";
count=16;
};
class _xx_PipeBomb
{
magazine="PipeBomb";
count=8;
};
class _xx_Mine
{
magazine="Mine";
count=4;
};
};
};
};
Well done Soldier, mission complete ! :o)
|Back to Tuts index|