Repository navigation
PCapture-Lib 3.7
V3.7 Changelog
This release introduces new features for advanced entity hierarchy management and includes several important fixes and refactors to improve robustness and precision across the library.
New Features
pcaptEnts:- Added
SetAbsCenterandSetCentermethods for precise control over entity centering based on their origin. - Added
GetLocalCoordsto calculate an entity's position and angles relative to its parent, simplifying complex positioning tasks. - Added
GetAllChildrenandGetAllChildrenRecursivelyto enable straightforward traversal of the entity parent-child hierarchy.
- Added
Bug Fixes
pcaptEnts:- Corrected the logic in
SetAbsOrigin2to properly handle parented entities, ensuring accurate world position setting.
- Corrected the logic in
utils/portals:- Fixed a bug in
InitPortalPairthat could cause duplicate portal detectors to be created, preventing potential undefined behavior.
- Fixed a bug in
ArrayEx:- The
clonemethod now correctly performs a deep copy.
- The
Refactors and Improvements
utils/portals:- Refactored
FindPartnerForPropPortallogic for more reliable and accurate portal pairing.
- Refactored
utils/macros:- Improved
PointInBoundslogic to better handle floating-point precision, avoiding potential engine errors.
- Improved
- Global Variables:
- Converted constants
MAX_PORTAL_CAST_DEPTHandALWAYS_PRECACHED_MODELto global variables to ensure accessibility across all script scopes and allow for runtime modifications.
- Converted constants