Quote:
Checking if sound/sprite exists before passing it to precache would be nice. Use file_exists for that.
In case of wrong configuration, make some logs to notify the user.
|
I don't think that is necessary. It would be obvious if a file is missing. A message will show in the console if a sound is missing, and the server will automatically crash if the sprite is missing. In addition,
file_exists checks in the cstrike folder, and people may use sounds from the valve folder.
Quote:
When replacing the old sounds/sprites you could unprecache the new ones(just a matter to hook FM_PrecacheModel for sprites and check the sprite name, for sounds hook FM_PrecacheSound). I assume you know default names for sounds & sprites.
|
I did it for the sound, but I'm not replacing any sprites.
Quote:
In grenade_throw check if user is alive before retrieving team.
|
Are you sure about this? What if the player dies in the exact moment when he is about to throw the grenade? What's the problem of getting the team of a dead player?
Everything else is fixed.