View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-11-2016 , 13:52   Re: Ultimate Fire in the Hole [Messages|Grenade Trail|Grenade Glow|Sounds]
Reply With Quote #16

No, no. Let's say for example the user wants to block the "fire in the hole" sound for the HE grenade. He will leave the option SOUND_HE blank in the .ini file, so g_eSettings[stgSoundHe] will be empty, since no value is passed to it with or without the is_blank(szValue) check in fileRead(). Next, when grenade_throw() is called, the sound of the thrown grenade gets coppied into szSound, so if a HE grenade was thrown, szSound will be empty and if it was some other grenade - it won't be empty, so that's why that check is there - if it wasn't, the plugin will atempt to play a blank sound on the player(s).

Are you following?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom