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

Adding new Cannontype(s)

Rawlph

Landlubber
<img src="style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" />
I've been looking for ways to increase the damage I deal on sea (Cannons, etc..)

Now, in the BuildSettings.h I've found:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->float CANNON_DAMAGE_SCALAR = 0.5;<!--c2--></div><!--ec2-->
I guess changing this would change the global cannon-damage, on all ships - so I haven't even tried it.

Then I went to <i>\PROGRAM\CANNONS</i>, where I saw some files containing code about the different cannons.
Some questions here:
What do the comments "<i><b>\\ NK</b></i>" and "<i><b>\\ KNB</b></i>" mean? or - what mods are that?

It's just confusing me a little, seeing 4 types of guns (long, cannon, carronade and culverine?) having their stats like damage etc defined in "<i>Cannons_init.c</i>"

<b>However </b>- I wondered if I there's a way how I could add a new cannontype by adding some lines that kinda say "theres this cannontype, named this" and define its stats in "<i>Cannons_init.c</i>"?

Furthermore I thought that it would be most preferably to have said generated cannons made only available for _one_ ship.
But I couldn't find any indicating lines in <i>\PROGRAM\STORE</i>. And I have no idea how one could make a cannontype bound to one specific ship..


<b>Additional Info:</b>
I'm using Alpha 14 7 Plus (I find it quite playable, I suffered from more CTD's when I used to play build 13 :pP)
I planned to add the new cannons to the Cursed Flying Dutchman(good job done here!), since I like to roam around, pretending I was a cursed captain <img src="style_emoticons/<#EMO_DIR#>/oops3.gif" style="vertical-align:middle" emoid=":eek:ops2" border="0" alt="oops3.gif" /> <img src="style_emoticons/<#EMO_DIR#>/oops3.gif" style="vertical-align:middle" emoid=":eek:ops2" border="0" alt="oops3.gif" />, so it'd be an idea to set the class of that ship to something unused, like "class = 99" or something, and make the cannons only available for class 99 ships.

ookay - I also would appreciate a much simpler method to increase my own damage, since, I understand, you don't have much time, and after answering all of those questions here, you would be able create a new tutorial "How to add new Cannontypes" right away <img src="style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />

thanks in advance

€dit: Wrong forum I think, supposed to go into the Build Mod Technical forum. Oops :p
 
// NK = Nathan Kell
// KNB = KnowNothingBozo
They were two modders on this forum who worked on this code.

You can set the cannon type for a ship in PROGRAM\SHIPS\ships_init.c. You can do this simple: Just give your ship the fort's cannons rather than making a new cannon type. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
I read that dutch ship, de Ruyter's "The Seven Provinces" had 42lbs cannons on board. Maybe we could add some quest where the reward would be a Manowar with 42lbs long guns? (But we would need to make buying such cannons in shipyards possible). But, of course, that ship should be absolutely unique, unencounterable and unbuyable.

Such ship would blast Black Pearl even more effective!

pirate_kk
 
i ship where i've been on had standard 68 pound cannons, and one 124 pound cannon! that's just rediculous! but i think it's got more to do with improvement in ship design in the late 19th century.
 
I'm all for bringing this into the game <img src="style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":blah:" border="0" alt="tongue.gif" />
<img src="http://www.pix8.net/pro/pic/7888greeb/1074943.jpg" border="0" class="linked-image" />
 
I think I just Changed the range on the culverns and the hitting power in the cannon folder. I figured that since the NPC ships dont use culverns ..I would buy them ..and have better cannons then the opponents .

If I could figure out how to make the fort cannons be on sale .....
 
<!--quoteo(post=219789:date=Nov 1 2007, 06:57 PM:name=Petros)--><div class='quotetop'>QUOTE(Petros @ Nov 1 2007, 06:57 PM) [snapback]219789[/snapback]</div><div class='quotemain'><!--quotec-->I'm all for bringing this into the game <img src="style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":blah:" border="0" alt="tongue.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->And there was me thinking you wanted the game to stick to the 1600's. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
could be fun. <img src="style_emoticons/<#EMO_DIR#>/smile2.gif" style="vertical-align:middle" emoid=":))" border="0" alt="smile2.gif" />
 
<!--quoteo(post=219789:date=Nov 1 2007, 12:57 PM:name=Petros)--><div class='quotetop'>QUOTE(Petros @ Nov 1 2007, 12:57 PM) [snapback]219789[/snapback]</div><div class='quotemain'><!--quotec-->I'm all for bringing this into the game <img src="style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":blah:" border="0" alt="tongue.gif" />
<img src="http://www.pix8.net/pro/pic/7888greeb/1074943.jpg" border="0" class="linked-image" /><!--QuoteEnd--></div><!--QuoteEEnd-->
A blast from that would definitely send crewman flying in different directions. <img src="style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
Whahahaaa! Good one! <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
Back
Top