Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Wed Jul 24, 2024 3:57 am
All times are UTC + 0
Nuke recharge in single player?
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Hambo-Kun
Civilian


Joined: 05 Jun 2020

PostPosted: Thu Jul 02, 2020 8:56 pm    Post subject:  Nuke recharge in single player? Reply with quote  Mark this post and the followings unread

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...

Back to top
View user's profile Send private message
Hambo-Kun
Civilian


Joined: 05 Jun 2020

PostPosted: Thu Jul 02, 2020 11:12 pm    Post subject: Reply with quote  Mark this post and the followings unread

Done it now, i figured it out.

Back to top
View user's profile Send private message
TAK02
General


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Fri Jul 03, 2020 6:36 am    Post subject: Reply with quote  Mark this post and the followings unread

It would help others if you tell us what you figured out and how you fixed it Smile

_________________
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. #Tongue

Back to top
View user's profile Send private message Send e-mail Visit poster's website ModDB Profile ID YouTube User URL Twitter Channel URL Skype Account
NightFalcon101
Civilian


Also Known As: Falcon
Joined: 30 May 2024

PostPosted: Sat Jul 06, 2024 9:36 am    Post subject: Reply with quote  Mark this post and the followings unread

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);

if ((GameToPlay == GAME_NORMAL || Rule.AllowSuperWeapons) &&
(ActiveBScan & STRUCTF_TEMPLE) &&
(ActLike == HOUSE_BAD || GameToPlay != GAME_NORMAL) &&
(IsHuman || GameToPlay != GAME_NORMAL)) {

NukeStrike.Enable(false, this == PlayerPtr, Power_Fraction() < 0x0100);

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
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


Powered by phpBB © phpBB Group

[ Time: 0.1492s ][ Queries: 11 (0.0100s) ][ Debug on ]