Hell Phoenix, you mentioned:
Quote:
Todo:
* Multiple sound files for trigger word
* Optimise keyvalues usage
* Save user settings
|
That reminds me, I modded your plugin since v1.3 to our needs. Now I just have modded your plugin v1.5 for our needs, too and maybe it helps you for your upcoming features, because some features I modded are these your planned to do.
Now I introduce the extra features that comes up with my mod.
- Multiple sound files for trigger word. 1 sound file will be played randomly if a trigger has more than 1 sound file.
- new CVAR sm_sound_disablelimit to disable sound limit. We don't need sound trigger to be limited by player. Just the anti Spam thing ist just fine.
- Admins can trigger sound without spamprotections. So admin can spam the sounds
- to enable force download of a sound it has to be specified in the saysounds config file. ("mustdownload" "1")
- sound triggers are triggered in a sentence
so you have to be careful about the config file
Code:
"muhaha"
{
"file" "spackenz/EVIL-LAF.wav"
"admin" "0"
}
"haha"
{
"file" "spackenz/haahaa21.mp3"
"file_2" "spackenz/haahaa22.mp3"
"file_3" "spackenz/haahaa23.mp3"
"file_4" "spackenz/haahaa3.mp3"
"admin" "0"
"count" "4"
}
"bad"
{
"file" "spackenz/killingisbadong.wav"
"admin" "0"
"mustdownload" "1"
}
count means the amount of files linked to the chat trigger
haha. Chat trigger
muhaha must be placed in the config file before
haha because of if not, the plugin will find
haha first, because of haha contains in muhaha. for sounds that should be forced download automatical on connection
mustdownload has to be specified and set to
1.
All thinks I modded are specified with
// MOD BY LAMDACORE and the changed code
for entire blogs there are a begin comment:
// BEGIN MOD BY LAMDACORE and a end comment:
// END MOD BY LAMDACORE for better reading the changes.
Maybe you could add some or all features in your original plugin.
Here is the plugin for all that want to have this features, too.
EDIT: Just figured out I had a bug in the precache sound .. should now work.