Raised This Month: $ Target: $400
 0% 

[Any] Random Join/Welcome Sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Plugin ID:
3461
Plugin Version:
1.1.0
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
1 
Plugin Description:
Play a random sound to a client that connects
Old 01-11-2013 , 00:42   [Any] Random Join/Welcome Sound
Reply With Quote #1

Random Join Sound

v. 1.1.0

This plugin was originally for a paid request. Author allowed me to release it publicly, as there was no plugins doing such a thing (wtf, honestly...).

Features :
  • Play a random sound to clients that connect
  • Since it uses this, it is easy to add a sound to play; just add a sound to the folder (defined by cvar 'sm_join_sound') and wait for map change.
  • Allows client to disable the welcome sound via client prefs.

Known bugs :
CVars :
  • randomjoinsoundversion: Gives version -_-'
  • ----------
  • sm_join_sound_enable : Is the plugin enabled ? 0=No, 1=Yes. Def. 1
  • sm_join_sound : The sound folder where to take a sound to play. Def. "sound/joinsounds".
  • sm_join_sound_defaultcookie : Default cookie value. 0=Do not play, 1=Play random sound, 2=Play but stop when joining a playable team

Notes :
--------------

Any suggestions/comments on the code or the plugin are welcomed and appreciated.

Changelog :
  • 1.0.0 Initial release. (11-01-2013)
  • 1.0.1 (Semi-public) failed attempt what was fixed in 1.0.2. (01-07-2013)
  • 1.0.2 Fixed a problem with loading order (no more "FailState"). (semi-public 04-07-2013 / first post 26-10-2013)
  • 1.0.2b Real 1.0.2 <.< (previous was same as 1.0.1 :$). (27-10-2013)
  • 1.1.0 Added client prefs support (disable/enable/enable but stop on join team). (28-10-2013)

Todo list :
  • None at the moment. You're free to suggest things.
Attached Files
File Type: zip soundsSample.zip (405.9 KB, 3512 views)
File Type: sp Get Plugin or Get Source (randomjoinsound.sp - 1918 views - 6.4 KB)
File Type: smx randomjoinsound.smx (7.4 KB, 1974 views)
File Type: txt randomjoinsound.phrases.txt (557 Bytes, 2158 views)
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 10-29-2013 at 21:47. Reason: 296sp/327mx
RedSword is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 01-11-2013 , 02:28   Re: [Any] Random Join/Welcome Sound
Reply With Quote #2

Hi,

i already use this one for cs:s:

https://forums.alliedmods.net/showthread.php?p=1396152

Yours 's usable on CS:GO?
Mirandor is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 01-11-2013 , 02:51   Re: [Any] Random Join/Welcome Sound
Reply With Quote #3

Quote:
Originally Posted by Mirandor View Post
Hi,

i already use this one for cs:s:

https://forums.alliedmods.net/showthread.php?p=1396152

Yours 's usable on CS:GO?
Quote:
Originally Posted by RedSword View Post
Tested under both CSS & CSGO. Should work under all mods.
So yes...

And thanks for the info; didn't know for the "enter" sound (there is already "welcome" and "join" as keywords... -_-)

And with my plugin, you don't need to manually put the filename inside a .txt (the folder is parsed).
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 01-11-2013 at 05:05.
RedSword is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 01-11-2013 , 06:03   Re: [Any] Random Join/Welcome Sound
Reply With Quote #4

OK sorry: i didn't read the notes
Mirandor is offline
Hackmastr
Member
Join Date: Sep 2013
Old 11-14-2013 , 12:43   Re: [Any] Random Join/Welcome Sound
Reply With Quote #5

Quote:
Originally Posted by RedSword View Post
So yes...

And thanks for the info; didn't know for the "enter" sound (there is already "welcome" and "join" as keywords... -_-)

And with my plugin, you don't need to manually put the filename inside a .txt (the folder is parsed).
Doesnt matter, thank You.
TBH, your plugin was easily Indexed by Google o.O

Last edited by Hackmastr; 09-05-2014 at 02:37.
Hackmastr is offline
ltgenkd
AlliedModders Donor
Join Date: Sep 2008
Old 06-21-2015 , 23:47   Re: [Any] Random Join/Welcome Sound
Reply With Quote #6

RedSword, any chance that you can add [INS] Insurgency2 support?
I have this all set up and no join sound plays on client connect. There are no errors in the logs.
I also have the File Management Interface installed.

I have also tried a couple other join sound plugins but no luck.


Thank you.
__________________
ltgenkd is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 06-22-2015 , 03:04   Re: [Any] Random Join/Welcome Sound
Reply With Quote #7

Quote:
Originally Posted by ltgenkd View Post
RedSword, any chance that you can add [INS] Insurgency2 support?
I have this all set up and no join sound plays on client connect. There are no errors in the logs.
I also have the File Management Interface installed.

I have also tried a couple other join sound plugins but no luck.


Thank you.
Hey,

Do you know if, as I client, the sound gets downloaded ? Are there errors in the client console (you mentioned logs, but I guess those are the server ones) ?

Note that it is very possible that the game itself deny us the possibility to play sounds (i.e. as I had problems with L4D). Are you aware of any plugins which can play sounds in Insurgency ? (i.e. can you play random SM sounds ?)

I'll try to give a look in a near future.

Red
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 06-22-2015 at 03:06.
RedSword is offline
Smffy
Senior Member
Join Date: Sep 2012
Old 01-12-2013 , 08:18   Re: [Any] Random Join/Welcome Sound
Reply With Quote #8

Quote:
"You'll need Files Management Interface to get this plugin to work."
Do you 'need' it or do you just need do have something that downloads and precaches the mp3 tracks? I think a lot of people already use 'SM File/Folder Downloader and Precacher' so if you can clarify if all you need is the files downloaded/precached?
Smffy is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 01-12-2013 , 08:36   Re: [Any] Random Join/Welcome Sound
Reply With Quote #9

Quote:
Originally Posted by Smffy View Post
Do you 'need' it or do you just need do have something that downloads and precaches the mp3 tracks? I think a lot of people already use 'SM File/Folder Downloader and Precacher' so if you can clarify if all you need is the files downloaded/precached?
You need it. I'm not parsing the folder at every request; I'm stocking the filepaths in memory, so they can be easily (and quickly) retrieved, hence the need for the 2nd plugin.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 01-12-2013 at 08:36.
RedSword is offline
SammehOsborn
Junior Member
Join Date: Jan 2013
Old 02-02-2013 , 12:15   Re: [Any] Random Join/Welcome Sound
Reply With Quote #10

So, uuhm - I downloaded the File Management Interface but I'm not entirely sure how to set it up properly.

This is what I get in my error log,

L 02/02/2013 - 11:00:13: [SM] Plugin encountered error 25: Call was aborted
L 02/02/2013 - 11:00:13: [SM] Native "SetFailState" reported: Could not find Files Management Interface
L 02/02/2013 - 11:00:13: [SM] Displaying call stack trace for plugin "randomjoinsound.smx":
L 02/02/2013 - 11:00:13: [SM] [0] Line 33, C:\Valve\RedSourceServer\css\cstrike\addons\s ourcemod\scripting\randomjoinsound.sp::OnPlug inStart()

Some assistance maybe? xd

Thanks in advance!

Last edited by SammehOsborn; 02-02-2013 at 13:00.
SammehOsborn 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 04:23.


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