AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Death Sound (https://forums.alliedmods.net/showthread.php?t=103034)

Keksmampfer 10-19-2009 08:36

Re: Death Sound
 
Are the soundfiles in the correct folder on the server? I'll think about disabling the standard deathsound, but i can't promise anything.

Keksmampfer 10-19-2009 11:08

Re: Death Sound
 
Update:
Fixed bug with on / off option.

StrikerMan780 10-19-2009 14:19

Re: Death Sound
 
Yeah, soundfiles were in the correct location. /sounds/misc. I could get it to work if I copied the files to that folder, but if I copied them to the Dedicated Server with an sv_downloadurl, even if the sounds were on both, it would refuse to transfer the files to connecting players, and for some reason, despite being in all the right locations, the Download Table kept saying they were missing. Kinda strange. Sound not being set up for precaching/download correctly?

In light of all that though, it is a good plugin. Keep up the good work.

Black Haze 10-20-2009 17:57

Re: Death Sound
 
Looks awesome, gonna test that first thing tomorrow!

Black Haze 10-21-2009 03:31

Re: Death Sound
 
Just to give you some ideas if you're thinking bout expanding this:
Try making conditions for played sounds, for instance different sounds for headshots, when someone falls to death, when someone has done more then a set amount of damage to kill someone, or even depending on with what weapon you kill em.

Keksmampfer 10-21-2009 10:35

Re: Death Sound
 
Thx, mhn, I already have plans in this direction.




//update: fixed bug with the spamming announce

Black Haze 10-21-2009 18:19

Re: Death Sound
 
Doesn't play :(
It does download the sounds, still never plays em.

Config:
Quote:

// This file was auto-generated by SourceMod (v1.2.3)
// ConVars for plugin "deathsound.smx"


// 1 - Allows the player to turn off his / her deathsounds
// 0 - Doesn't allows the player to turn off his / her deathsounds
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_deathsound_allow_disable "0"

// 0 - No Announce
// 1 - 1 Every 45 seconds the announce: Use /deathsound or !deathsound to turn on / off the deathsound.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_deathsound_announce "0"

// 1 - Emits a sound at the position of the daed player
// 0 - Plays the sound directly to the players
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_deathsound_emit "1"

// 1 - Turn the plugin On
// 0 - Turn the plugin OFF
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_deathsound_enable "1"

// Play a sound to:
// +1 :the dieing player
// +2 :the attacker
// +4 :the team of the dieing player
// +8 :the team of the attacker
// +16 :all dead players
// +32 :all living players
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "63.000000"
sm_deathsound_playto "63"

// 1 - Everyone hears the same sound
// 0 - Everyone hears a different sound
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_deathsound_samesound "1"

// 1 - Stops the sound bevore
// 0 - don't stop
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_deathsound_stoplastsound "0"
No errors in both client and server console.

Keksmampfer 10-22-2009 02:34

Re: Death Sound
 
If a bot has the clientid 1 and sm_deathsound_samesound is on, the plugin will play no sound. I fixed it, it was a logic mistake. :cry:

//Update:
* Fixed logic bug -.--.-.-.-.-.-.-.-.-.-.-.-.-
* Code optimization

Black Haze 10-22-2009 06:15

Re: Death Sound
 
This now works, and can only be described as brilliant :D
Click to connect to my server it runs on
Got one more request, although I'm not too sure it's possible:
When people die their death sound is played in the place they died, as requested. Would it be possible to move the sound with the flying body? (the bodies on our server fly all over the place when dead).

Thanks for a brilliant plugin!

rezonans 10-30-2009 18:59

Re: Death Sound
 
will tell me what could be a problem: on the server Windows everything works fine, on linux, when loading a plugin gives an error. deathsound.smx failed to load: Unable to open file ???? :cry:


All times are GMT -4. The time now is 02:17.

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