1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-31 20:36:42 +00:00
openmw-tes3mp/apps/openmw
fredzio b39437dfb6 Don't allow projectiles to stand still when they hit an ally.
When an NPC fire a projectile, it should affect only its targeted actor.
To this end, after a hit is detected the target is checked against the
list of AI targets and reactivated if necessary.
Problem occurs when the hit occurs as a result of a friendly actor going
into the projectile (detected in ClosestNotMeConvexResultCallback):
while the projectile is inside the friend's collision box, it is
deactivated, just to be immediately reactivated. Effectively, the
projectile does nothing until the actor moves out.

Add a check inside the ClosestNotMeConvexResultCallback before declaring
a hit.
Since the necessary data is not safely accessible from the async thread,
maintain a copy inside the Projectile class.
2020-12-14 22:23:01 +01:00
..
mwbase Modify projectile collision to work with async physics 2020-12-08 09:06:33 +01:00
mwclass rename setting 2020-12-07 21:56:41 +01:00
mwdialogue Merge pull request #3018 from akortunov/emplace 2020-11-01 01:58:56 +03:00
mwgui Add more information on mouse over level 2020-12-07 14:57:25 +01:00
mwinput Replace zeroes and nulls by nullptrs 2020-11-29 11:14:07 +04:00
mwmechanics Merge branch 'Show-more-information-about-level-on-menu' into 'master' 2020-12-11 12:04:15 +00:00
mwphysics Don't allow projectiles to stand still when they hit an ally. 2020-12-14 22:23:01 +01:00
mwrender documented that currently underwater shadows are mutually exclusive to refraction scale; to be fixed in follow up issue #5709; documentation fixes 2020-12-02 23:03:10 +00:00
mwscript Replace zeroes and nulls by nullptrs 2020-11-29 11:14:07 +04:00
mwsound Replace zeroes and nulls by nullptrs 2020-11-29 11:14:07 +04:00
mwstate Replace zeroes and nulls by nullptrs 2020-11-29 11:14:07 +04:00
mwworld Don't allow projectiles to stand still when they hit an ally. 2020-12-14 22:23:01 +01:00
android_main.cpp android: Switch to C++ 2019-04-28 18:21:31 -04:00
CMakeLists.txt Generate physics collisions for projectiles (bug #3372) 2020-12-08 09:05:38 +01:00
doc.hpp Fixed more spelling mistakes 2016-12-15 13:09:40 +01:00
engine.cpp Add a setting to disable graphical herbalism 2020-12-07 19:04:32 +01:00
engine.hpp Add stats for all updates 2020-06-30 22:00:23 +02:00
main.cpp Print '--version' and '--help' messages without timestamps 2020-12-08 23:14:49 +01:00