csgo-practice-mode icon indicating copy to clipboard operation
csgo-practice-mode copied to clipboard

Using sm_fixgrenades results in grenade data deletion

Open xmrv opened this issue 6 years ago • 2 comments

Expected behavior

Using this command would normally only reassign the ids used for grenades (and it does).

Actual behavior

But after using it; grenadeType, grenadeOrigin and grenadeVelocity entries in the nade config files get deleted. Every single nade has to be thrown and .updated again.

Steps to reproduce

  • Plugin version: 1.3.3
  • Sourcemod version: 1.10.0.6458
  • Steps to reproduce (please be specific): Just .save 3 different nades. Then .delete either 1st or 2nd one. Use sm_fixgrenades and try to .throw any <grenade id>. The nade won't be thrown.

xmrv avatar Dec 02 '19 12:12 xmrv

I'd suggest map reloading after sm_fixgrenades . Do you know if the grenade data is actually deleted? Your steps to reproduce don't mention whether the actual data files get deleted or not.

splewis avatar Apr 12 '20 01:04 splewis

Map reloading does not fix it, sadly. The file in which the nade data is stored, does not get deleted; the text inside however does. Tested with SM 1.10.0.6478 and the bug still exists.

xmrv avatar Apr 12 '20 11:04 xmrv