AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   Say Sounds (https://forums.alliedmods.net/showthread.php?t=57164)

Hell Phoenix 06-29-2007 13:36

Say Sounds
 
13 Attachment(s)
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!

ferret 06-29-2007 13:39

Re: Say Sounds
 
nice work, glad to be an inspiration :P

FlyingMongoose 06-29-2007 14:40

Re: Say Sounds
 
good work :)

supermj 06-29-2007 21:18

Re: Say Sounds
 
It's failing to compile with the get plugin link.

Hell Phoenix 06-29-2007 21:21

Re: Say Sounds
 
You need to compile it locally since it requires the downloadstable extension. I will try to throw a compiled version up later too.

Rebell 06-30-2007 04:28

Re: Say Sounds
 
this is fun ^^

supermj 07-01-2007 12:40

Re: Say Sounds
 
Ok, can you give me an example of the cfg that has multiple entries.

Hell Phoenix 07-01-2007 17:18

Re: Say Sounds
 
Code:

"Sound Combinations"
{
        "wazza"
        {
                "file"        "sound/misc/wazza.wav"
        }
        "hi"
        {
                "file"        "sound/misc/hi.mp3"
        }
        "hello"
        {
                "file"        "sound/misc/hello.wav"
        }
}


hazard 07-01-2007 17:58

Re: Say Sounds
 
Could you update this to have an option to only let admins use the saysounds? That'd be awesome.

supermj 07-01-2007 18:06

Re: Say Sounds
 
Well, They download now, but no trigger. I have restarteed my server and steam, and still no sounds.


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

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