Jump to content
Sign in to follow this  
Apache-Cobra

Need a modder/addonmakers help

Recommended Posts

I recently downloaded an AH-64 addon for armed assault. However, i would like to replace the default attack chopper (cobra) with the apache. How would i do this? (like a unit replacement mod)

I already have Kegetys arma tools, btw

Thanks

Share this post


Link to post
Share on other sites

What do you mean by "replace the default attack chopper?" Yuo can simply add the new Apache into missions in the editor.

I am assuming you are using map-facts air addon? Can you just explain what you mean by replace the default chopper?

Share this post


Link to post
Share on other sites

I mean replace it so that its the default chopper, specifically the default being used by the AI (i want to change it so that the cobra gets the boot and the apache becomes the new chopper). This is so that in the campaign, the apache would be where the cobra used to be. Get what i mean?

It is like a unit REPLACEMENT pack, like the 1st ID replacement

Share this post


Link to post
Share on other sites

I understand, im not sure if thats possible or not, I've never tried anything like that sorry I can't help. confused_o.gif

Share this post


Link to post
Share on other sites

Well its possible, its done in mods all the time (FFUR for OFP as an example). In fact, i already have a vehicle replacement pack installed, in which all armor and cars are replaced with a desert texture.

Share this post


Link to post
Share on other sites

Yeah, like I said, I've never really tried to do that, ecspecially since I can't un-pbo and look at files right now. See if you can contact the maker of a mod in which vehicle's were replaced, im sure they could help you.

Share this post


Link to post
Share on other sites

I assume you would just make a config that over-writes the ah1z or whatever class with the apaches. Have a look at CSL's unit replacement configs, they do this exact same thing for troops and vehicles.

edit: just make sure you don't try to use such an addon (cobra = apache) online smile_o.gif

Share this post


Link to post
Share on other sites
I assume you would just make a config that over-writes the ah1z or whatever class with the apaches. Have a look at CSL's unit replacement configs, they do this exact same thing for troops and vehicles.

edit: just make sure you don't try to use such an addon (cobra = apache) online smile_o.gif

Ill see what i can do with this, though any other information would also help a lot.

Share this post


Link to post
Share on other sites

sad_o.gif  banghead.gif  can anyone please help?

I have this in the config I made.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

// ColonelSandersLite's unit replacement template

#define true             1

#define false            0

#define VSoft            0

#define VArmor         0

#define VAir     1

#define private     0

#define protected 1

#define public     2

#define TEast     0

#define TWest     1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy     5

#define TFriendly 6

#define TLogic     7

#define ReadAndWrite 0

#define ReadAndCreate 1

#define ReadOnly 2

#define ReadOnlyVerified 3

class CfgPatches

{

class APACHEREPLACE

{

units[] = {};

weapons[] = {};

requiredVersion = 1.08;

requiredAddons[] = {"map_air"};

};

};

class CfgVehicles

{

class Air;

class map_ah64 : Air

{

model="\map_air\map_ah64";

};

EDIT: By the way, i dont reall yhave any experience with scripting, im just doing what i can.

Share this post


Link to post
Share on other sites

unpbo the mapfact ah64 to find out about the model path and just take the exact same path:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches

{

class APACHEREPLACE

{

units[] = {};

weapons[] = {};

requiredVersion = 1.08;

requiredAddons[] = {"map_air","CAAir"};

};

};

class CfgVehicles

{

class Helicopter;

class AH1W: Helicopter

{

model="\PATH\FILENAME.p3d"; // CHANGE HERE with path from ah64 addon

};

};

it could require a bit more. not sure. havent done this stuff for a long time smile_o.gif

Share this post


Link to post
Share on other sites
unpbo the mapfact ah64 to find out about the model path and just take the exact same path:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches

{

class APACHEREPLACE

{

units[] = {};

weapons[] = {};

requiredVersion = 1.08;

requiredAddons[] = {"map_air","CAAir"};

};

};

class CfgVehicles

{

class Helicopter;

class AH1W: Helicopter

{

 model="\PATH\FILENAME.p3d"; // CHANGE HERE with path from ah64 addon

};

};

it could require a bit more. not sure. havent done this stuff for a long time  smile_o.gif

Thanks a lot, ill try it now.

Share this post


Link to post
Share on other sites

IT WORKS! Unfortunately, the name and icon of the chopper is still that of the AH-1Z

Share this post


Link to post
Share on other sites

The sounds and properties of the helicopter are also of the AH-1z (the sound thing really annoys me)

Share this post


Link to post
Share on other sites

well you need to replace more parts of the config wink_o.gif

post the mapfact ah64 config.cpp over there:

http://pastebin.ca/ (set expires in 1 week or so)

and post the link here.

(it should config values like:

icon=

sound[]=

displayname=

etc)

Share this post


Link to post
Share on other sites
well you need to replace more parts of the config  wink_o.gif

post the mapfact ah64 config.cpp over there:

http://pastebin.ca/ (set expires in 1 week or so)

and post the link here.

(it should config values like:

icon=

sound[]=

displayname=

etc)

The actual config or the one i made?

Share this post


Link to post
Share on other sites

Well the config is up above.

The model is replaced but the chopper still retains the qualities of the Cobra (weapons, sounds, gunners sight etc). Does anyone know how to solve this?

Share this post


Link to post
Share on other sites

try this config:

http://mihd.net/o247d9

of course you need to load the mapfact ah64 addon along with this.

as a side note dude: you might wanna actually try to understand what is done here. so better ask questions rather than for solutions smile_o.gif

Share this post


Link to post
Share on other sites
try this config:

http://mihd.net/o247d9

of course you need to load the mapfact ah64 addon along with this.

as a side note dude: you might wanna actually try to understand what is done here. so better ask questions rather than for solutions  smile_o.gif

Thank you very much.

By the way, i figured out how to replace sound and rotor textures last night as well as display name and icon, i just didnt know the names for rest of stuff (gunner optics etc).

Thanks again, ill see what i can do.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×