Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check tool improvements #213

Open
KaziiTheAvali opened this issue Jan 10, 2024 · 2 comments
Open

check tool improvements #213

KaziiTheAvali opened this issue Jan 10, 2024 · 2 comments
Labels
enhancement New feature or request tas TAS tools only

Comments

@KaziiTheAvali
Copy link

KaziiTheAvali commented Jan 10, 2024

I want to see if we can somehow add:

  • "is holding" check with an optional ent argument - if ent argument is given, check if you're holding that entity, otherwise if you're holding anything
  • "is looking at" with either a position or an ent argument.

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.

@ThisAMJ ThisAMJ changed the title SUGGESTION a few more checks check tool improvements Jan 10, 2024
@ThisAMJ ThisAMJ added the tas TAS tools only label Jan 10, 2024
@ThisAMJ
Copy link
Member

ThisAMJ commented Apr 9, 2024

"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.

@ThisAMJ ThisAMJ added the enhancement New feature or request label Apr 12, 2024
@ThisAMJ
Copy link
Member

ThisAMJ commented Apr 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tas TAS tools only
Projects
None yet
Development

No branches or pull requests

2 participants