Posted: Thu Jul 02, 2020 8:56 pm Post subject:
Nuke recharge in single player?
Hi,
Has anyone any idea what section of the house.cpp i have to edit to get the nuke rechargeable in SP, like it is in MP? Also when the temple is rebuilt after it's destroyed or sold so you get it again. I've seen nuke codes in house.cpp but some areas are greyed out and other code line 1266 i don't know what to change, any help would be well helpful... QUICK_EDIT
It would help others if you tell us what you figured out and how you fixed it _________________ One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done.
Was curious about this myself so for those still interested &/or that come across this post, here is what I did for my MOD's to get it to recharge, its in the HOUSE.CPP file, you can see the 2 lines cancelled out from what it was and the section right below that I added. I think it starts around line 1375. You can copy & paste this directly to the source code and it will work.
/*
** If there is no nuke strike present, but there is a Temple of Nod
** available, then make the nuke strike strike available.
*/
//if ((GameToPlay == GAME_NORMAL || Rule.AllowSuperWeapons) && (ActiveBScan & STRUCTF_TEMPLE) && Has_Nuke_Device() && IsHuman) {
//NukeStrike.Enable((GameToPlay == GAME_NORMAL), this == PlayerPtr);
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum