Raised This Month: $248 Target: $400
 62% 

Say Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Hell Phoenix
Senior Member
Join Date: Jan 2005
Plugin ID:
51
Plugin Version:
1.5.5
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    16 
    Plugin Description:
    Adds chat triggers to the game
    Unapprover:
    Reason for Unapproving:
    Complaints about not working. Author inactive for a year.
    Old 06-29-2007 , 13:36   Say Sounds
    Reply With Quote #1

    Say Sounds
    Hell Phoenix
    http://www.charliemaurice.com/plugins

    This plugin is somewhat a port of the classic SankSounds. Basically, it uses a chat trigger then plays a
    sound associated with it. People get a certain "quota" of sounds per map (default is 5). They are warned
    at a certain amount (default 3) that they only have so many left. This plugin also allows you to ban
    people from the sounds, reset sound quotas for everyone or just one person, and allow only admins to use
    certain sounds.

    Thanks To:
    Ferret for his initial sourcemod plugins. I used a few functions from his plugins as a learning tool.
    Teame06 for his help with the string replace function
    Bailopan for the pack stream info

    Versions:
    1.0
    * First Public Release!
    1.1
    * Removed "downloadtable extension" dependency
    * Added Insurgency Mod Support
    1.2
    * Fixed some errors
    * Added admin only triggers
    * Join/Exit sound added
    1.3
    * Made join/exit sounds for admins only
    * Fixed errors on linux
    1.4
    * Fixed sound reset bug (thanks to lambdacore for pointing it out)
    * Added join/exit and wazza sound files to the download
    1.5 September 26, 2007
    * Uses EmitSountToClient instead of play (should allow multiple sounds to play at once)
    - Note that the path for the file changed because of this...remove the sound/ from your
    cfg file...IE. change sound/misc/wazza.wav to misc/wazza.wav
    * Clients using "!soundlist" in chat will get a list of triggers in their console
    * Added a cvar to control how long between each sound to wait and a message to the user
    1.5.5 Oct 9, 2007
    * Fixed small memory leak from not closing handle at the end of each map

    Todo:
    * Multiple sound files for trigger word
    * Optimise keyvalues usage
    * Save user settings

    Cvarlist (default value):
    sm_sound_enable 1 Turns Sounds On/Off
    sm_sound_warn 3 Number of sounds to warn person at
    sm_sound_limit 5 Maximum sounds per person
    sm_join_exit 0 Play sounds when someone joins or exits the game
    sm_time_between_sounds 4.5 Time between each sound trigger, 0.0 to disable checking

    Admin Commands:
    sm_sound_ban <user>
    sm_sound_unban <user>
    sm_sound_reset <all|user>

    User Commands:
    !sounds - when used in chat turns sounds on/off for that client
    !soundlist - when used in chat will print all the trigger words to the console


    Make sure "saysounds.cfg" is in your addons/sourcemod/configs/ directory.
    Sounds go in your mods "sound" directory (such as sound/misc/filename.wav).

    MAKE SURE YOU DOWNLOAD THE NEW CFG FILE! IT HAS THE JOIN AND EXIT SOUND INFO AND THE ADMIN ONLY INFO IN IT!
    YOU NEED TO MAKE SOME CHANGES TO YOUR CFG FILE FOR THE NEW VERSION! YOU NEED TO REMOVE THE "SOUND/" PART. IE CHANGE sound/misc/wazza.wav TO misc/wazza.wav (BUT THE FILE GOES IN THE SAME PLACE). DOWNLOAD THE ZIP AND LOOK AT THE EXAMPLE IF YOU ARE CONFUSED!
    Attached Files
    File Type: sp Get Plugin or Get Source (saysounds.sp - 10270 views - 15.6 KB)
    File Type: rar saysounds.rar (45.7 KB, 13621 views)
    __________________

    Last edited by Hell Phoenix; 10-09-2007 at 10:05.
    Hell Phoenix is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-29-2007 , 13:39   Re: Say Sounds
    Reply With Quote #2

    nice work, glad to be an inspiration
    __________________
    I'm a blast from the past!
    ferret is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 06-29-2007 , 14:40   Re: Say Sounds
    Reply With Quote #3

    good work
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    supermj
    Senior Member
    Join Date: May 2004
    Location: Georgia
    Old 06-29-2007 , 21:18   Re: Say Sounds
    Reply With Quote #4

    It's failing to compile with the get plugin link.
    __________________
    supermj is offline
    Hell Phoenix
    Senior Member
    Join Date: Jan 2005
    Old 06-29-2007 , 21:21   Re: Say Sounds
    Reply With Quote #5

    You need to compile it locally since it requires the downloadstable extension. I will try to throw a compiled version up later too.
    __________________
    Hell Phoenix is offline
    Rebell
    Veteran Member
    Join Date: Nov 2004
    Location: GERMANY
    Old 06-30-2007 , 04:28   Re: Say Sounds
    Reply With Quote #6

    this is fun ^^
    __________________
    Rebell is offline
    supermj
    Senior Member
    Join Date: May 2004
    Location: Georgia
    Old 07-01-2007 , 12:40   Re: Say Sounds
    Reply With Quote #7

    Ok, can you give me an example of the cfg that has multiple entries.
    __________________

    Last edited by supermj; 07-01-2007 at 17:06.
    supermj is offline
    Hell Phoenix
    Senior Member
    Join Date: Jan 2005
    Old 07-01-2007 , 17:18   Re: Say Sounds
    Reply With Quote #8

    Code:
    "Sound Combinations"
    {
    	"wazza"
    	{
    		"file"	"sound/misc/wazza.wav"
    	}
    	"hi"
    	{
    		"file"	"sound/misc/hi.mp3"
    	}
    	"hello"
    	{
    		"file"	"sound/misc/hello.wav"
    	}
    }
    __________________
    Hell Phoenix is offline
    hazard
    Member
    Join Date: Jun 2007
    Old 07-01-2007 , 17:58   Re: Say Sounds
    Reply With Quote #9

    Could you update this to have an option to only let admins use the saysounds? That'd be awesome.
    hazard is offline
    supermj
    Senior Member
    Join Date: May 2004
    Location: Georgia
    Old 07-01-2007 , 18:06   Re: Say Sounds
    Reply With Quote #10

    Well, They download now, but no trigger. I have restarteed my server and steam, and still no sounds.
    __________________
    supermj 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 05:54.


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