Phil25 / RTD

Roll The Dice SourceMod plugin for Team Fortress 2
GNU General Public License v3.0
55 stars 22 forks source link

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

Open StShAzzy opened 1 month ago

StShAzzy commented 1 month ago

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 commented 1 month ago

https://github.com/Phil25/RTD/blob/26aba4fc19b7390fd1e4a8b341bb25abfae4e068/scripting/rtd/perks/autoheal.sp#L39

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