Coder: gopostal
agutgopostal@hotmail.com


This was requested by someone privately but I'm going to release it since others might possibly like it too. I struggled with including this into MH2 and ultimately left it out since I think it's probably a limited use mod.

MHMapAdjuster is a mod that loads on the start of a map and runs through all the creature/thing factories. Now for a bit of information for the non-mappers: Creature Factories (CF for short) are actors in a map that spawn many copies of a particular monster. Think "spam maps" for this. Well some of those damn things have the count set to 100,000 <cough ATAA cough> while others are set to "-1" which means they never end  :roll:  MHMapAdjuster runs through them all and manually resets them to a limit defined by the admin.

If the CF has less, it keeps that amount. If it is set for more than the admin's choice, it is adjusted. This mod also checks for any counters that are connected to the factory and adjusts their number too. This will allow the counters to trigger things correctly for the new limits.

There is also a setting that will adjust all existing monsters on the map to a health limit you set (if they are over).

Lastly this mod only runs on the map start so there will be no lag for players.


Settings:

ChangeCovertToFalse=True       
....."Covert" means that monsters will not spawn if you are looking at the spawnpoint. N00b mappers often miss this setting and you end up with monsters that spawn ever so slowly when you look away. Almost always the "Covert" setting should be False and most every time it's set to True there are problems. This setting will force it to be correct.

bCapacity=10
.....This is the max that any factory will make of it's selected object. In MH this is almost always monsters.

SeeCount=True
.....This forces the counter to tell you how many of it's copies are left to make. You've seen the "Only 5 skaarj left..." message? This setting makes those for everything the counter counts.

LimitTheHealth=True
.....This runs through the map and adjusts any monster with health higher than the limit down to the limit. Set this to false if you use MH2 as it has this feature built into the mod.

maxMonsterHealth=10000
.....Maximum health monsters will have. Does not work on monsters not yet spawned, but it's a damn good start.


Usage:
Run this as a mutator in mapvote (or whatever) and add the line:
ServerPackages=MHMapAdjuster

and put the ini into the system folder too. Be sure to adjust the bCapacity setting to what you think the max should be. 20-40 is good for a single player server, 100-500 is probably better if you have a few players. Remember this setting will not over-ride the map default if it is lower.

Mapvote line:
add MHMapAdjuster.MHMapAdjuster to your list of mutators. 




And as always....
Feel free to alter, use, burn, destroy or mock this work without mercy. All my personal script work is considered public, so do what you want with it. Source code is included, I'm happy to share it with you. Open source FTW!