Results 1 to 7 of 7

Thread: Adding Rock Throwing to Units with Spears/Swords and Shields

Hybrid View

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

    Default Adding Rock Throwing to Units with Spears/Swords and Shields

    So there is some dummied-out rock throwing in the database, as we've seen from the mod that arms the mob with thrown stones. I've got that working no problem.

    Here's deal. I'm trying to make it so that units like Eastern Spearmen and such have a rock-throwing attack; historically, most infantry spent battles chucking stones instead of rushing in to get their stab on. (If you want a good idea what ancient warfare looks like, go watch a riot in progress. Or start one.) So I'm trying to get that going.

    The problem is that stuff with Man_Animations that have swords or spears and shields don't work with the throw. I have to convert them to Javelin infantry, in which case it looks like they are trying to throw their spears (and getting a rock) and they look awful in close combat. These units havethrowing animations, from their precursor spears. But I have no idea how to get that to connect.

    Does anyone know how to adjust things so that I can these units chucking rocks?

  2. #2

    Default Re: Adding Rock Throwing to Units with Spears/Swords and Shields

    I believe you need to create a custom animation fragment, but I'm not great with animations, so perhaps someone else could help out here.

  3. #3

    Default Re: Adding Rock Throwing to Units with Spears/Swords and Shields

    Yeah, I suspected, but I have absolutely no idea where to start there.

    (As an aside, I'm trying to make units increase spacing as their morale goes down, representing discipline failing. Is Spacing something that can be dynamically multiplied like that?)

  4. #4
    crzyrndm's Avatar Artifex
    Join Date
    Feb 2011
    Location
    New Zealand
    Posts
    2,576

    Default Re: Adding Rock Throwing to Units with Spears/Swords and Shields

    Episode 19 of Magnars tutorials deals with the animation tables. Starting there is probably your best option
    http://www.twcenter.net/forums/showt...icers(20-4-14)

    RE: Dynamic Spacing
    I doubt it. DAVe lists no dependencies for _kv_morale and nothing in that table has any links to spacing.
    It’s better to excite some and offend others than be bland and acceptable to all
    Creating a mod.pack with PFM - Database Table Fragments

  5. #5

    Default Re: Adding Rock Throwing to Units with Spears/Swords and Shields

    Success! I have Eastern Hillmen throwing rocks using the Javelin animation!

    My only problem now is that when they throw, a spear appears in their hand. Any suggestions as to what is causing this, or what might fix it?

  6. #6
    Col. Tartleton's Avatar Comes Limitis
    Join Date
    Aug 2010
    Location
    Cape Ann
    Posts
    13,053

    Default Re: Adding Rock Throwing to Units with Spears/Swords and Shields

    Quote Originally Posted by open_sketchbook View Post
    So there is some dummied-out rock throwing in the database, as we've seen from the mod that arms the mob with thrown stones. I've got that working no problem.

    Here's deal. I'm trying to make it so that units like Eastern Spearmen and such have a rock-throwing attack; historically, most infantry spent battles chucking stones instead of rushing in to get their stab on. (If you want a good idea what ancient warfare looks like, go watch a riot in progress. Or start one.) So I'm trying to get that going.

    The problem is that stuff with Man_Animations that have swords or spears and shields don't work with the throw. I have to convert them to Javelin infantry, in which case it looks like they are trying to throw their spears (and getting a rock) and they look awful in close combat. These units havethrowing animations, from their precursor spears. But I have no idea how to get that to connect.

    Does anyone know how to adjust things so that I can these units chucking rocks?
    So you're basing your understanding of ancient warfare on mobs of disorganized criminals to get an idea of how trained soldiers fought?

    Let me guess, soldiers in the middle ages mostly just threw rocks. And of course rock throwing was at an all time high in the Napoleonic wars. And let us not forget the millions killed in the Great War, one hundred years ago, to well aimed stones...

    They had slingers, they didn't throw stones like unruly teenagers.
    The Earth is inhabited by billions of idiots.
    The search for intelligent life continues...

  7. #7
    Magnar's Avatar Artifex
    Join Date
    Jul 2013
    Location
    The last place you look
    Posts
    4,370

    Default Re: Adding Rock Throwing to Units with Spears/Swords and Shields

    Quote Originally Posted by Col. Tartleton View Post
    So you're basing your understanding of ancient warfare on mobs of disorganized criminals to get an idea of how trained soldiers fought?

    Let me guess, soldiers in the middle ages mostly just threw rocks. And of course rock throwing was at an all time high in the Napoleonic wars. And let us not forget the millions killed in the Great War, one hundred years ago, to well aimed stones...

    They had slingers, they didn't throw stones like unruly teenagers.
    There is mention of the germanic warriors throwing stones in battle and I vaguely remember reading about some rome cavalry training to throw rocks while mounted.

Posting Permissions

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