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

Xebec CT stats update

CatalinaThePirate

Unholy Terror,
Storm Modder
Something occurred to me a bit ago as I have finally had the chance to get back into PotC and actually PLAY instead of testing my mod, and it is this - the stats on the Xebec CT (the ship I `re-skinned` and put into the game) somehow got altered or changed when they were included in Build 11.0...

Maybe I just had an old file, and maybe everyone else's is just fine? But I could NOT maneuver in my ship (it was missing the inertia acceleration bits at the bottom), and it had a normal speed like the regular Xebec. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />

Here is the code if you wish to fix this - make sure you `re-initialize` after you have done this edit.

Open the file PotC/PROGRAM/Ships/ships_init.c in a text editor like Notepad.

Then copy and paste these lines over the existing lines (unless they are the same - I still don't know if I had an older version of this file)...

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> //-------------------------------------------------------------------------

// Xebec CT, By CatalinaThePirate, 01/03/2004

//-------------------------------------------------------------------------

    makeref(refShip,ShipsTypes[n]);

    n++;

    refShip.Name   = "XebecCT";

 // PS -->

    refShip.all  = "Xebec1_0";

    refShip.sname  = "XebecCT";

    refShip.No_NK_HFM_modstats = true;

 // PS <--

    refShip.id    = refShip.Name; // PSX

    curid = refShip.id; ShipLookupTable.id.(curid) = `n-1`; // PS

    refShip.Class   = 4;

    refShip.Cannon   = CANNON_TYPE_CANNON_LBS16;

    refShip.MaxCaliber  = 24;

    refShip.Weight   = Tonnes2CWT(250);

    refShip.Capacity  = 1900;

    refShip.CannonsQuantity = 20;

    refShip.MaxCrew  = 125;

    refShip.MinCrew  = 20;

    refShip.SpeedRate  = 19.5;

    refShip.TurnRate  = 50;

    refShip.Price   = 33000;

    refShip.HP    = 2100;

    refShip.SP    = 100;

    refShip.AbordageLocation = "BOARDING_XEBEC";



    refShip.WaterLine = 0.0;

    refShip.SpeedDependWeight = 0.2;

    refShip.SubSeaDependWeight = 0.2;

    refShip.TurnDependWeight = 0.4;



    refShip.CanEncounter    = true;  //if you don't want the ship to be encounter change this to "false"



    refShip.InertiaAccelerationX    = 1.5;    refShip.InertiaBrakingX  = 2.0;

    refShip.InertiaAccelerationY    = 15;    refShip.InertiaBrakingY  = 10;

    refShip.InertiaAccelerationZ    = 9.0;    refShip.InertiaBrakingZ  = 6.0;





//---DO NOT ADD BELOW THIS LINE---<!--c2--></div><!--ec2-->

Again, make sure to reinitialize the game by pressing the "I" key.

Hope this helps! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Back
Top