mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Merge branch 'lua_player_attack_test' into 'master'
Some checks are pending
Build and test / Ubuntu (push) Waiting to run
Build and test / MacOS (push) Waiting to run
Build and test / Read .env file and expose it as output (push) Waiting to run
Build and test / Windows (2019) (push) Blocked by required conditions
Build and test / Windows (2022) (push) Blocked by required conditions
Some checks are pending
Build and test / Ubuntu (push) Waiting to run
Build and test / MacOS (push) Waiting to run
Build and test / Read .env file and expose it as output (push) Waiting to run
Build and test / Windows (2019) (push) Blocked by required conditions
Build and test / Windows (2022) (push) Blocked by required conditions
Direct player attack lower by target's half height See merge request OpenMW/openmw!4562
This commit is contained in:
commit
82307d4e6b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue