Nuclear Bombers ?

Pomphis

Warlord
Joined
Sep 22, 2010
Messages
294
Location
Berlin, Germany
I like to have nuclear bombers for a time before ICBMs take over. Orion has a promotion making bombers nuke-capable, which is IMO the best solution, but I suspect that this approach is too difficult for me to copy and integrate into another mod. HitM has an Atomic Bomber, so I thought about an Atomic Jet Bomber. But when I looked at the Atomic Bomber and the modiki I didn´t find anything about nuclear missions. So I looked at Civ4MissionInfos, but that didn´t help either.

So: can anybody tell me where I find what makes the Atomic Bomber atomic, so that I can do the same with a Jet Bomber ?
 
Hi, check this out ....
LINK

but the only way i know is to include the DCM_NB Code to the Game.dll ;)
If not doing so the bomber will fell from heaven like a nuke.....
 
Thank you, I will search the thread.

Xaster, the code must be there in HitM already, it has an Atomic Bomber. What I am looking for is the place where it says that the unit NUKE_BOMBER (as it is called in unitinfos) can use this mission. Unitinfos does have several missions not explained in the modiki, but as the conventional bomber has the same, they must be port bombing etc and cannot be the nucear one.
 
NUKE_BOMBER might not be mentioned by name in the C++ code. Often it's a feature added to some xml tag, like say bNuclearAttack. This means multiple units can use the feature without modifying the code for each and it's faster because checking against strings is actually quite slow, particularly if you use the vanilla approach.

Modiki doesn't contain mod specific tags, meaning it's useless to finding additions made by HitM. For that you need to look up HitM specific documentation if there is any. Many mods "documented" the features only by writing the code, hence an example of how it's used. Generally speaking vanilla is very poorly documented and modders over the years have copied the "professional pattern" provided by vanilla. The lack of documentation have led to a number of bugs over the years.
 
Thank you, but I barely know what C++ is and certainly don´t plan to mess with it. My problem is that the HitM NUKE_BOMBER has nothing like bNuclearAttack, or at least I cannot find it. iNukeRange is 0. So I wondered whether there is another file that controls which units can use nuclear weapons.
 
I should have been more clear. I made up bNuclearAttack because it's an example of how modders usually solves something like that. My point was (and still is) that assuming the type is mentioned in the source code is usually false.

If you need to mod the DLL, but barely know C++, I say the odds are against you creating this feature yourself. My best advice is to be nice to @xaster. He seems to have a DLL file with the needed modifications and it includes K-MOD, which in itself is a good thing.
 
Thank you. My hope was that it might not be necessary to create it, but that I could simply use the already existing Atomic Bomber, copy it, rename the copy into Atomic Jet Bomber and change the Bomber stats to Jet Bomber stats and have it. Okay, the graphics would be unchanged, but I could live with that.
 
Back
Top Bottom