• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Surrender Mod

Le_Sigh

Landlubber
how easy would it be to tweak so that a ship only surrenders when it's badly damaged? or at leat a way to make it so that it cannot surrender even if the morale is low if the damage is above a certain percentage? would it be just a matter of it checking the percentage of teh ship's hull prior to running the script? I don't know anything about coding and all.

The surrender mod is a great mod and I want to keep it, it's just kinda odd that well I came off shore in my beloved bermuda sloop "Sea Bunny" to this enemy 40 gun frigate that had been hunting me for the past few days as I privateered in the waters, I of course began running away from it, I fired a broad side and tehn began turning to cut across it's bow to stay out range of it's starboard battery, this was all very exciting of course, but then the 40 gun frigate surrendered to me....what the hell? <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />

I figure having a check like that would prevent something like that happening but still allow it to surrender due to low morale if it's also relatively damaged say 33% hull or something.

any thoughts to the difficulty and plausability of this? and yes btw I have the surrender settings set to the most difficult setting wich I believe is default setting.
 
You can actually go into the folder and set the surrender option to your liking . All the way from never surrender to surrender on fear of sea monkeys .
 
The setting for that is in BuildSettings.h:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->#define SURR_GLOBAL_SCL    0.1
    // Ships will surrender if damage or crew morale become critical
    // 0.0 : Stock PotC, no surrenders
    // 0.01 - 0.5 : The higher that value the faster ships surrender<!--c2--></div><!--ec2-->
HTH <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
"and yes btw I have the surrender settings set to the most difficult setting wich I believe is default setting."

yeah i know =) when I said that I meant that I already had it at 0.1 the problem I think I'm running into is that after being at the same island for a while, enemy ships moral is dropping or something wether it be from lack of rum or from the various encounters.

I figure that it may be a lot of work to modify the code to have an additional damage check and since I can't do it myself being I hve no coding ability, perhaps it would be best to just remove the coding for morale all together so ships only surrender once they've just had the ever living crap kicked out of them or something. what are your thoughts on that, you as in those who created the code. Would it cause instability or screw up the mod so that it doesn't work properly? cause if that would work and all I gotta do is delete some stuff then that would be easy.

I just find that a lot of npc ships wind up surrendering over a few days at the same island. I suppose the other option I could easily do is just not stay at an island for more than a few islands, jump to the map scene for a few seconds or something and come back <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
 
Try to look in \PROGRAM\SEA_AI\AIShips.c

But if you really want to change something here... Be really carefull, at least back up the file first !
 
Search for the BuildSettings.h setting in PROGRAM\SEA_AI\AIShips.c and add your own check into the same if() statement.
 
Back
Top