Results 1 to 5 of 5

Thread: Mounted heroes refusing to use ranged weapons

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Mounted heroes refusing to use ranged weapons

    That's pretty much it. I can give a hero a ranged weapon, but their ranged and flying versions won't use it.

    The mounted heroes will display the targeting radius just like the unmounted ones (though the ones on horses display the omni-directional one), and when told to attack they'll move into range, but they won't fire a single shot.

    The issue appears to be something about the mounted hero unit itself (I've swapped weapons around, giving them missile-cav weapons, and trying their weapons on missile-cav to verify that the bug isn't with the weapons), but for the life of me I can't figure out what toggle or tag will let them use their ranged weapons...

    Any advice would be appreciated.

  2. #2

    Default Re: Mounted heroes refusing to use ranged weapons

    Did you make sure to give the mounted versions the weapons as well? Her's and mounted heros end up as two different units in land_units

  3. #3

    Default Re: Mounted heroes refusing to use ranged weapons

    Yeah, and actually I've just now tracked the issue down. It's the Man_Animation field, giving them a missile-cav animation like



    hu1_empire_hr1_warhorse_sword_and_repeater_rifle and they start attacking. Sadly this leaves them with lackluster models, and it makes flying-heroes look retarded, as their animations no longer match all that up-and-down movement that their mounts make.

    So now that it's narrowed down to an animation issue, does anyone know how exactly it's determined which animations allow which attacks?

  4. #4

    Default Re: Mounted heroes refusing to use ranged weapons

    Quote Originally Posted by bomepie View Post
    Yeah, and actually I've just now tracked the issue down. It's the Man_Animation field, giving them a missile-cav animation like
    So now that it's narrowed down to an animation issue, does anyone know how exactly it's determined which animations allow which attacks?[/TD]
    As I already answerd that question in the official forums (assuming you are the same bomepie), I just copy my text here:

    You should be able to open the animations files in PFM. If PFM manager doesn't automatically show you the contents of the animation_fragments, which are all text documents, right click them and select "open as text". If, for whatever reason, that is still not working just right click and select "extract selected". You can then edit the files externally via the text editor or a program like notepad++ and reimport them into your mod once your done.
    To edit the missing animations just look for the animation which is assigned to the hero and add the lines that contain all the shooting animations from a mounted archer unit (they are all names something with "SHOOT").

  5. #5

    Default Re: Mounted heroes refusing to use ranged weapons

    I've got a similar issue where I'm trying to add a ranged attack to a unit using the hu5_goblin_spear_and_shield man_animation. I've extracted hu5_goblin_spear_and_shield.txt from the data.pak and added all of the SHOOT entries from the hu5_goblin_bow.txt file, saved it and used BOB to build the mod, but the unit is still not shooting.

    If I change the man_animation to hu5_goblin_sword_bow then it will shoot fine, but the spears no longer show up.

    Alternatively, I tried adding all of the animations from hu5_goblin_spear_and_shield.txt to the hu5_goblin_bow.txt file, skipping over the few entries that were already listed, and set the man_animation to use hu5_goblin_sword_bow, and the spears do not show up. Oddly, there is no hu5_goblin_sword_bow.txt listed in animation_fragments, but there is a hu5_goblin_bow.txt and hu5_goblin_sword.txt, so I'm not sure where the game is getting the hu5_goblin_sword_bow entry from.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •