AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1 & L4D2] Explosion Announcer [v1.0.7 | 04-March-2022] (https://forums.alliedmods.net/showthread.php?t=328006)

Marttt 10-20-2020 18:06

[L4D1 & L4D2] Explosion Announcer [v1.0.7 | 04-March-2022]
 
27 Attachment(s)
Description

This plugin outputs to the chat every time someone explodes:
  • Gascan
  • Propane Canister
  • Oxygen Tank
  • Fireworks Crate (L4D2 only)
  • Fuel Barrel
  • Barricade with Gascans
  • Gas Pump
  • Oil Drum Explosive (can be found on GoldenEye 4 Dead custom map)

Features
  • Output the name of who exploded.
  • Allow selecting which props should output to the chat.
  • Allow selecting which teams should see the message.

Preview

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

Chat message examples
  • Mart has exploded a gascan!
  • Mart has exploded a propane canister!
  • Mart has exploded an oxygen tank!
  • Mart has exploded a fireworks crate!
  • Mart has exploded a fuel barrel!
  • Mart has exploded a barricade with gascans!
  • Mart has exploded a gas pump!
  • Mart has exploded an oil drum!

Cvars

A configuration file named "l4d_explosion_announcer.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

PHP Code:

// Output to the chat every time someone explodes (last hit) a barricade with gascans.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_barricadegascan "1"

// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_enable "1"

// Output to the chat every time someone explodes (last hit) a fireworks crate.
// L4D2 only.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_fireworkscrate "1"

// Output to the chat every time someone explodes (last hit) a fuel barrel.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_fuelbarrel "1"

// Output to the chat every time someone explodes (last hit) a gascan.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_gascan "1"

// Output to the chat every time someone explodes (last hit) a gas pump.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_gaspump "1"

// Output to the chat every time someone explodes (last hit) a oil drum explosive (custom).
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_oildrumexplosive "1"

// Output to the chat every time someone explodes (last hit) a oxygen tank.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_oxygentank "1"

// Output to the chat every time someone explodes (last hit) a propane canister.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_propanecanister "1"

// Should the message be transmitted to those who exploded it.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_self "1"

// Delay in seconds to output to the chat the message from the same client again.
// 0 = OFF.
// -
// Default: "3.0"
// Minimum: "0.000000"
l4d_explosion_announcer_spam_protection "3.0"

// Whether the plugin should apply chat spam protection by entity type.
// Example: "gascans" and "propane canisters" are of different types.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_spam_type_check "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_explosion_announcer_team "1" 

Admin Commands
  • sm_print_cvars_l4d_explosion_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
  • chi - Simplified Chinese
  • zho - Traditional Chinese

Known issues
  • When an explosion generates a lot of inferno entities (fire spots), sometimes the plugin can't detect who exploded.

Notes
  • This plugin precache some models.
  • The fireworks crate message only outputs to the L4D2 game since L4D1 doesn't have a fireworks crate.
  • The gascan health is checked before outputting the message, to prevent false-positives. (like when the gascan fire is extinguished but is filled somewhere)
  • Fuel barrel can be found on Sacrifice, 1st and 2nd maps.
  • Barricade with gascans can be found on Dead Air, 3rd map.
  • Gas pump can be found on No Mercy, 3rd map.
  • Oil drum explosive can be found on GoldenEye 4 Dead custom map.

To Do
  • Add scavenge specific message.
  • Add instructor hints markers to the exploders. (L4D2 only).
  • Add messages related to specific events. (Cold Stream - Pallet Barrel Event / Crash Course - Howitzer Event)

Thank you!

Related Plugins

Post Reply
  • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

Installation
  • Put the "l4d_explosion_announcer.phrases.txt" file in your "\addons\sourcemod\translations\" folder.
  • Put the "l4d_explosion_announcer.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.

KRUTIK 10-21-2020 04:18

Re: [L4D1 & L4D2] Explosion Announcer [v1.0.0 | 20-October-2020]
 
sourcemod\scripting\l4d_explosion_announcer.s p(636) : warning 209: function "GetClientTeamFlag" should return a value.
compiler 1.9

Psyk0tik 10-21-2020 05:16

Re: [L4D1 & L4D2] Explosion Announcer [v1.0.0 | 20-October-2020]
 
Quote:

Originally Posted by KRUTIK (Post 2722074)
sourcemod\scripting\l4d_explosion_announcer.s p(636) : warning 209: function "GetClientTeamFlag" should return a value.
compiler 1.9

Use 1.10 compiler then. The newest stable branch is 1.10 anyway, so there's really no reason to still be using 1.9 anymore unless your server is running old plugins. 1.10 no longer needs a return value at the end of a function's code block when using a switch statement inside to determine the return value.

viaxiamu 10-21-2020 10:11

Re: [L4D1 & L4D2] Explosion Announcer [v1.0.0 | 20-October-2020]
 
Quote:

Originally Posted by HarryPotter (Post 2722062)
wow, nice,
now players know who destroyed :D

here is chinese
zho + chi

"chi"... 一個 should be change to 一个

Marttt
Quote:

Current Translations
en - English
es - Spanish
pt - Brazilian Portuguese
chi - Traditional Chinese
zho - Simplified Chinese
Actually,
chi = Simplified Chinese
zho = Traditional Chinese

KRUTIK 10-21-2020 13:38

Re: [L4D1 & L4D2] Explosion Announcer [v1.0.1 | 21-October-2020]
 
my players do not see the message who blew it up, only the admin sees.

Is that how it should be?

KRUTIK 10-21-2020 15:51

Re: [L4D1 & L4D2] Explosion Announcer [v1.0.2 | 21-October-2020]
 
1 Attachment(s)
added Russian translation

KRUTIK 10-22-2020 05:03

Re: [L4D1 & L4D2] Explosion Announcer [v1.0.2 | 21-October-2020]
 
I checked it on my servers, no errors, it works well, thanks for the plugin.

Angerfist2188 10-22-2020 11:19

Re: [L4D1 & L4D2] Explosion Announcer [v1.0.2 | 21-October-2020]
 
Quote:

Originally Posted by KRUTIK (Post 2722120)
added Russian translation

"ru" "{orange}{1} {lightgreen}взорвал(а) {olive}ящик с феерверком{lightgreen}!"

*фейерверком

Shao 10-31-2020 00:18

Re: [L4D1 & L4D2] Explosion Announcer [v1.0.2 | 21-October-2020]
 
You have the wrong plugin uploaded.

KasperH 11-18-2020 06:41

Re: [L4D1 & L4D2] Explosion Announcer [v1.0.2 | 21-October-2020]
 
1 Attachment(s)
Added Hungarian. :bee:


All times are GMT -4. The time now is 14:09.

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