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

Included in Build Ships' captains don't use muskets

Grey Roger

Sea Dog
Staff member
Administrator
Storm Modder
This is one of several captains of ships which I've boarded who tried to fight me with their bare hands. They ignore the musket and bayonet with which they're equipped, and which I take from their dead bodies.
musket_captain.jpg

One captain did fight me with a weapon, but it wasn't the musket. Some captains have more than one melee weapon and that one had a sword as well as the musket, so he used the sword. I still took the musket from his dead body.

Other types of enemies seem to use their muskets with bayonets, it's just ship captains who seem not to know what that thing is for.
 
@Jack Rackham: Do you have any thoughts?

I do believe that enemies tend to not fire their guns if they're close.
Either that or they don't have ammo, but that shouldn't affect them really.

Maybe it is a different LAi type for them?
 
or they don't have ammo, but that shouldn't affect them really.
But I'm pretty sure it does. Enemies need ammo to fire their guns even if they don't "use it".
Don't ask me why. This was not my intention from the beginning that's for sure.
 
But I'm pretty sure it does. Enemies need ammo to fire their guns even if they don't "use it".
So then the question is: DO they get ammo? I do know captains are generated somewhat differently from regular enemies.
 
It's not a matter of using the musket as a ranged firearm - at zero range in a captain's cabin, you're right, the captain doesn't usually shoot. But with a bayonet attached, the musket is supposed to be a melee weapon as well. (In fact, I've captured a couple of them in melee mode; they appear in my inventory with damage, block and pierce stats.) The captain hasn't realised this and tries to punch me instead. Note that this is in "Napoleonic" period and is the musket with permanently attached socket bayonet.

As I said, other enemies seem to know what a bayonet is for, it's just the captains who refuse to try to use it.

For what it's worth, captains do get ammo - I often take that from their dead bodies as well.
 
If the musket is equipped which I guess, it starts on the back (but is then a gun_item_type)
First after you have fired it, it switches hand and becomes a blade_item_type. There is no code
for going direct to blade_item_type.

A possibility could be to give those Captains "blademketB" and not "pistolmketB". This blade should turn into
a musket when Pchar sheaths his blade. (after looting the captain)
 
What about enemies whose blades are already drawn when the scene is loaded?
Doesn't that happen a lot? Why would captains be different from crew?
 
Maybe it's not just captains. A character equipped with a pistolmketB would have fists as his blade.
(to starts with) So that's what he will use.

Question is if it's only these muskets that don't fire or if it happens with pistols and captains as well.

Maybe a musket with a bayonet not is so much an officers weapon at all. I would say a good
blade + a pair of fine pistols would be more appropiate.
 
True. But how to distinguish between captain/non-captain characters in the functionality that randomly hands out weapons?
 
True. But how to distinguish between captain/non-captain characters in the functionality that randomly hands out weapons?
Check for fantomtype. I believe captains should have that. from the Encounter generation
 
Now the other big questions remaining are: WHERE are they given weapons?
And HOW to distinguish in there between musket and non-musket weapons?

I'm beginning to fear we may end up getting "exceptions on top of exceptions" on this one.
Have to admit I am no great fan of that....
 
Now the other big questions remaining are: WHERE are they given weapons?
And HOW to distinguish in there between musket and non-musket weapons?

I'm beginning to fear we may end up getting "exceptions on top of exceptions" on this one.
Have to admit I am no great fan of that....
I believe it happens in LAi_Boarding.c
it makes the Crew and if needed it makes the captain.
 
And HOW to distinguish in there between musket and non-musket weapons?
Muskets have shottype "mb", musketoons etc "pg2", longrifles "pb2". Could that be used?
 
To return to the original opening post, I understand the problem was that captains DO get equipped with muskets, but then don't use them.
Since a fair bit has changed on that recently, this should be tested for the next update.
 
Several months later and the question still stands:
Do or do not enemy captains actually USE their muskets if they're carrying them?
 
Back
Top