Today I went to experiment with a simple virtual sailor's original idea of having ships sailing in port/shore mode.
In PROGRAM\Locations\locations_loader.c find:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> rCharacter.Ship.stopped = true;
rCharacter.Ship.Speed.z = 0.0;<!--c2--></div><!--ec2-->And replace with:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> // ASVS -->
if(CheckAttribute(rCharacter,"sailaway")
{
rCharacter.Ship.stopped = false;
rCharacter.Ship.Speed.z = 1.5;
}
else
{
rCharacter.Ship.stopped = true;
rCharacter.Ship.Speed.z = 0.0;
}
// ASVS <--<!--c2--></div><!--ec2-->
Now if you set, for example, <i>characters[GetCharacterIndex("CrCayman6")].sailaway = true;</i> through console,
that ship will end up sailing in the Cayman port scene when you anchor. Which makes it look like the ship is passing by.
This seems pretty cool for sure and I wonder if we can put that to use in random instances.
However, a couple of limitations apply to this mod:
- The ships do NOT do any land avoiding and if they're headed for shore, they WILL crash into it.
- The ship that goes sailing must be owned by a "qualified captain", eg. a captain who has already captained a ship in 3D sailing mode at some point.
Otherwise lots of error messages will occur, resulting in lag. <img src="style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid="
" border="0" alt="mybad.gif" />
In PROGRAM\Locations\locations_loader.c find:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> rCharacter.Ship.stopped = true;
rCharacter.Ship.Speed.z = 0.0;<!--c2--></div><!--ec2-->And replace with:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> // ASVS -->
if(CheckAttribute(rCharacter,"sailaway")
{
rCharacter.Ship.stopped = false;
rCharacter.Ship.Speed.z = 1.5;
}
else
{
rCharacter.Ship.stopped = true;
rCharacter.Ship.Speed.z = 0.0;
}
// ASVS <--<!--c2--></div><!--ec2-->
Now if you set, for example, <i>characters[GetCharacterIndex("CrCayman6")].sailaway = true;</i> through console,
that ship will end up sailing in the Cayman port scene when you anchor. Which makes it look like the ship is passing by.
This seems pretty cool for sure and I wonder if we can put that to use in random instances.
However, a couple of limitations apply to this mod:
- The ships do NOT do any land avoiding and if they're headed for shore, they WILL crash into it.
- The ship that goes sailing must be owned by a "qualified captain", eg. a captain who has already captained a ship in 3D sailing mode at some point.
Otherwise lots of error messages will occur, resulting in lag. <img src="style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid="
