Announcement
Collapse
No announcement yet.
Headshot = Headshot.mp3
Collapse
X
-
PikachuMaster
Headshot = Headshot.mp3
How do i make if i headshot a guy , it plays mp3 file -> Headshot.mp3 , its smth to doo with GameEvent...Tags: None
-
I dont know if Source Engine can play mp3's... but EmitSound is what they use for playing sounds I THINK. You could try to hook it with detours or you could hook EmitSound of IVENGINESOUND interface. OR you could be ghetto and use WinAPI
PlaySound
It supports *.wav files only.
And yeah, you need Game Event Manager to find out if shot was headshot or you can do it with offset too or whateveeeeeeeeeeeeeer.lolmaoman: Germans are born with a lifetime x22 login engraved into their birth certificates. True story.
-
Originally posted by ir0nic View PostRegister player_death, check for headshot event var and play that file via WinAPI or an external MP3 class.lolmaoman: Germans are born with a lifetime x22 login engraved into their birth certificates. True story.
Comment
-
Search SDK for "PlaySound" and you find multiple references. Theres plenty of stuff.lolmaoman: Germans are born with a lifetime x22 login engraved into their birth certificates. True story.
Comment
Comment