Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Richards.D

Gearbox Issue

Recommended Posts

The standard gearboxes really do not do it for me. I've made quite a few static objects now, and that is just fine, I have a config template for static objects that works just fine. I need some sort of way to turn this static object into a .. well a working empty gearbox.

Any help gents?

Heres a photo..

buldozer%202012-08-28%2012-05-19-95.png

And heres my current config file..

class CfgPatches 
{ 
   class dar_objects 
   { 
       units[] = {"DAR_Milcase"}; 
       weapons[] = {}; 
       requiredVersion = 0.1; 
       requiredAddons[] = {"CAData"}; 
   }; 
}; 

class CfgVehicleClasses 
{ 
   class dar_objects 
   { 
       displayName = "DAR Objects"; 
   }; 
}; 

class CfgVehicles 
{ 
   class House; 
   class DAR_Milcase: House//Wall 
   { 
       scope = 2; 
       displayName = "Military Case"; 
       vehicleClass = "dar_objects"; 
       model = "\dar_objects\dar_milcase.p3d"; 
       mapSize = 0.2; 
       cost = 1000; 
       armor = 5000; 
       destrType = "DestructNo"; 
   }; 
};  


Share this post


Link to post
Share on other sites

Why don't you simply inherit from a existing ammobox? Just remove the gear related code.

Share this post


Link to post
Share on other sites
Myke;2216552']Why don't you simply inherit from a existing ammobox? Just remove the gear related code.

Err.. I don't know where to find the configs for the normal gearboxes are? Any way to direct me to such?

Share this post


Link to post
Share on other sites

Please use "ammoboxes" instead of "gearbox" as at first i thought the thread is about vehicles gearbox. ;)

Ammoboxes can be found in the weapons.pbo.

class ReammoBox;
class YourClassName: ReammoBox {
   scope = public;
   accuracy = 1000;
   displayName=$STR_DN_AMMO_CRATES_WEST;
   class TransportMagazines {};
   class TransportWeapons {};
};

I think this should work to create a empty box.

Share this post


Link to post
Share on other sites

Alright, I did as you said. But I do not get any gear option?

class CfgPatches 
{ 
   class dar_objects 
   { 
       units[] = {"DAR_milcase"}; 
       weapons[] = {}; 
       requiredVersion = 0.1; 
       requiredAddons[] = {"CAData"}; 
   }; 
}; 

class CfgVehicleClasses 
{ 
   class dar_objects 
   { 
       displayName = "DAR Objects"; 
   }; 
}; 

class CfgVehicles 
{ 
   class ReammoBox;
   class DAR_milcase: ReammoBox 
{
   scope = 2;
   displayName= "MILSPEC Gearbox";
   vehicleClass = "dar_objects";
   model = "\dar_milcase\dar_milcase.p3d";
   mapSize = 0.2; 
   cost = 1000; 
   armor = 5000; 
   destrType = "DestructNo"; 
   class TransportMagazines {};
   class TransportWeapons {};
};

};  

Any ideas on this?

Share this post


Link to post
Share on other sites

HMMM.. I may have not implemented my Geo LOD.. I shall check that and report back at once..

Share this post


Link to post
Share on other sites
Sign in to follow this  

×