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

New cannon sounds

Jack Rackham

ex train dispatcher
Quest Writer
Storm Modder
NathanKell,
I´m trying to ajust my new cannon sounds to b13. The problem is in AI_Balls. Now there are 2 places where playsound is mentioned, with or without Realistic Cannons. Put my lines in both places and the new sounds will only work with R.C. Case old types: Very Silent (or origin sounds if you like). Have added rCannon.sound to all 4 types in Cannons_Init. What to do? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />

Also: are the calibers of Carronades OK in Cannons_Init?
Should be like in Cannons.h and .c?
 
Ah, right. You mentioned that before, and I just noticed it on the FTP. Neat!
I'll have a peek and see how to get it to work with the toggles.

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Also: are the calibers of Carronades OK in Cannons_Init?
Should be like in Cannons.h and .c?<!--QuoteEnd--></div><!--QuoteEEnd-->
eh?
EDIT: Ah, see what you mean. I'll do some digging. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
I haven't seen NK's new codebase yet, but I assume you're referring to the carronades having an rCannon.caliber entry that matches their display size in Cannons_init? As in, a 68 pdr carronade is listed as 68 pounds there and 32 everywhere else?

This is confusing, but as far as I can tell it's correct. The rCannon.caliber entry is used only in INTERFACE\ship.c and INTERFACE\cannons.c to determine what number is displayed in the ship status and cannon buying screens, respectively.

The internal caliber is tracked with the iCaliber attribute, defined in Cannons.c. This is used when the game decides whether or not you can mount a gun on your ship.

I've forgotten what the caliber stuff in Cannons.h does, but I think it has to do with determining what guns to give the AI.
 
Thanks NathanKell, I ´ll send a new edition of the cannon sounds to the ftp. This one is ready for the b13 exept for the misfunction in AI_balls. JRH
 
Back
Top