splewis / csgo-practice-mode

CS:GO Sourcemod plugin for private team/individual practice servers
GNU General Public License v3.0
457 stars 71 forks source link

.throw is throwing nades which no longer exist within the server's nade.cfg file #242

Open parker789 opened 2 years ago

parker789 commented 2 years ago

Expected behavior

.throw smokes should be throwing all the smokes within the Category: Smokes as indicated by the plugin output ingame chat, and none else.

Actual behavior

There are additional smokes which are thrown, which do not belong to the "Smokes" category, as well as within the maps nades.cfg file on the server in general. I have absolutely no idea where these mystery nades are being thrown from. It's almost as if data is cached somewhere and csutils is using that data?

Steps to reproduce

This is from the error logs:

L 05/18/2022 - 22:17:20: [SM] Blaming: practicemode.smx
L 05/18/2022 - 22:17:20: [SM] Call stack trace:
L 05/18/2022 - 22:17:20: [SM]   [1] Line 1604, ./scripting/practicemode.sp::CSU_OnThrowGrenade
L 05/18/2022 - 22:17:20: [SM]   [3] Call_Finish
L 05/18/2022 - 22:17:20: [SM]   [4] Line 334, ./scripting/csutils.sp::CaptureEntity
L 05/18/2022 - 22:17:32: [SM] Exception reported: Array index out-of-bounds (index -1, limit 66)