Apache-Cobra 0 Posted July 22, 2007 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
FlyinBullets 0 Posted July 22, 2007 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
Apache-Cobra 0 Posted July 22, 2007 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
FlyinBullets 0 Posted July 22, 2007 I understand, im not sure if thats possible or not, I've never tried anything like that sorry I can't help. Share this post Link to post Share on other sites
Apache-Cobra 0 Posted July 22, 2007 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
FlyinBullets 0 Posted July 22, 2007 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
Apache-Cobra 0 Posted July 22, 2007 Ill try just that. Thanks for your time. Share this post Link to post Share on other sites
fasad 1 Posted July 22, 2007 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 Share this post Link to post Share on other sites
Apache-Cobra 0 Posted July 22, 2007 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 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
Apache-Cobra 0 Posted July 22, 2007 I've been doing what i can, but so far it just comes up with error messages. Share this post Link to post Share on other sites
Apache-Cobra 0 Posted July 22, 2007   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
.kju 3245 Posted July 22, 2007 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 Share this post Link to post Share on other sites
Apache-Cobra 0 Posted July 22, 2007 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  Thanks a lot, ill try it now. Share this post Link to post Share on other sites
Apache-Cobra 0 Posted July 22, 2007 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
Apache-Cobra 0 Posted July 22, 2007 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
Apache-Cobra 0 Posted July 22, 2007 Does anybody know how to fix this? Share this post Link to post Share on other sites
FlyinBullets 0 Posted July 22, 2007 Wish I could help you man Share this post Link to post Share on other sites
.kju 3245 Posted July 22, 2007 well you need to replace more parts of the config 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
Apache-Cobra 0 Posted July 22, 2007 well you need to replace more parts of the config  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
Apache-Cobra 0 Posted July 22, 2007 If you mean the actual mapfact ah-64 config, here is the link for it http://pastebin.ca/630034 Share this post Link to post Share on other sites
Apache-Cobra 0 Posted July 22, 2007 Why did you want the config? Share this post Link to post Share on other sites
Apache-Cobra 0 Posted July 22, 2007 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
Apache-Cobra 0 Posted July 23, 2007 Oh come on, cant anyone help? I know there are plenty of modders around here Share this post Link to post Share on other sites
.kju 3245 Posted July 23, 2007 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 Share this post Link to post Share on other sites
Apache-Cobra 0 Posted July 23, 2007 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  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