Printable Version of Topic

Click here to view this topic in its original format

Armed Assault Info Forums _ Addons - Work in progress _ How to convert a normal crate addon into an ammo box?

Posted by: SGJackson Jun 18 2010, 00:13

Hiya!

I've learned how to make addons, although i still have problems.. they're in my other post.

I want to know how to make an ammo crate for ArmA.

I want to create a crate, convert it to .P3D for ArmA and convert it to .PBO so i can see it in-game.

then, ingame i want that crate to act just like a normal ammo crate. I know about actionkeys that would be usefull for this task.. i'd appreciate someone who has already made sever ammo boxes, like BigMike, for example, to get me in the right direction.

Best Regards, SGJackson!

Posted by: D@V£ Jun 18 2010, 08:14

I'm not too sure about any special selections you might need to add to your model, but setting up the magazines inside an ammobox by default (or, a vehicle, if you want to create a new kind of ammo truck) involves adding transportmagazines and transportweapons classes to your config:

Example: (from ammoboxes.hpp)

CODE
    class TransportMagazines
    {
        mag_xx(30Rnd_556x45_Stanag,100);
        mag_xx(200Rnd_556x45_M249,40);
        mag_xx(100Rnd_762x51_M240,40);
        mag_xx(15Rnd_9x19_M9,20);
        mag_xx(HandGrenadeTimed,30);
        mag_xx(1rnd_HE_M203,20);
        mag_xx(FlareWhite_M203,6);
        mag_xx(FlareRed_M203,6);
        mag_xx(FlareGreen_M203,6);
        mag_xx(FlareYellow_M203,6);
    };
    class TransportWeapons
    {
        weap_xx(M4,4);
    };

(Be aware this is not the same format as used in ArmA.2)

Posted by: SGJackson Jun 18 2010, 20:12

So, i just make a crate, convert it to .P3D and in the config put that?
Nothing else? shouldn't also the actionkeys go too?

Only for ArmA 1

Best Regards, SGJackson!

Posted by: D@V£ Jun 21 2010, 11:19

Actionkeys? If you mean the action menu abilities to use the box, they're automatically put in by the engine.

Generally, for most addons you should have models, config, model.cfg (you don't need to worry about this for static objects), and textures in your pbo.

(Sorry for the late reply, was away for the weekend)

Posted by: SGJackson Jun 21 2010, 16:45

Edit:

ERROR: File test ammo box\config.cpp, line2: '/TransportMagazines.mag_xx': '(' encountered instead of '='

The game won't open...

I've configured the config.cpp that you gave me to make it look like this (make me know if i messed it up :S):

CODE
    class TransportMagazines
    {
        mag_xx(30Rnd_556x45_Stanag,70);
        mag_xx(30Rnd_556x45_StanagSD,30);
        mag_xx(200Rnd_556x45_M249,40);
        mag_xx(100Rnd_762x51_M240,40);
        mag_xx(15Rnd_9x19_M9,20);
        mag_xx(HandGrenadeTimed,30);
        mag_xx(1rnd_HE_M203,20);
        mag_xx(smokeshellwhite,2);
        mag_xx(smokeshellgreen,2);
        mag_xx(smokeshellred,2);
        mag_xx(pipebomb,3);
    };
    class TransportWeapons
    {
        weap_xx(M16A4_ACG_GL,3);
        weap_xx(M249,1);
        weap_xx(M240,1);
        weap_xx(M16A4,2);
        weap_xx(M4A1SD,2);
    };


Thanks a lot D@VE for helping me in my last 3 posts... really i was loosing hope already sad.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)