View Single Post
Author Message
jouva
Senior Member
Join Date: Jan 2010
Old 11-09-2010 , 19:59   [TF2] Noise Maker Player
Reply With Quote #1

Noise Maker Player
Version 2.3.1

Description
Just because the noise makers aren't available for purchase anymore, it doesn't mean you can't enjoy the noise makers still. Simple to use, easy to annoy!

Use the sm_noisemaker command to pull up a menu and choose which type of sound pack you wish to play. All sound packs have a set of different sounds that will randomly be chosen to play.

Other commands:
  • sm_noisemaker_halloween for just sounds from the Scream Fortress update
  • sm_noisemaker_samurai for just sounds from the Shogun Pack
  • sm_noisemaker_japan for just sounds from the Japan Charity Bundle
  • sm_noisemaker_fireworks for just sounds from the Summer Camp Sale fireworks noise maker (accepts no parameters)
  • sm_noisemaker_birthday for just sounds from the TF Birthday noise maker (accepts no parameters)
  • sm_noisemaker_vuvuzela for just sounds from the Vuvuzela noise maker (accepts no parameters)
  • sm_noisemaker_winter for just sounds from the Winter Holiday noise maker (accepts no parameters)
Please note: If you are updating from a previous version and are having issues, please change the map before reporting any bugs. An update usually only happens when new noise makers have been released. As such, translation files will have changed and SourceMod will not reload them until the server's map has been changed.

sm_noisemaker and other commands (except where noted above) can optionally accept one parameter. 0 will play a random noise maker. Any other number plays the respective noise maker as listed in the command's menu.

Note: This IS using content Valve made with an intent to earn profit from. However, the items are no longer available in the store, or have been given out for free and should hopefully be ok by Valve. If a Valve employee does show concern over using this content, I will immediately discontinue this plugin and urge all server owners to uninstall it thereafter. I will also urge owners to remove (or disable, when the option is put in) the plugin if they continue to sell the items.

Installation
Extract the .zip file into your sourcemod directory. For updates, unload and reload the plugin. Any updates including new language files will be marked as such. Any updates w/o language files will only need a new .sp/.smx file.

Cvars

  • sm_noisemaker_version - Pretty obvious. Don't touch. :P
  • sm_noisemaker_delay - Delay in seconds between uses (Default: 5)
  • sm_noisemaker_nodelayflag - Anyone with flags specified in this cvar are immune to the above delay (Default: "")
Updates
  • Version 2.3.1 (2013-03-06)
    • Fixed bug causing array out of bounds when using sm_noisemaker 16 or 17
  • Version 2.3.0 (2011-12-23)
    • Added Winter Holiday noise maker
    • Added French translations
  • Version 2.2.0 (2011-10-21)
    • Added Vuvuzela noise maker
    • Fixed long standing bug where players were not properly told they need to wait before using the commands again
  • Version 2.1.1 (2011-08-29)
    • Included proper particle effect for TF Birthday noise maker
    • Changed randomization code to make choice of any noise from any noise maker much more random. Was choosing random pack #1-5 (e.g, Halloween, Samurai) before choosing sound. Now it chooses random sound #1-15 (e.g, Black cat, Birthday, Gong)
  • Version 2.1.0 (2011-08-24)
    • Added Fireworks and TF Birthday noise makers
    • Fixed a few translations in Spanish translation file
  • Version 2.0.0 (2011-04-26)
    • Reverted back to menu from panel due to larger amount of noise maker items
    • Added Shogun and Japan Charity noise makers
    • Fixed Spanish translation file
    • Added individual commands for each noisemaker pack (sm_noisemaker_halloween, sm_noisemaker_samurai, sm_noisemaker_japan)
  • Version 1.2.0 (2010-11-18)
    • Changed menu to panel. No more exit, but now no more "Next/Prev" either
    • sm_noisemaker now accepts numbers (0-8) as a parameter. 0 will play a random noise maker. 1-8 plays the respective noise maker as listed in the menu
    • sm_noisemaker now has "Random" as a choice
    • No longer precaches sounds in OnPluginLoad()
    • Multilingual support (en and es included in this release)
  • Version 1.1.1 (2010-11-10)
    • Plugin now precaches sounds on plugin load and map load
  • Version 1.1.0 (2010-11-10)
    • Some minor code rearranging
    • Plugin now precaches sounds only on plugin load instead of every time
    • Players now have the "Halloween Note" particle effect attached when using the noise maker. Cloaked spies will not display it
    • Added cool down time between uses. Defaults to 5 seconds. Root flag "z" is always immune
    • Stabby now has 3 sounds based on pitch
  • Version 1.0.0 (2010-11-09)
    • Initial release
Special Thanks
Thanks to EnigmatiK and Jindo for their plugins (Melee Dare and False Messages) which I used to make a lot of this code. Also thanks to DarthNinja for contributing code for sm_noisemaker to accept parameters.
Attached Files
File Type: zip noisemaker-2.3.1.zip (16.9 KB, 1565 views)
File Type: sp Get Plugin or Get Source (noisemaker.sp - 1991 views - 20.1 KB)

Last edited by jouva; 03-06-2013 at 18:28.
jouva is offline