You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For displaying focus information a trace ray is shot detecting bounding boxes (necessary to detect npcs which are otherwise ignored by trace rays). However, the bounding boxes of (invisible) vobs get in the way, and block the trace ray.
Possible Fix
To fix this, shoot a trace ray without bbox detection if there is no focus npc. In the other case shoot a bbox detecting trace ray. If in the second case the found vob is not an oCNpc, ignore the close range and take the distance of the first trace ray or (to be more conservative with performance) set it to the maximum distance.
The focus collection should be set to stricter angles for this to work better.
Alternative
Shoot a bbox trace ray but also set the ignore vobs flag. What will happen?
The text was updated successfully, but these errors were encountered:
DOES NOT WORK: oCNpc::IsNpcBetweenMeAndTarget is for close range npc fighting
Shoot trace ray without bbox detection.
If there is a collected focus npc, perform an action similar to 0x67C7D0 (6801360) int __thiscall oCNpc::IsNpcBetweenMeAndTarget(zCVob *) (but instead of the hero take the camera and instead of a zCVob do it with a zVEC3 position). If an npc is in the way, it will most likely be the focus npc (how to make sure?). Take the distance to the focus npc.
Since oCNpc::IsNpcBetweenMeAndTarget might not be easy or performance light to fully rewrite in deadalus, the camera vob could be casted as oCNpc and a dummy or fake vob can be used as target vob. It is only important to assure there is any npc in between - it does not matter if it is the focus npc.
If there is no valid focus npc, take the distance to the trace ray intersection.
For displaying focus information a trace ray is shot detecting bounding boxes (necessary to detect npcs which are otherwise ignored by trace rays). However, the bounding boxes of (invisible) vobs get in the way, and block the trace ray.
Possible Fix
To fix this, shoot a trace ray without bbox detection if there is no focus npc. In the other case shoot a bbox detecting trace ray. If in the second case the found vob is not an oCNpc, ignore the close range and take the distance of the first trace ray or (to be more conservative with performance) set it to the maximum distance.
The focus collection should be set to stricter angles for this to work better.
Alternative
Shoot a bbox trace ray but also set the ignore vobs flag. What will happen?
The text was updated successfully, but these errors were encountered: