AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1 & L4D2] Throwable Announcer [v1.0.8 | 05-September-2021] (https://forums.alliedmods.net/showthread.php?t=327613)

Marttt 09-29-2020 13:19

[L4D1 & L4D2] Throwable Announcer [v1.0.8 | 05-September-2021]
 
27 Attachment(s)
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

https://i.imgur.com/Fj8rvQW.png

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

Spoiler


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.

KasperH 09-29-2020 13:56

Re: [L4D1 & L4D2] Throwable Announcer
 
1 Attachment(s)
Added Hungarian. :bee:

Kai0205 09-30-2020 09:02

Re: [L4D1 & L4D2] Throwable Announcer [v1.0.3 | 30-September-2020]
 
Thanks, I really need this plugin: D

strikeraot 11-20-2020 01:42

Re: [L4D1 & L4D2] Throwable Announcer [v1.0.5 | 16-October-2020]
 
simple but useful

Zheldorg 04-10-2021 09:10

Re: [L4D1 & L4D2] Throwable Announcer [v1.0.6 | 06-March-2021]
 
1 Attachment(s)
Russian language

yabi 09-04-2021 08:17

Re: [L4D1 & L4D2] Throwable Announcer [v1.0.7 | 11-April-2021]
 
請問有繁體字嗎��

Need to increase, traditional characters

HarryPotter 09-04-2021 10:17

Re: [L4D1 & L4D2] Throwable Announcer [v1.0.7 | 11-April-2021]
 
Quote:

Originally Posted by yabi (Post 2756925)
請問有繁體字嗎******************

Need to increase, traditional characters

可以自己翻譯
You can translate by yourself

in2002 09-04-2021 10:35

Re: [L4D1 & L4D2] Throwable Announcer [v1.0.7 | 11-April-2021]
 
1 Attachment(s)
Added Traditional Chinese (Taiwan)

yabi 09-08-2021 21:02

Re: [L4D1 & L4D2] Throwable Announcer [v1.0.7 | 11-April-2021]
 
Quote:

Originally Posted by in2002 (Post 2756931)
Added Traditional Chinese (Taiwan)


Intimate 2002 Thank you very much


All times are GMT -4. The time now is 05:32.

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