Files
ashlar/docs/source/reference/modding/settings
claudeandClaude Opus 5.5 4e152c7c4e Add active blocking for NPCs and creatures
With real time combat and the new [Game] 'ai active blocking' setting
(on by default), NPCs and creatures block through the same stance and
arc rules as the player instead of the classic roll.

In combat, an actor with a shield ready and its weapon drawn raises the
stance when an enemy in front of it winds up a melee attack within
reach. Whether it reacts is rolled once per wind-up (10% at 0 Block
skill and agility, up to 90%, scaled by fatigue), and its reaction
delay falls from 0.6 s to 0.15 s with skill. It keeps the block up for
half a second after the wind-up ends so it catches the swing, drops it
after two seconds at most so a held wind-up can't pin it, and starts
no attacks while blocking.

The decision lives in mwmechanics/aiblock.cpp. Combat AI sets a
separate, unsaved CreatureStats flag that is cleared every frame before
AI runs, so a block never outlives the combat package and a Lua block
request is left alone. Actors without a shield never block, and a
creature blocks only if it can carry a shield.

Closes #20

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 04:31:38 -05:00
..
2026-03-15 14:13:19 -05:00
2025-06-23 17:39:01 -07:00
2026-03-15 14:13:19 -05:00
2026-03-15 14:13:19 -05:00
2025-06-23 17:39:01 -07:00
2025-06-23 17:39:01 -07:00
2025-06-23 17:39:01 -07:00
2026-10-27 19:45:33 +01:00
2025-06-23 17:39:01 -07:00
2025-06-23 17:39:01 -07:00
2025-06-23 17:39:01 -07:00
2025-06-23 17:39:01 -07:00
2026-06-02 17:29:25 -07:00
2026-09-14 22:44:35 +02:00
2025-06-23 17:39:01 -07:00
2025-06-23 17:39:01 -07:00
2026-03-15 14:13:19 -05:00
2025-06-23 17:39:01 -07:00
2026-08-15 07:29:05 -07:00
2025-06-23 17:39:01 -07:00