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

[BUG]: Being in a different team than expected makes the particles get indexed out of bounds #122

Open
StShAzzy opened this issue Jun 15, 2024 · 1 comment

Comments

@StShAzzy
Copy link

check the player's team if , and if it is, just make it use the blue variant

or if you're that mean, you could just not allow players to roll if they aren't on either red or blue team, which would suck as it's not the proper fix

@StShAzzy
Copy link
Author

switch (TF2_GetClientTeam(client))

this one for instance when you're in spectator but alive and players (has a playermodel and everything else, but it's just in another team)
causes the particles to get indexed out of bounds, grabbing any junk nearby, some times it's harmless because the particles despawn, other times, spawns particles that don't despawn, which means the client will crash if too many spawn, as it runs out of edicts for rendering particles

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

No branches or pull requests

1 participant