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

Say Sounds (including Hybrid Edition) (4.0.8)


Post New Thread Reply   
 
Thread Tools Display Modes
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 03-14-2012 , 01:56   Re: Say Sounds (including Hybrid Edition) (4.0.4)
Reply With Quote #711

Setting sm_saysoundhe_time_between_sounds (for normal users) or sm_saysoundhe_time_between_admin_sounds (for admins) to 0 should do the trick.
gH0sTy is offline
Roundcat
Senior Member
Join Date: Feb 2012
Old 03-15-2012 , 05:28   Re: Say Sounds (including Hybrid Edition) (4.0.4)
Reply With Quote #712

I want to bring up the sounds list by pressing a bind key. Ive done so by binding a key with

bind s "soundlist"

but after a server restart or map load this bind only works if I first opt in the admin menu to 'show sound menu' - is there a way to make the soundlist menu available at all times without first opting for its visability in the admin menu?
__________________
I know not my ar*e from its elbow.
Roundcat is offline
doze
Senior Member
Join Date: Mar 2012
Old 03-17-2012 , 16:07   Re: Say Sounds (including Hybrid Edition) (4.0.4)
Reply With Quote #713

Is there any way to make Say Sounds play a sound when a map vote is starting or about to start ?
doze is offline
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 03-18-2012 , 07:09   Re: Say Sounds (including Hybrid Edition) (4.0.4)
Reply With Quote #714

Quote:
Originally Posted by doze View Post
Is there any way to make Say Sounds play a sound when a map vote is starting or about to start ?
Now you can do that.

4.0.5 March 18, 2012
  • Modified by gH0sTy
  • Added: Play a sound if a mapvote starts/ends
    "action" "mapvote"
    "param" "start" or "end"
  • Added: TF2: Play a sound if Waiting for Players round starts/ends
    "action" "wait4players"
    "param" "start" or "end"
gH0sTy is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-20-2012 , 15:46   Re: Say Sounds (including Hybrid Edition) (4.0.4)
Reply With Quote #715

Quote:
Originally Posted by gH0sTy View Post
  • Added: Play a sound if a mapvote starts/ends
    "action" "mapvote"
    "param" "start" or "end"
I'm going to note that the mapvote end part only work on the stock Mapchooser (and its clone, BuiltinVotes MapChooser) because the other mapchoosers (MapChooser Extended or Ultimate MapChooser) use different cvars.

MCE implements the OnMapVoteStarted forward, but I'm not sure about UMC.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 03-20-2012 at 15:55.
Powerlord is offline
Reinghord
Junior Member
Join Date: Dec 2009
Location: Odessa, Ukraine
Old 03-26-2012 , 16:33   Re: Say Sounds (including Hybrid Edition) (4.0.5)
Reply With Quote #716

Code:
// ##################################################################################################
// ############################## Saysounds example config ##########################################
// ##################################################################################################
// # Soundfiles have to be placed relative to your game/mod "sound" folder.							#
// # Example: 	cstrike/sound/mysound.mp3	or		dod/sound/myfolder/mysound.mp3					#
// #			"file"	"mysound.mp3"		or		"file"	"myfolder/mysound.mp3"					#
// # If you run a pure server (sv_pure = 1) you should create an extra folder for your sounds		#
// # so you don't have to whitelist your whole "sound" folder.										#
// # Whitelisting is done in the "pure_server_whitelist.txt" file located in the "hl2" folder.		#
// # Example: sound\myfolder\...	allow_from_disk													#
// # Don't forget to change the map after you've added something to your pure_server_whitelist.txt	#
// # For more infos on pure servers visit http://developer.valvesoftware.com/wiki/Pure_Servers		#
// ##################################################################################################

"Sound Combinations"
{
		"STEAM_0:0:24528556" // trigger for specific STEAM ID
	{
		"file"	"admin_plugin/thepower.mp3" // name of sound to play when joining
		"text"	"FEEL THE POWER OF DEMONIC"	// Message to display if this client joins the server
		"admin"	"0"
		"volume" "0.9" 		   // Specify volume for this specific sound
	}
		"STEAM_0:0:27771349" // trigger for specific STEAM ID
	{
		"file"	"admin_plugin/normalek.mp3" // name of sound to play when joining
		"text"	"HEYYEYAAEYAAAEYAEYAA"	// Message to display if this client joins the server
		"admin"	"0"
		"volume" "0.9" 		   // Specify volume for this specific sound
	}
		"STEAM_0:1:24628666" // trigger for specific STEAM ID
	{
		"file"	"admin_plugin/dragonborn_zetusdan.mp3" // name of sound to play when joining
		"text"	"But there is one they fear.. ZETSUDAN!""	// Message to display if this client joins the server
		"admin"	"0"
		"volume" "0.9" 		   // Specify volume for this specific sound
	}
	// #### Say Sounds ####
	"lex"  // Minimum configuration for sounds
	{
		"file"	"admin_plugin/lexskashi.mp3"	// This will set all other options to default values
	}
"miha" {
      "file"  "admin_plugin/miha.mp3"
    }
 "vsehuyna" {
      "file"  "admin_plugin/vsehuyna.mp3"
    }
 "miha" {
      "file"  "admin_plugin/miha.mp3"
    }
 "ktotakye" {
      "file"  "admin_plugin/ktotakye.mp3"
    }
 "lomalsteklo" {
      "file"  "admin_plugin/lomalsteklo.mp3"
    }
 "posnayahuinya" {
      "file"  "admin_plugin/posnayahuinya.mp3"
    }
 "povarjail" {
      "file"  "admin_plugin/povarjail.mp3"
    }
 "razborka" {
      "file"  "admin_plugin/razborka.mp3"
    }
 "smexpovara" {
      "file"  "admin_plugin/smexpovara.mp3"
    }
 "votetoprikol" {
      "file"  "admin_plugin/votetoprikol.mp3"
    }
 "yasnimayu" {
      "file"  "admin_plugin/yasnimayu.mp3"
    }
 "abaldet" {
      "file"  "admin_plugin/abaldet.mp3"
    }
 "bezumie" {
      "file"  "admin_plugin/bezumie.mp3"
    }
 "cornholio" {
      "file"  "admin_plugin/cornholio.wav"
    }
 "dolgo" {
      "file"  "admin_plugin/dolgo.mp3"
    }
 "leftclicker" {
      "file"  "admin_plugin/leftclicker.wav"
    }
 "nevteme" {
      "file"  "admin_plugin/nevteme.mp3"
    }
 "whores" {
      "file"  "admin_plugin/whores.wav"
    }
 "xuyevieshutki" {
      "file"  "admin_plugin/xuyevieshutki.mp3"
    }
Are there any problems with my saysounds.cfg? Because I can't open !soundlist on my server.
P.S. Admin-join sounds are working
Reinghord is offline
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 03-26-2012 , 18:07   Re: Say Sounds (including Hybrid Edition) (4.0.5)
Reply With Quote #717

Quote:
Originally Posted by Reinghord View Post
Code:
// ##################################################################################################
// ############################## Saysounds example config ##########################################
// ##################################################################################################
// # Soundfiles have to be placed relative to your game/mod "sound" folder.                            #
// # Example:     cstrike/sound/mysound.mp3    or        dod/sound/myfolder/mysound.mp3                    #
// #            "file"    "mysound.mp3"        or        "file"    "myfolder/mysound.mp3"                    #
// # If you run a pure server (sv_pure = 1) you should create an extra folder for your sounds        #
// # so you don't have to whitelist your whole "sound" folder.                                        #
// # Whitelisting is done in the "pure_server_whitelist.txt" file located in the "hl2" folder.        #
// # Example: sound\myfolder\...    allow_from_disk                                                    #
// # Don't forget to change the map after you've added something to your pure_server_whitelist.txt    #
// # For more infos on pure servers visit http://developer.valvesoftware.com/wiki/Pure_Servers        #
// ##################################################################################################

"Sound Combinations"
{
        "STEAM_0:0:24528556" // trigger for specific STEAM ID
    {
        "file"    "admin_plugin/thepower.mp3" // name of sound to play when joining
        "text"    "FEEL THE POWER OF DEMONIC"    // Message to display if this client joins the server
        "admin"    "0"
        "volume" "0.9"            // Specify volume for this specific sound
    }
        "STEAM_0:0:27771349" // trigger for specific STEAM ID
    {
        "file"    "admin_plugin/normalek.mp3" // name of sound to play when joining
        "text"    "HEYYEYAAEYAAAEYAEYAA"    // Message to display if this client joins the server
        "admin"    "0"
        "volume" "0.9"            // Specify volume for this specific sound
    }
        "STEAM_0:1:24628666" // trigger for specific STEAM ID
    {
        "file"    "admin_plugin/dragonborn_zetusdan.mp3" // name of sound to play when joining
        "text"    "But there is one they fear.. ZETSUDAN!""    // Message to display if this client joins the server
        "admin"    "0"
        "volume" "0.9"            // Specify volume for this specific sound
    }
    // #### Say Sounds ####
    "lex"  // Minimum configuration for sounds
    {
        "file"    "admin_plugin/lexskashi.mp3"    // This will set all other options to default values
    }
"miha" {
      "file"  "admin_plugin/miha.mp3"
    }
 "vsehuyna" {
      "file"  "admin_plugin/vsehuyna.mp3"
    }
 "miha" {
      "file"  "admin_plugin/miha.mp3"
    }
 "ktotakye" {
      "file"  "admin_plugin/ktotakye.mp3"
    }
 "lomalsteklo" {
      "file"  "admin_plugin/lomalsteklo.mp3"
    }
 "posnayahuinya" {
      "file"  "admin_plugin/posnayahuinya.mp3"
    }
 "povarjail" {
      "file"  "admin_plugin/povarjail.mp3"
    }
 "razborka" {
      "file"  "admin_plugin/razborka.mp3"
    }
 "smexpovara" {
      "file"  "admin_plugin/smexpovara.mp3"
    }
 "votetoprikol" {
      "file"  "admin_plugin/votetoprikol.mp3"
    }
 "yasnimayu" {
      "file"  "admin_plugin/yasnimayu.mp3"
    }
 "abaldet" {
      "file"  "admin_plugin/abaldet.mp3"
    }
 "bezumie" {
      "file"  "admin_plugin/bezumie.mp3"
    }
 "cornholio" {
      "file"  "admin_plugin/cornholio.wav"
    }
 "dolgo" {
      "file"  "admin_plugin/dolgo.mp3"
    }
 "leftclicker" {
      "file"  "admin_plugin/leftclicker.wav"
    }
 "nevteme" {
      "file"  "admin_plugin/nevteme.mp3"
    }
 "whores" {
      "file"  "admin_plugin/whores.wav"
    }
 "xuyevieshutki" {
      "file"  "admin_plugin/xuyevieshutki.mp3"
    }
Are there any problems with my saysounds.cfg? Because I can't open !soundlist on my server.
P.S. Admin-join sounds are working
There is a close tag "}" missing as far as I can see.
__________________
AeroAcrobat is offline
KirbyBoy
Junior Member
Join Date: Jun 2011
Old 03-26-2012 , 21:11   Re: Say Sounds (including Hybrid Edition) (4.0.5)
Reply With Quote #718

Hi, I'm trying to use your plugin to make it so that it plays certain sounds for certain players, though I don't see see what I'm doing wrong, we set the sound to download to sound/misc folder, and iidtc, the config should work fine too.

PHP Code:
// ##################################################################################################
// ############################## Saysounds example config ##########################################
// ##################################################################################################
// # Soundfiles have to be placed relative to your game/mod "sound" folder.                            #
// # Example:     cstrike/sound/mysound.mp3    or        dod/sound/myfolder/mysound.mp3                    #
// #            "file"    "mysound.mp3"        or        "file"    "myfolder/mysound.mp3"                    #
// # If you run a pure server (sv_pure = 1) you should create an extra folder for your sounds        #
// # so you don't have to whitelist your whole "sound" folder.                                        #
// # Whitelisting is done in the "pure_server_whitelist.txt" file located in the "hl2" folder.        #
// # Example: sound\myfolder\...    allow_from_disk                                                    #
// # Don't forget to change the map after you've added something to your pure_server_whitelist.txt    #
// # For more infos on pure servers visit http://developer.valvesoftware.com/wiki/Pure_Servers        #
// ##################################################################################################

"Sound Combinations"
{
    
// #### Join/Exit Sounds ####
    
"JoinSound" // Sound to play when a player Joins the server
    
{
        
"file"    "misc/welcome.wav"
        "admin"    "0"
        "text"    "blablabla"    
// Message to display if a client joins the server
        
"single" "1" // 1 to play sound to single client only, 0 to play to all (default is 1)
        
"volume" "0.5" // Specify volume for this specific sound
    
}
    
"ExitSound"
    
{
        
"file"    "misc/welcome.wav"
        "admin"    "0"
        "etext"    "blablabla"    
// Message to display if a client leaves the server
        
"single" "1" // 1 to play sound to single client only, 0 to play to all (default is 0)
        
"volume" "0.5" // Specify volume for this specific sound
    
}
    


    
// #### Say Sounds ####
    
"doh"  // Minimum configuration for sounds
    
{
        
"file"    "misc/doh.wav"    // This will set all other options to default values
    
}
    
"wazza"  // Word trigger
    
{
        
"file"    "misc/wazza.wav" //"file" is always there, next is the filepath (always starts with "sound/")
        
"admin"    "1"    //1 is admin only, 0 is anyone (defaults is 0)
        
"delay" "5" // will delay the sound by 5 seconds (max delay 60 seconds)
        
"adult" "1" //will announce the sound as ADULT SOUND, hide it from the sounds menu, block the chat output (defaults is 0)
        
"text"    "blablabla"    // Message to display for this sound
        
"download" "1"    //1 to download the sounds, 0 to not download (default is 1)
    
}
    
"lol"  // Word trigger to randomly select 1 of multiple sounds
    
{
        
"file"    "misc/lol1.wav"    // name of the 1st option, can also be "file1"
        
"file2"    "misc/lol2.wav"    // name of the 2nd option
        
"file3"    "misc/lol3.wav"
        "file4"    "misc/lol4.wav"
        "count"    "4"        
// number of sounds (default is 1)
        
"volume" "0.5"         // Specify volume for this specific sound
    
}
    
// #### KARAOKE ####
    
"somesong"  // Word trigger for Karaoke
    
{
        
"file"    "misc/somesong.wav"
        "karaoke" "somesong.cfg" 
// name of config file for karaoke lyrics
    
}
    
// ####FernFerret####
    // ####Action Sounds####
    // New Section showing how to use Action Sounds Extention
    // New Parameters:
    //    - actiononly    If this variable is set to 1, the sound cannot be 
    //                     played by a menu or a client typing
    //    - action        If the action filled in here is performed, the sound will play
    //    - param            The best way to think of param is "Play Sound if [ACTION] with [PARAM]"
    //    *                 Some examples are Flag events**, or weapons***
    //    - prob            The probability of a sound playing, if you want a sound to play 20% of the time
    //    *                 the fill in prob as ".2" or the percentage divided by 100
    //    - playto        Play kill events to clients/teams
    //    *                attacker - plays the sound to the attacker
    //    *                victim - plays the sound to the victim
    //    *                both - plays the sound to the attacker and the victim
    //    *                ateam - plays the sound to the attacker team
    //    *                vteam - plays the sound to the victim team
    //  - Some examples:
    //
    
"rocket" //This example plays a random sound to the victim if he gets killed with a TF2 rocket launcher.
    
{
        
"file"    "saysound/rocket1.mp3"
        "file2"    "saysound/rocket2.mp3"
        "file3"    "saysound/rocket3.mp3"
        "count"    "3"
        "admin"    "1"
        "actiononly"    "1"
        "action"    "kill"
        "param"    "tf_projectile_rocket"
        "playto"    "victim"
    
}
    
"invincible"
    
{
        
"file"    "admin_plugin/invincible.wav"
        "admin"    "1"
        "actiononly" "1"
        "action"    "uber"
        
// Note: If the action is uber, you do not need param
        // Prob is assumed 1 or 100% if nothing is provied
    
}
    
"lightmyfire"
    
{
        
"file"    "admin_plugin/lmf.wav"
        "admin"    "1"
        "actiononly" "1"
        "action"    "kill"
        "param"        "flamethrower"
        "prob"        ".05"
    
}
    
"STEAM_0:0:38757653" // trigger for specific STEAM ID
    
{
        
"file"    "misc/Sonic.mp3" // name of sound to play when joining
        
"exit"    "misc/Snonic.mp3" // name of sound to play when leaving
        
"text"    "Donnie The Faggot Enters"    // Message to display if this client joins the server
        
"etext"    "blablabla"    // Message to display if this client leaves the server
        
"admin"    "0"
        "volume" "0.5"            
// Specify volume for this specific sound
    
}


Also, if you can also help me figure out how to do this for more than one person, that would be great.

Last edited by KirbyBoy; 03-26-2012 at 21:12.
KirbyBoy is offline
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 03-27-2012 , 00:20   Re: Say Sounds (including Hybrid Edition) (4.0.5)
Reply With Quote #719

AFAIK Naris added a filter to the Resource Manager so sounds in certain folders won't be added to the Download List.
One of this folders is the misc folder so dont put your sounds into the misc folder or they won't be downloaded.
You should also remove all sounds you don't use from the saysounds.cfg or connecting clients will try to download them and the connection process will take quite a while.
For other steam id specific connect sounds just add other steam id's
PHP Code:
"STEAM_0:0:xxxxx1" // trigger for specific STEAM ID
    
{
        .
        .
        .
       
    }
"STEAM_0:0:xxxxx2" // trigger for specific STEAM ID
    
{
        .
        .
        .
       
    }
"STEAM_0:0:xxxxx3" // trigger for specific STEAM ID
    
{
        .
        .
        .
       
    } 
gH0sTy is offline
Reinghord
Junior Member
Join Date: Dec 2009
Location: Odessa, Ukraine
Old 03-27-2012 , 04:48   Re: Say Sounds (including Hybrid Edition) (4.0.5)
Reply With Quote #720

Quote:
Originally Posted by AeroAcrobat View Post
There is a close tag "}" missing as far as I can see.
I added this one in the end of config, but it didn't help. THe strangest thing is that I don't have any error in log files.
P.S. Is there any event for the last round of a map?
P.P.S. When admin join the server, sound plays twice, what can be a problem?

Last edited by Reinghord; 03-27-2012 at 07:58.
Reinghord is offline
Reply



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 01:58.


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