szapp / GothicFreeAim

Free aiming for the video game series Gothic
https://gfa.szapp.de
MIT License
34 stars 4 forks source link

Retrieve oriented bounding boxes automatically from node names #171

Closed szapp closed 6 years ago

szapp commented 6 years ago

So far, weak spot (critical hit nodes) need to be defined in dimensions for all NPC types individually, because model nodes do not have bounding boxes (exceptions are dedicated head visuals of humanoids).

However, I found a way to retrieve not only a bounding box but even an oriented bounding box from the node name. This is a huge improvement and cuts away so much necessary work on the side of customization.

Now, this needs to be fully implemented in the critical hit detection: