Created 3 years ago2021-03-20 15:31:23 UTC by The Mighty Goglu.
CBaseAnimating::GetAttachment
should work. On the client side it's complicated because attachment positions are cached in cl_entity_t::attachments
and get updated once per frame at a specific time. Depending on when you access that the values will either be outdated, set to the viewmodel origin or to their correct values.