Open KaziiTheAvali opened 8 months ago
"is holding" should be doable, I'll need to take a look
"is looking at" is more complex because of how we define "looking at"... right now we only know entities by their origin (see autoaim ent), which isn't necessarily in the middle. also needs epsilon.
just checked, "is holding" is super doable with optional ent argument
for the record: player m_hUseEntity
and m_hAttachedObject
are ehandles to the pickup controller and to the held object respectively. pickup controller then has m_grabController
which also has m_attachedEntity
I want to see if we can somehow add:
I keep getting a relatively random desync where a cube won't always go through a portal in time even though position and angle checks pass.