Monday, April 16, 2012

[SC2] More Mass in your Wreckage Mod

More Reclaim
Increases the mass provided by a wreckage from 0.18 to 0.45.
Requires the SC2 DLC and the Mod Support Minimod to function. Fully compatible with all other mods, including destructive or exclusive mods.
Mass Multiplier: 0.5 (wreckage automatically reduces mass value by 10% as well, so .45 or 0.5 * (100%-10%) = 45%)
Customizability designed by Mithy
·········································································································
The mod includes support for an extension mini-mod that can add one file to an .scd or a folder with an .scd extension and easily customize all four of these multipliers. This mini-mod could then be packaged into its own .scd with mod manager support if desired, but the main purpose of this is to allow mod users to very easily customize the research levels themselves for skirmish or private multiplayer games.
The simplest way to do this is to create a folder within \gamedata with an .scd extension, and place the following code into a 'moremass.lua' file in that folder.
For example, a file path like:
\gamedata\_moremass.scd\moremass.lua
Comments and suggestions are welcome. If you have trouble with the customization feature, post what you've tried.

For the FA love out there this mod gives you more mass on your reclaim that gets your closer to an FA feel in SupCom2. Recommended for use with Mithy's Slow Research Mod.

Download More Reclaim Mod
This mod is configured for use with CerusVI's SC2 Mod Manager.
Place the mod's .scd within Steam\steamapps\common\supremecommander2\gamedata to enable it without the mod manager.|||Nice mod. A small suggestion: maybe make the input for the modder to be what the final desired % value should be, then just have the code do the necessary conversion? It would be less confusing for people.
The actual % the modder inputs is based on a 100% mass reclaim, but the modder would know that 90% is max. So this way, 0.5 means 50% of the original mass is reclaimed, and not 45%. Any values >.9 would be checked by an if statement and just converted to 0.9.|||I thought about that while I was posting this and writing the description. I could do that in that next version. Hopefully, if someone is smart enough to load the mod I they can adjust the fraction.
I agree that mass reclaim over 90% is silly, especially since you can produce units at 33% of the cost with the right factory.
Interesting fact: the magnetron gives over 100% reclaim on what it devourers. Because of this and general ambivalence, I don't think I will cap it. If people want to go hog wild and out of their minds with the mod... who am I to stand in their way. :wink:|||Magnetron just adds the mass value of the unit when it destroys it, so it won't be affected by the mod at all.
To make it autoadjust the percent, just divide by the wreck's HealthMult. e.g. bp.MassMult = mults.MassMult / bp.HealthMult (paraphrasing)
But yes, SC2's wildly-varying production costs do make it difficult to balance mass return > 35%.

No comments:

Post a Comment