1. Dismiss Notice
  2. GOG.com logo

    Thanks to YOUR votes, GOG.com now sells:
    - Sea Dogs - Sea Dogs: Caribbean Tales
    - Sea Dogs: City of Abandoned Ships

    Vote now to add Pirates of the Caribbean to the list!

    Dismiss Notice
  3. Under the Crossbones Podcast

    A Pirate Podcast with Interviews
    Music, Comedy and all things Pirate!

    - Episode Guide - About - Subscribe -
    - Twitter - Facebook - iTunes - Android -
    - Youtube - Fill the Coffers -

    Dismiss Notice
  4. New Horizons logo

    Quick links for PotC: New Horizons
    - Download latest version
    - Wiki - FAQ - Report bugs here
    - ModDB profile

  5. GOF logo

    Quick links for AoP2: Gentlemen of Fortune 2
    - Downloads and info
    - Historical Immersion Supermod
    - ModDB Profile

Dismiss Notice
New to the forum?
Please take a moment to read our Welcome Message and Forum Rules.

Included in Build Ships' captains don't use muskets

Discussion in 'Build Testing List' started by Grey Roger, Dec 21, 2015.

  1. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,383
    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.
     
  2. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    @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?
     
  3. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,287
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    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.
     
  4. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    So then the question is: DO they get ammo? I do know captains are generated somewhat differently from regular enemies.
     
  5. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,383
    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.
     
  6. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,287
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    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)
     
  7. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    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?
     
  8. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,287
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    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.
     
  9. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    True. But how to distinguish between captain/non-captain characters in the functionality that randomly hands out weapons?
     
  10. Levis

    Levis Find(Rum) = false; Staff Member Programmer Creative Support Storm Modder

    Joined:
    Oct 6, 2013
    Messages:
    6,679
    Gender:
    Male
    Occupation:
    ICT
    Location:
    University Twente (Netherlands)
    Check for fantomtype. I believe captains should have that. from the Encounter generation
     
    Pieter Boelen likes this.
  11. Levis

    Levis Find(Rum) = false; Staff Member Programmer Creative Support Storm Modder

    Joined:
    Oct 6, 2013
    Messages:
    6,679
    Gender:
    Male
    Occupation:
    ICT
    Location:
    University Twente (Netherlands)
    @Pieter Boelen and else you can also check if they have a ship. If they have a ship they are captains.
     
    Pieter Boelen likes this.
  12. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    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....
     
  13. Levis

    Levis Find(Rum) = false; Staff Member Programmer Creative Support Storm Modder

    Joined:
    Oct 6, 2013
    Messages:
    6,679
    Gender:
    Male
    Occupation:
    ICT
    Location:
    University Twente (Netherlands)
    I believe it happens in LAi_Boarding.c
    it makes the Crew and if needed it makes the captain.
     
  14. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,287
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    Muskets have shottype "mb", musketoons etc "pg2", longrifles "pb2". Could that be used?
     
  15. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    I suppose.... Maybe.
    Not sure of any "quick fixes" here though.
     
  16. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    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.
     
  17. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Several months later and the question still stands:
    Do or do not enemy captains actually USE their muskets if they're carrying them?
     
  18. Hylie Pistof

    Hylie Pistof Curmudgeon Staff Member QA Tester Storm Modder

    Joined:
    Jan 15, 2010
    Messages:
    13,754
    Gender:
    Male
    If I see a captain with a musket I get in very close so he can not use it, so I can't answer that question.
     
    Pieter Boelen likes this.
  19. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Fair enough. :doff
     
  20. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands

Share This Page