Thanks, Rico. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/oops3.gif" style="vertical-align:middle" emoid="
ops2" border="0" alt="oops3.gif" />
Look for "becomes_oldman" in quests_reaction.c
The deadline is 40 years, my mistake.
Update: added surrender. It's not perfect (sometimes surrendered ships are still fired on by your enemies (even if they used to be friends with that ship); this is because there seems no way to change ship Group during sea mode (and relation is based on group's maincharacter). The only way to make a hostile ship non-hostile is to join it to the player's group (with the above side-effect). It also means the ship goes green, not gray, on the minimap.
ChangeCharacterShipGroup should be what to use, but running it--that is, running the SendMessage() that's in it, crashes POTC cold, no error log (that I could find). I tried various other params strings, but it crashes with a runtime error if they're different (so I guess the params are "correct").
Anyway. Surrender shows up with spyglass, and you get a ding and the crew cheering when an enemy strikes (plus the minimap icon going to green and the ship stopping everything).
Also added similar cheering to enemy ship sinking, and a "hurrah!" to when you knock out a gun (from SMGetty).
Tried some various things with stopping fires (so the sound stops too), but it intermittently crashes when I use what I want to--what I have now is stopping the particles same as before (CCC's existing method) and stopping the sound as well (but this sometimes kills other sounds too).
Cannon destruction should work much better now, it's balanced some more and you can't get > max cannons from repair.
If you need to quickly heal your ship and/or increase the windspeed to 30kts, hit F12 (console is doing tempduty as a debug cheat).
List:
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->*added USE_PARTICLES toggle. 0 stock. 1 use blast_inv rather than blast on ship hit by ball. 2 use SeriousBoom on hit, and ship_detonate on crit.
*Cannon destroyed on critical hit.
*Added FX on cannon destruction, SMGetty soundclip ("hurrah!")
*fixed say sailstate during loading sea bug
*did more cannon qty bufixing/tweaking
*added floor to morale change at sea, tweaked values.
*added surrender
*crew cheers on enemy ship sinks / surrenders
*possibly fixed ChangeCharacterShipGroup, because the property is seaAI.group.name, not ship.ai.groupname Same iwth SetCharacterIslandLocation. NOPE, STILL CRASHES ENGINE.
*add NearShips object and handlers. Rewrote FindClosestHostileShip to do much more, called it FindNearShips(). On run, it will fill object NearShips with all ships on sea, sorted by distance, and divided into groups: all, only-certain-relation, and only-certain-group.
There are various functions that take advantage of that (find nearest ship of relation Rel, find nearest ship of group, find power ratio (power of all hostile ships / distance, vs. power of all friendly ships vs. distance).
*change CreateFantomChar to when ani == "" assign ani, sex, and height by pulling from model array (if available)
*When player is not boarding initiator, swap boarding positions. Toggle by SWAPBOARDING
*fixed spyglass quest item not appearing in traders.<!--QuoteEnd--></div><!--QuoteEEnd-->
File is NK_b13pre_050422.zip