Raised This Month: $51 Target: $400
 12% 

Ultimate Fire in the Hole [Messages|Grenade Trail|Grenade Glow|Sounds]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-15-2016 , 14:33   Re: Ultimate Fire in the Hole [Messages|Grenade Trail|Grenade Glow|Sounds]
Reply With Quote #11

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.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode