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

ImGui ent props #346

Merged
merged 1 commit into from
Sep 19, 2024
Merged

ImGui ent props #346

merged 1 commit into from
Sep 19, 2024

Conversation

UncraftedName
Copy link
Contributor

This is meant to be merged after #345.

Changes:

  • Added spt_hud_ent_info to the hud tab
  • Change utils::ClientEntity() to return null for large indices because the game doesn't do that check for us and this can trigger a crash otherwise (the game does check for index<0 though)
  • Small tweaks to utils::FillInfoArray() to make it slightly more resilient to weird user input

I've tested this with a bunch of weird user input - to the best of my knowledge it syncs up with the utils::FillInfoArray() logic and gracefully handles weird edge cases. When the user interacts with the GUI, it sort of "normalizes" the cvar value to something slightly more sensible.

2024-09-17.04-42-28.mp4

@lipsanen lipsanen merged commit 41d53fc into YaLTeR:master Sep 19, 2024
8 checks passed
@lipsanen
Copy link
Collaborator

tyvm

@UncraftedName UncraftedName deleted the imgui-ent-props branch September 19, 2024 17:49
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