Jump to content


Photo

Actor usage of ranged weapons with shield equipped


  • Please log in to reply
7 replies to this topic

#1 Kastagir

Kastagir
  • Member
  • 58 posts

Posted 21 August 2008 - 09:33 AM

I saw this mentioned on the EasyTutu forums back in January and noticed that the behavior also exists in current BGT. For example, skeletons in High Hedge have throwing knives, swords and shields. In vanilla BG1, they would throw knives at the party until they ran out, then would close to melee with swords and shields. In BGT, they simply close and attack with swords, never using their throwing knives. Is this a limitation brought about by the presence of the equipped shield that is only showing up because of the BG2 engine (possibly due to scripting differences)? Or is something else going on? (and, ultimately, is there an elegant solution?)

#2 Chevalier

Chevalier

    Knight of the Realms

  • Modder
  • 2405 posts

Posted 21 August 2008 - 04:24 PM

ultimately, is there an elegant solution?

You might try SCS.

I Ride for the King!


a.k.a. Chev


#3 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 22 August 2008 - 06:11 AM

Well, supposedly they would change to sword and shield if you got too close, and change back to throwing daggers if you ran away.
However, BG2 has problems getting EquipRanged() to work properly with the throwing daggers, so I can't really restore the original behaviour. I'm not sure if DW had a solution to this in SCS.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#4 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 22 August 2008 - 06:28 AM

This bugs the hell out of me too, and it makes no sense. An "elegant" fix that doesn't resort to adding a whole lot of scripting would be great.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#5 Taimon

Taimon
  • Member
  • 387 posts

Posted 22 August 2008 - 10:20 AM

What's strange is, that the engine seems capable of handling ranged + shield with EquipRanged() (try a sling), but somehow fails with daggers.

#6 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 22 August 2008 - 10:42 AM

What's strange is, that the engine seems capable of handling ranged + shield with EquipRanged() (try a sling), but somehow fails with daggers.

That is odd, since obviously any kind of dagger can be used with a shield. Maybe the BG2 script engine considers throwing daggers melee weapons for some reason? Or maybe it only looks at "launchers" like slings and bows? Does it choke on darts too?

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#7 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 22 August 2008 - 05:53 PM

What's strange is, that the engine seems capable of handling ranged + shield with EquipRanged() (try a sling), but somehow fails with daggers.

That is odd, since obviously any kind of dagger can be used with a shield. Maybe the BG2 script engine considers throwing daggers melee weapons for some reason? Or maybe it only looks at "launchers" like slings and bows? Does it choke on darts too?

Not sure about darts, but I know that items have an IsMissile() flag for each ability (BG2 has false for the Throwing Dagger whereas BG1 has true). However, whether that is True or False doesn't allow the engine to recognise it on EquipRanged().

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#8 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 23 August 2008 - 09:28 AM

Not sure about darts, but I know that items have an IsMissile() flag for each ability (BG2 has false for the Throwing Dagger whereas BG1 has true). However, whether that is True or False doesn't allow the engine to recognise it on EquipRanged().

Hmm. So what purpose does it serve?

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle