Thread: Death Sounds
View Single Post
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-23-2011 , 09:30   Re: Death Sounds
Reply With Quote #16

Quote:
Originally Posted by ConnorMcLeod View Post
You musn't (don't have to ? w/e) pass 'sound/' in wav play cmd.
I've tried with and without /sound for .wav files, and it seems to work with both, so what is the difference ?

Quote:
Originally Posted by Arkshine View Post
You should not register the event if no sounds were found from the parsing.

Also, I would suggest to format directly the sound with spk or mp3 play at parsing time before saving in the array, so you can use directly something like that :

Code:
public EventDeathMsg() { client_cmd( read_data( 2 ), "%a", ArrayGetStringHandle( g_aSounds, g_iTotalSounds == 1 ? 0 : random( g_iTotalSounds ) ) ); }
I'll update it once i have received an answer from Connor for the question above.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes