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

Micro Separate walk file how to

Captain Hawk

Landlubber
Storm Modder
<img src="style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" />
I will use FrigateInzane_walk as example.
First original walk file
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
int Frigate_walk_count;

float Frigate_walk_verts[135];

int Frigate_walk_types[45];

int Frigate_walk_graph[90];



void Frigate_walk_init()

{

    Frigate_walk_count = 45;



    Frigate_walk_verts[0 ] = -0.311585;

    Frigate_walk_verts[1 ] = 15.636811;

    Frigate_walk_verts[2 ] = -2.417861;

    Frigate_walk_verts[3 ] = -1.703492;
<!--c2--></div><!--ec2-->
example: Frigate_walk_verts[3 ] = FrigateInzane_walk_verts[3 ] <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
All "Frigate" to "FrigateInzane" also name file as "FrigateInzane_walk.c" . <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

Next shipWalk.c
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
#include "sea_ai\walk\BLACKPEARL_walk.c"

#include "sea_ai\walk\Fearless_walk.c" // Surak'nar

#include "sea_ai\walk\FrigateInzane_walk.c"
<!--c2--></div><!--ec2-->
you must add "#include "sea_ai\walk\FrigateInzane_walk.c"
Also
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
BLACKPEARL_walk_init();

    Fearless_walk_init(); // Surak'nar

          FrigateInzane_walk_init();
<!--c2--></div><!--ec2-->
Also to bottom of file
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
    case "BlackPearl":

        SendMessage(PeopleOnShip,"lileee",AI_MESSAGE_ADD_SHIP,ship, BLACKPEARL_walk_count, &BLACKPEARL_walk_verts, &BLACKPEARL_walk_graph, &BLACKPEARL_walk_types);

        //SendMessage(WALK_TOOL,"lslee", AI_MESSAGE_ADD_SHIP, "BLACKPEARL", BLACKPEARL_walk_count, &BLACKPEARL_walk_verts, &BLACKPEARL_walk_graph, &BLACKPEARL_walk_types);

    break;

    //Surak'nar -->

    case "Fearless":

        SendMessage(PeopleOnShip,"lileee",AI_MESSAGE_ADD_SHIP,ship, Fearless_walk_count, &Fearless_walk_verts, &Fearless_walk_graph, &Fearless_walk_types);

        //SendMessage(WALK_TOOL,"lslee", AI_MESSAGE_ADD_SHIP, "Fearless", Fearless_walk_count, &Fearless_walk_verts, &Fearless_walk_graph, &Fearless_walk_types);

    break;

    //Surak'nar <--

    case "FrigateInzane":

        SendMessage(PeopleOnShip,"lileee",AI_MESSAGE_ADD_SHIP,ship,FrigateInzane_walk_count, &FrigateInzane_walk_verts, &FrigateInzane_walk_graph, &FrigateInzane_walk_types);

        //SendMessage(WALK_TOOL,"lslee", AI_MESSAGE_ADD_SHIP, "FrigateInzane", FrigateInzane_walk_count, &FrigateInzane_walk_verts, &FrigateInzane_walk_graph, &FrigateInzane_walk_types);

        break;

        }



}
<!--c2--></div><!--ec2-->

Next Ship_init.c
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
    refShip.AbordageLocation = "BOARDING_CORVETTE";

        refShip.Walk = "FrigateInzane";

    refShip.Type.Trade = false;

    refShip.Type.War = true;
<!--c2--></div><!--ec2-->
With "refShip.Walk = "FrigateInzane" ;" added to your ship_init. You can have any number of
Inzane's frigate versions added to you game all with different names and all can use same FrigateInzane_walk
file. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
Bye CapHawk <img src="style_emoticons/<#EMO_DIR#>/type_1.gif" style="vertical-align:middle" emoid=":nk" border="0" alt="type_1.gif" /> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
It most certainly does. <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" />
Now all we need is a new walk file for the Lugger VML. Anyone who knows how to make one? <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
 
Back
Top