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

Add entity oob detection #323

Merged
merged 1 commit into from
Nov 5, 2023
Merged

Conversation

UncraftedName
Copy link
Contributor

@UncraftedName UncraftedName commented Nov 2, 2023

Adds the following:

  • spt_hud_oob_ents 0|1 var
  • spt_draw_oob_ents 0|1|2|3 var
  • spt_print_oob_ents cmd

This is a proof of concept entity oob checker using the OBB center. I used this point because it is what determines when non-player entities get teleported; during normal™ gameplay this point should not go oob. A small box is shown for oob entities, and the list can be shown in the hud or printed to console.
image
image
image

For now, I will say this is a proof of concept since it has not been officially decided how to determine if an ent is oob. Also, there is a blacklist of class names that are ignored in the entity collection - this list is probably not complete and may be better as a whitelist. The hope is that it will get updated over time if this feature is used and people report bugs.

@lipsanen lipsanen merged commit 04d319d into YaLTeR:master Nov 5, 2023
@lipsanen
Copy link
Collaborator

lipsanen commented Nov 5, 2023

tyvm

@UncraftedName UncraftedName deleted the feat-oob-props branch November 7, 2023 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants