sourcemod/gamedata
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
..
core.games Detect invalid menu item selections in L4D-based games (#1543) 2021-07-18 20:57:13 +01:00
sdkhooks.games Update Contagion SDKHooks gamedata. 2021-11-15 21:26:23 -05:00
sdktools.games Add LookupEntityAttachment & GetEntityAttachment natives (#1653) 2022-01-03 13:13:54 +00:00
sm-cstrike.games Update TerminateRound signature for CSGO 2021-10-26 09:46:21 -04:00
funcommands.games.txt Change sm_beacon to use game-specific team colors (#1187) 2020-02-23 14:03:00 +00:00
sm-tf2.games.txt Update Team Fortress 2 gamedata 2021-11-15 20:43:51 -05:00