Merge branch 'lua_player_attack_test' into 'master'

Direct player attack lower by target's half height

See merge request OpenMW/openmw!4562
This commit is contained in:
Alexei Kotov 2025-03-04 22:49:32 +03:00
commit 82307d4e6b

View File

@ -315,7 +315,8 @@ testing.registerLocalTest('playerWeaponAttack',
self.controls.run = true
self.controls.movement = 1
else
destination = targetActor.position
local halfExtents = types.Actor.getPathfindingAgentBounds(targetActor).halfExtents
destination = targetActor.position - util.vector3(0, 0, halfExtents.z)
if nextTime < time then
if use == 0 then