GolemLabs


Go Back   GolemLabs Forums > SuperPower 2 > SDK Wishlist and Modding

SDK Wishlist and Modding The place to discuss basic modding and wishes for SDK mods.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-07-2010, 23:42
Sissok Nagazi's Avatar
Sissok Nagazi Sissok Nagazi is offline
Registered User
 
Join Date: Jun 2006
Location: Soviet Canuckistan
Posts: 376
Sissok Nagazi is an unknown quantity at this point
Modding info/work required

Alright, so I'm looking to dramatically increase the negative consequences of raising income taxes ingame, like auto prompting election losses, etc and making weapons trade requirements much lower as far as DR goes.

Can only give me a hint as to where to start? or a paypal accnt # so I can simply throw money at the problem and get someone else to do it for me?
__________________
[☆☠•̪̀●́]Sensei Sissok Nagazi of The Nagazi Guild
"Structure! Order! Beauty!"
"The best friendships are always those founded on misunderstandings" - J.V. Stalin
Reply With Quote
  #2  
Old 02-11-2010, 15:54
President-Ray's Avatar
President-Ray President-Ray is offline
Registered User
 
Join Date: Jun 2007
Posts: 365
President-Ray is on a distinguished road
Send a message via MSN to President-Ray
Re: Modding info/work required

Become good friends with BBR, and your problem is solved.
Reply With Quote
  #3  
Old 02-11-2010, 17:31
stumpy235 stumpy235 is offline
Registered User
 
Join Date: Aug 2008
Posts: 30
stumpy235 is on a distinguished road
Re: Modding info/work required

After searching I think the GWorldBehavior::Iterate_Gvt_Approval_Expected() sub in sp2_world_behavior.cpp is where the approval change is calculated. I've no idea how you want to implement stuff, but setting PourcObjTaxesRaw to a higher negative number would probably give lower relations for all tax levels. Or you could try some fancy formulas to give more relations drop to higher taxes.

Auto prompting elections loss would need you to have a trigger in the GDataControlLayer::ChangePersonalIncomeTax sub in sp2_data_control_layer.cpp.

To make weapons trade relations lower search for GAI::HandleWeaponTradeOffer in sp2_ai.cpp. In that sub there is a line REAL32 l_fMinimumRelations = SP2::c_fRelationsFriend; I think you have to change 'Friend' to whichever of the variables you want from sp2_constants.h (e.g. 'Like' for 40, or you can even change these variables).

I haven't tested any of this out, so good luck if you want to try.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 18:26.

Top

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © GolemLabs Laboratories, Inc. All rights reserved.