Raised This Month: $81 Target: $400
 20% 

Sound On Death and Kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cuttlas
Senior Member
Join Date: Jan 2015
Old 11-01-2023 , 17:58   Sound On Death and Kill
Reply With Quote #1

is there any plugin that can play custom sound on killing (gaining a score) and on player death?

and I need every player only hear their own sound, the playing should not be public for all

Last edited by Cuttlas; 11-01-2023 at 18:00.
Cuttlas is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 11-02-2023 , 11:21   Re: Sound On Death and Kill
Reply With Quote #2

You can change the sounds on top of the file. Here you go.
Attached Files
File Type: sma Get Plugin or Get Source (kill_death_sound.sma - 53 views - 781 Bytes)
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Cuttlas
Senior Member
Join Date: Jan 2015
Old 11-02-2023 , 12:24   Re: Sound On Death and Kill
Reply With Quote #3

thank you bro very nice ) and could you please add two extra features for death sound?

1- while playing the death sound, the game sounds mute.
2- while playing the death sound, it do not switch to other players on death camera and show the dead player while playing the death sound

Last edited by Cuttlas; 11-02-2023 at 12:25.
Cuttlas is offline
Old 11-02-2023, 12:30
Cuttlas
This message has been deleted by Cuttlas.
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 11-03-2023 , 13:24   Re: Sound On Death and Kill
Reply With Quote #4

@bibu
Quote:
Originally Posted by Arkshine View Post
Use precache_generic. precache_sound is for wav only. And more generally if you want to make the client downloading something only, use precache_generic.
__________________
mlibre is offline
Cuttlas
Senior Member
Join Date: Jan 2015
Old 11-05-2023 , 08:20   Re: Sound On Death and Kill
Reply With Quote #5

is this possible or impossible?

while playing the death sound, the game sounds mute.
Cuttlas is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 11-06-2023 , 10:24   Re: Sound On Death and Kill
Reply With Quote #6

try with mp3 format
__________________
mlibre is offline
Cuttlas
Senior Member
Join Date: Jan 2015
Old 11-06-2023 , 11:17   Re: Sound On Death and Kill
Reply With Quote #7

I have used this:

new const g_szSoundDeath[] = "sound/weapons/Die.mp3"

the Die sound is mp3, but it won't play at all
Cuttlas is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 11-06-2023 , 11:42   Re: Sound On Death and Kill
Reply With Quote #8

to reproduce this type of format it is done in another way, try this

PHP Code:
client_cmd(iVictim"mp3 play ^"%s^""g_szSoundDeath
__________________
mlibre is offline
Cuttlas
Senior Member
Join Date: Jan 2015
Old 11-06-2023 , 14:23   Re: Sound On Death and Kill
Reply With Quote #9

ok, I have fixed it with mp3,

but again, the sound will play along the game sounds (I mean while playing the death sound, the footsteps and shooting sound can hear and will affect the death sound). also with mp3 the volume is very low
Cuttlas is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 11-06-2023 , 19:13   Re: Sound On Death and Kill
Reply With Quote #10

try

PHP Code:
client_cmd(iVictim"stopsound;mp3 play ^"%s^""g_szSoundDeath
as for the volume, it depends on your sound; Otherwise, you must increase it yourself from the game settings menu, you can also do it through the console.

Code:
MP3Volume
__________________
mlibre is offline
Reply


Thread Tools
Display Modes

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 08:36.


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