<!--quoteo(post=152320:date=Jun 26 2006, 04:24 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE(Pieter Boelen @ Jun 26 2006, 04:24 AM) [snapback]152320[/snapback]</div><div class='quotemain'><!--quotec-->
<!--quoteo(post=152145:date=Jun 25 2006, 06:25 PM:name=Hook)--><div class='quotetop'>QUOTE(Hook @ Jun 25 2006, 06:25 PM) [snapback]152145[/snapback]</div><div class='quotemain'><!--quotec-->
Pieter, let me know if you want that SailTo distance mod. It's only a couple of lines and can be set to the stock values. It also adjusts the distance in sea encounters.
<!--QuoteEnd--></div><!--QuoteEEnd-->
Sounds good to me. The sail-to function seems to me VERY unrealistic.
<!--QuoteEnd--></div><!--QuoteEEnd-->
BuildSettings.h
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
#define SAILTO_DISTANCE1 300.0 // type float, desc="Closest you'll find yourself to enemy when using sailto. Stock is 40.0. Used in AI_Sea.c"
#define SAILTO_DISTANCE2 500.0 // type float, desc="Farthest you'll find yourself from enemy when using sailto. Stock is 100.0."
<!--c2--></div><!--ec2-->
Notice that the "stock 100.0" distance is the original 40.0+60.0. The way it's calculated is changed for ease of use.
AI_Sea.c
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
// SendMessage(AISea, "laff", AI_MESSAGE_SAIL_2_CHARACTER, &Characters[sti(sSailToString)], 40.0 + frnd() * 60.0, frnd() * PIm2); // original code
SendMessage(AISea, "laff", AI_MESSAGE_SAIL_2_CHARACTER, &Characters[sti(sSailToString)], SAILTO_DISTANCE1 + frnd()*(SAILTO_DISTANCE2-SAILTO_DISTANCE1), frnd() * PIm2); // LDH change
<!--c2--></div><!--ec2-->
Tweak 300.0 and 500.0 to suit. An average distance of 400 yards is a bit far for the casual player.
Hook