Quote:
Originally Posted by FernFerret
On that note, gh0sty, are saysounds disabled by default? I just started a new server up, loaded the latest version, and had to type !sounds before they'd play for me.
--FF
|
Well this happens if you load/reload the plug-in while you are connected to the server. The OP version currently reads and sets the sound settings only once if a client connects (OnClientPostAdminCheck).
It's fixed in this 'beta' version.
Quote:
Originally Posted by grepplz
Hey ghosty,
I've sent you a PM with some modified code. Basically added round end hook/trigger for cstrike source which works great - only plays first sound in my list though. Wanting to get it working with random selection of multiple sounds from a list like the say sounds.
Is it possible?
|
Yes, try this version.
------------------------------------------------------------------------
So here's a version for testing.
Code:
* Added Cookie Menu Support (!settings); Thx @ Miraculix
* Added round_end event for CSS; Thx @ grepplz
* Added possibility to play event sounds to: attacker, victim, both, ateam, vteam
* Support for random event sounds
* Fixed clients sound settings
You can now play f.e. kill events to clients/teams with a new "playto" key.
Values for the "playto" key are:
Code:
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
This example plays a random sound to the victim if he gets killed with a TF2 rocket launcher.
Code:
"rocket"
{
"file" "misc/saysound/rocket1.mp3"
"file2" "misc/saysound/rocket2.mp3"
"file3" "misc/saysound/rocket3.mp3"
"count" "3"
"admin" "1"
"actiononly" "1"
"action" "kill"
"param" "tf_projectile_rocket"
"playto" "victim"
}
It will work for the following events:
- kill
suicide (victim & vteam only)
hit_by_train (TF2: victim & vteam only)
drowned (TF2: victim & vteam only)
fall (TF2: victim & vteam only)
- UberCharge (TF2)
- Build (TF2)