• 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!

Turn off the lights!!!

kblack

Landlubber
Storm Modder
To take out the lights on top of masts, or the lamps:

Age of Pirates - Caribbean Tales\Program\sea_ai\AIShip.c

Function: void Ship_SetLightsAndFlares

void Ship_SetLightsAndFlares(ref rCharacter)
{
if(sti(sea.lights) == 1)
{
<i> rCharacter.Ship.Flares = 1; <---
rCharacter.Ship.Lights = 1; <---</i>
}
else
{
rCharacter.Ship.Flares = 0;
rCharacter.Ship.Lights = 0;
}
}


Change the value in the lines marked to 0. Flares are the lights on the top of masts, lights are the lamps.

So, to get just the lamps, it will end:

void Ship_SetLightsAndFlares(ref rCharacter)
{
if(sti(sea.lights) == 1)
{
<b> rCharacter.Ship.Flares = 0;
</b> rCharacter.Ship.Lights = 1;
}
else
{
rCharacter.Ship.Flares = 0;
rCharacter.Ship.Lights = 0;
}
}


BTW, just before that function, you get void Ship_SetLightsOff that looks rather interesting to be able to turn on/off the lights with a command...
 
Oooo cant way to try this out, it will be interesting to see how ships look like from a distance at night with only the lamps on.
 
Back
Top