Commit Graph
32 Commits
Author SHA1 Message Date
claudeandClaude Opus 5.5 9e28969629 Add ledge mantling
Ashlar checks / tooling (push) Successful in 5s
New [Game] mantling setting, on by default, with mantle max height (1.1
times the actor's height above its feet) and mantle duration (0.4 s).
When the player jumps or falls into a wall while moving towards it
(within 60 degrees), the movement solver casts the player's collision
shape up, across the edge and down. If it finds a surface flat enough to
stand on, above the feet and within reach, with headroom and room on top,
the player moves up, across and onto it along that checked path. Movement
and jump input are ignored meanwhile, and the climb ends any fall without
fall damage. No animation is needed. A script move or teleport, noclip or
paralysis cancels a climb.

Lua: self.controls.mantle (true by default) vetoes climbs while false,
and the actor's scripts get an AshlarMantle event with the ledge height
when one starts. The engine logs "Ashlar mantle:" lines at verbose level.
Player only; with the setting off nothing changes.

The geometry rules (reach, headroom, room on top, slope, too high, too
low) and the climb path are in mwphysics/mantle.cpp, apart from the
physics calls, with unit tests. The new mantle scenario uses a CC0 box
mesh written for it: the player climbs an 80 unit ledge, doesn't climb it
with the Lua veto, and doesn't climb a 240 unit wall.

Closes #28

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:44:40 -05:00
Dave Corley 0a520521cd CLEANUP: Save state mutation should be gated behind a function and not contextually mutable 2026-09-04 11:19:32 -05:00
GoodBetterandCole Green 697f79e1ea Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Cole Green <36878742-nox7@users.noreply.gitlab.com>
2026-08-22 18:34:33 +00:00
gbtb c88fd1ea68 ShowMessage event now supporst showInDialogue argument too 2026-08-22 18:21:29 +10:00
Dave CorleyandEvil Eye 4de8816679 CLEANUP: again 2026-08-03 16:51:12 +02:00
Dave CorleyandEvil Eye a98c12431e CLEANUP: Correct documentation errors 2026-08-03 16:51:12 +02:00
Dave CorleyandEvil Eye 9ebc92b4a9 CLEANUP: 3 am copy paste error 2026-08-03 16:51:12 +02:00
Dave CorleyandEvil Eye ba4b40e668 FEAT: Add an eventHandler in global scope to switch save states for objects 2026-08-03 16:51:12 +02:00
Mads Buvik SandveiandAlexei Kotov 3ad5daf348 Dehardcode apply magic effects 2026-07-30 00:42:34 +03:00
nox7 72734671be Fix docs showing wrong table index for ModifyStat event 2026-05-04 21:16:05 -05:00
MaarsandDaisyhasacat 731a0ee698 onDialogueResponse implementation 2026-02-13 22:55:38 +00:00
ComeBESNIER ec81e3b4a6 Edit events.rst
Add a space between `amount` and `=` for stylistical reasons.
2025-11-23 13:42:05 +00:00
ComeBESNIER ac7cc4c9ea Update file events.rst 2025-11-23 09:16:55 +00:00
Dave Corley 42fa037195 FIX: Correct typo in unlock events 2025-11-08 15:52:02 -06:00
SkyHasACat c276f850dc One more fix 2025-08-02 22:49:58 -07:00
SkyHasACat 286c4d9101 a word 2025-08-02 21:40:09 -07:00
Mads Buvik SandveiandSkyhasacat 34eb3d485d [Lua] Partially dehardcode onHit 2025-07-30 20:21:15 +00:00
Mads Buvik Sandvei 7143115e57 Doc update 2025-07-05 21:30:51 +02:00
Mads Buvik Sandvei 1b9802472d Doc updates 2025-07-05 21:30:51 +02:00
Mads Buvik Sandvei c7e3f9b0cf Add some events from the dehardcode spellcasting MR, that do not need to be specific to that MR. 2025-07-05 21:30:51 +02:00
Cody Glassman 302d92561d docs - begin restructing docs 2025-06-16 15:36:43 -07:00
Evil Eye efb819b9d2 Rename to Died 2023-12-04 17:50:18 +01:00
Evil Eye ad68b7e18b Turn onDeath the engine handler into OnDeath the regular event 2023-12-04 17:32:38 +01:00
Petr Mikheev 6161953106 Allow reading ESM4 books 2023-10-03 10:55:12 +02:00
Petr Mikheev fb8ccf52d8 Add missing argument force in UseItem 2023-09-11 16:21:34 +02:00
Petr Mikheev 23a7661d0b Control UI pause from Lua 2023-09-03 03:41:13 +02:00
psi29a b818414d82 Merge branch 'activate_and_use' into 'master'
Handle Use action in Lua in a similar way to Activate action

See merge request OpenMW/openmw!3354
2023-09-02 15:11:43 +00:00
Petr Mikheev f260fa006e Show OpenMW version and Lua API revision in documentation. 2023-08-31 20:56:02 +02:00
Petr Mikheev ea8692a534 Add usehandlers.lua (same approach as activationhandlers.lua) 2023-08-30 22:48:51 +02:00
Petr Mikheev c5ba289bc7 Handle UI modes open/close sounds in Lua 2023-08-20 17:49:56 +02:00
Petr Mikheev 87eacf774a Control GUI modes from Lua 2023-08-20 17:49:56 +02:00
Petr Mikheev 6c56436809 Control AI packages from Lua 2022-02-06 15:01:51 +01:00