Raised This Month: $12 Target: $400
 3% 

[CS:GO/ANY?] Store Death sounds (v1.3 - 23/10/18)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Plugin ID:
6233
Plugin Version:
1.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Adds support for death sounds to Zephyrus Store plugin
Old 08-21-2018 , 22:26   [CS:GO/ANY?] Store Death sounds (v1.3 - 23/10/18)
Reply With Quote #1

Rate Thread

Death sounds for [ANY] Store by Zephyrus

With this plugin you can add death sounds to the Store by Zephyrus. Requested here.
When a player dies with equipt death sound, a sound will be played from players origin or from world (see config).

This plugin doesn't provide any soundfiles!

Only tested on CS:GO.
Please test and report other games.

Installation
Quote:
  1. store_deathsound.smx -> addons/sourcemod/plugins/
  2. store_deathsound.sp -> addons/sourcemod/scripting/ (optional)
  3. open your \addons\sourcemod\translations\store.phrases. txt and add following part:
    Code:
      "death_sound" 
      { 
        "en" "Death sounds" 
      }
  4. open your \addons\sourcemod\configs\store\items.txt and configure your sounds like following example:
    Code:
      	"Death sounds"
    	{
    		"Tribute"
    		{
    			"path" "hg/cannon.mp3"
    			"origin" "1"  // 1 - global (map)/ 2 - local (player)/ 3 - player voice
    			"volume" "1.0"
    			"price" "100"
    			"block" "1"   // 1 - block orignal death voice
    			"type" "death_sound"
    		}
    		"I'm dying!"
    		{
    			"path" "player/dying.mp3"
    			"origin" "3"  // 1 - global / 2 - local / 3 - player voice
    			"volume" "0.5"
    			"price" "100"
    			"block" "0"   // 1 - block orignal death voice
    			"type" "death_sound"
    		}
    		"Argh"
    		{
    			"path" "player/argh.mp3"
    			"origin" "2"  // 1 - global / 2 - local / 3 - player voice
    			"volume" "1.0"
    			"price" "100"
    			"block" "1"   // 1 - block orignal death voice
    			"type" "death_sound"
    		}
    	}
  5. Have Fun! Give feedback!
Include file for compile
Github
https://github.com/shanapu/StoreDeathsound

Contributer
good-live, Kxnrl

Credits
beastedout for the idea & request
Big thanks @Zephyrus for his great store!
Also big thanks to all sourcemod & metamod developers out there!

You like my work for the community? Buy me a beer!
Attached Files
File Type: zip Store-Deathsound.zip (30.3 KB, 431 views)
File Type: sp Get Plugin or Get Source (MyWeaponAllocator.sp - 443 views - 32.9 KB)
File Type: smx MyWeaponAllocator.smx (22.4 KB, 291 views)
__________________
coding & free software

Last edited by shanapu; 10-22-2018 at 18:58. Reason: v1.3
shanapu is offline
Lannister
Veteran Member
Join Date: Apr 2015
Old 08-21-2018 , 22:43   Re: [CS:GO/ANY?] Store Death sounds (v1.0 - 22/08/18)
Reply With Quote #2

Good job!, question, will this stop other sounds from being played?

Last edited by Lannister; 08-21-2018 at 22:44.
Lannister is offline
beastedout
Member
Join Date: Aug 2018
Old 08-22-2018 , 02:28   Re: [CS:GO/ANY?] Store Death sounds (v1.0 - 22/08/18)
Reply With Quote #3

beastedout is offline
beastedout
Member
Join Date: Aug 2018
Old 08-22-2018 , 02:30   Re: [CS:GO/ANY?] Store Death sounds (v1.0 - 22/08/18)
Reply With Quote #4

Quote:
Originally Posted by Lannister View Post
Good job!, question, will this stop other sounds from being played?
plugin has this line so yes I guess.
PHP Code:
 ClientCommand(client"playgamesound Music.StopAllMusic"); 
beastedout is offline
Kxnrl
AlliedModders Donor
Join Date: May 2015
Old 08-22-2018 , 06:01   Re: [CS:GO/ANY?] Store Death sounds (v1.0 - 22/08/18)
Reply With Quote #5

why block sound when player suicide.
__________________
Kxnrl is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 08-22-2018 , 10:28   Re: [CS:GO/ANY?] Store Death sounds (v1.0 - 22/08/18)
Reply With Quote #6

Update with contributed code by good-live & Kxnrl - Thank you!
Quote:
-new origin to play sound (player voice)
-new key to block game death sound

Quote:
Originally Posted by Lannister View Post
Good job!, question, will this stop other sounds from being played?
It will not stop any custom sounds played by other plugins.
Since this pull request by Kxnrl, the original game deathvoice is blocked, when configured.

Quote:
Originally Posted by beastedout View Post
plugin has this line so yes I guess.
PHP Code:
 ClientCommand(client"playgamesound Music.StopAllMusic"); 
This line was only on the first drafts. On release, this line was removed.
__________________
coding & free software

Last edited by shanapu; 08-22-2018 at 10:29.
shanapu is offline
beastedout
Member
Join Date: Aug 2018
Old 08-22-2018 , 10:32   Re: [CS:GO/ANY?] Store Death sounds (v1.1 - 22/08/18)
Reply With Quote #7

Oh okie, my bad.
beastedout is offline
Lannister
Veteran Member
Join Date: Apr 2015
Old 08-22-2018 , 13:15   Re: [CS:GO/ANY?] Store Death sounds (v1.1 - 22/08/18)
Reply With Quote #8

Now i finally can put Age of Empires Death sounds on my server, thanks for doing this!
Lannister is offline
drespy
Member
Join Date: Jul 2018
Old 08-22-2018 , 15:52   Re: [CS:GO/ANY?] Store Death sounds (v1.1 - 22/08/18)
Reply With Quote #9

It's possible add a option to players disable death sounds?
I think some would bother about it, but most would like ;)
drespy is offline
Kxnrl
AlliedModders Donor
Join Date: May 2015
Old 08-22-2018 , 21:16   Re: [CS:GO/ANY?] Store Death sounds (v1.1 - 22/08/18)
Reply With Quote #10

Quote:
Originally Posted by drespy View Post
It's possible add a option to players disable death sounds?
I think some would bother about it, but most would like ;)
You mean don't emit sound to player if he disabled sound?
__________________
Kxnrl 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 03:16.


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