Files
sourcemod/extensions/sdktools
Mikusch afc9310704 Add LookupEntityAttachment & GetEntityAttachment natives (#1653)
Using the virtual `CBaseAnimating::GetAttachment(int, matrix3x4_t &)` was a deliberate choice because virtual offsets are generally easier to maintain than signatures. The `matrix3x4_t` is converted to world position and world angles internally.
Some of the other overloads are also inlined on a few games, making this the best choice.

Since this call can only be used on classes inheriting `CBaseAnimating`, we check if the `DT_BaseAnimating` SendTable exists on the entity, throwing a native error if it doesn't.
This safeguard could be greatly improved with a call to `CBaseEntity::GetBaseAnimating`, but would require more gamedata (maybe something to consider for the future?)
2022-01-03 13:13:54 +00:00
..
2020-08-18 23:09:43 -07:00
2019-05-15 07:22:34 -04:00
2008-03-30 07:00:22 +00:00
2008-03-30 07:00:22 +00:00
2021-10-12 20:56:51 -04:00
2008-03-30 07:00:22 +00:00
2020-03-11 22:36:25 +00:00