Description
This plugin outputs to the chat every time someone throws a throwable:
- Molotov
- Pipe Bomb
- Vomit Jar
There are some plugins in the forum that already does that for the molotov, because of the
molotov_thrown event,
But since we don't have specific events for pipe bomb or vomit jar, some people requested me to the same for both, mostly for the vomit jar because of the
[L4D2] Bile the World plugin.
Features- Output the name of who threw a throwable to the chat.
- Allow selecting which throwables should output to the chat.
- Allow selecting which teams should see the message.
Preview
Chat message examples- Mart has thrown a molotov!
- Mart has thrown a pipe bomb!
- Mart has thrown a vomit jar!
Cvars
A configuration file named "
l4d_throwable_announcer.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_throwable_announcer_enable "1"
// How many seconds should the plugin wait to detect if it was a fake throw.
// 0 = OFF, 1 = ON.
// -
// Default: "0.3"
// Minimum: "0.000000"
l4d_throwable_announcer_fake_throw "0.3"
// Output to the chat every time someone throws a molotov.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_throwable_announcer_molotov "1"
// Output to the chat every time someone throws a pipe bomb.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_throwable_announcer_pipebomb "1"
// Should the message be transmitted to those who throw it.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_throwable_announcer_self "1"
// Which teams should the message be transmitted to.
// 0 = NONE, 1 = SURVIVOR, 2 = INFECTED, 4 = SPECTATOR, 8 = HOLDOUT.
// Add numbers greater than 0 for multiple options.
// Example: "3", enables for SURVIVOR and INFECTED.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_throwable_announcer_team "1"
// Output to the chat every time someone throws a vomit jar.
// L4D2 only.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_throwable_announcer_vomitjar "1"
Admin Commands
- sm_print_cvars_l4d_throwable_announcer => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Current Translations
- en - English
- es - Spanish
- hu - Hungarian
- pt - Brazilian Portuguese
- pt_p - Portuguese
- ru - Russian
- zho - Traditional Chinese
Notes
- The vomit jar message only outputs to the L4D2 game, since L4D1 don't have vomit jars.
To Do
- Add instructor hints markers to the throwers. (L4D2 only)
Thank you!
- znation - for the request.
- emsit - for the ThrowingAntiSpam plugin, which was some base for this one.
- KadabraZz - for reporting how-to fake announces.
- KasperH - for the Hungarian (hu) translation.
- Zheldorg - for the Russian (ru) translation.
- in2002 - for the Traditional Chinese (zho) translation.
Related Plugins
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Installation
- Put the "l4d_throwable_announcer.phrases.txt" file in your "\addons\sourcemod\translations\" folder.
- Put the "l4d_throwable_announcer.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.