Raised This Month: $49 Target: $400
 12% 

[L4D1 & L4D2] Explosion Announcer [v1.0.6 | 26-February-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7345
Plugin Version:
1.0.6
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    46 
    Plugin Description:
    Outputs to the chat who exploded some props
    Old 10-20-2020 , 19:06   [L4D1 & L4D2] Explosion Announcer [v1.0.6 | 26-February-2021]
    Reply With Quote #1

    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



    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 entities.
    • 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.
    Attached Files
    File Type: txt l4d_explosion_announcer.phrases.txt (7.0 KB, 226 views)
    File Type: sp Get Plugin or Get Source (l4d_explosion_announcer.sp - 37 views - 36.0 KB)
    __________________

    Last edited by Marttt; 12-18-2021 at 11:39.
    Marttt is offline
    KRUTIK
    Senior Member
    Join Date: Feb 2019
    Location: Мос
    Old 10-21-2020 , 05:18   Re: [L4D1 & L4D2] Explosion Announcer [v1.0.0 | 20-October-2020]
    Reply With Quote #2

    sourcemod\scripting\l4d_explosion_announcer.s p(636) : warning 209: function "GetClientTeamFlag" should return a value.
    compiler 1.9
    KRUTIK is offline
    Psyk0tik
    AlliedModders Donor
    Join Date: May 2012
    Location: Homeless
    Old 10-21-2020 , 06:16   Re: [L4D1 & L4D2] Explosion Announcer [v1.0.0 | 20-October-2020]
    Reply With Quote #3

    Quote:
    Originally Posted by KRUTIK View Post
    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.
    __________________
    AFK like JFK
    --
    Donate to Motivate
    --
    Get latest L4D/L4D2 gamedata signatures here.
    --
    PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM
    Psyk0tik is offline
    viaxiamu
    New Member
    Join Date: Jun 2016
    Old 10-21-2020 , 11:11   Re: [L4D1 & L4D2] Explosion Announcer [v1.0.0 | 20-October-2020]
    Reply With Quote #4

    Quote:
    Originally Posted by HarryPotter View Post
    wow, nice,
    now players know who destroyed

    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
    viaxiamu is offline
    KRUTIK
    Senior Member
    Join Date: Feb 2019
    Location: Мос
    Old 10-21-2020 , 14:38   Re: [L4D1 & L4D2] Explosion Announcer [v1.0.1 | 21-October-2020]
    Reply With Quote #5

    my players do not see the message who blew it up, only the admin sees.

    Is that how it should be?

    Last edited by KRUTIK; 10-21-2020 at 14:39.
    KRUTIK is offline
    KRUTIK
    Senior Member
    Join Date: Feb 2019
    Location: Мос
    Old 10-21-2020 , 16:51   Re: [L4D1 & L4D2] Explosion Announcer [v1.0.2 | 21-October-2020]
    Reply With Quote #6

    added Russian translation
    Attached Files
    File Type: txt l4d_explosion_announcer.phrases.txt (3.5 KB, 54 views)
    KRUTIK is offline
    KRUTIK
    Senior Member
    Join Date: Feb 2019
    Location: Мос
    Old 10-22-2020 , 06:03   Re: [L4D1 & L4D2] Explosion Announcer [v1.0.2 | 21-October-2020]
    Reply With Quote #7

    I checked it on my servers, no errors, it works well, thanks for the plugin.
    KRUTIK is offline
    Angerfist2188
    New Member
    Join Date: Jun 2020
    Old 10-22-2020 , 12:19   Re: [L4D1 & L4D2] Explosion Announcer [v1.0.2 | 21-October-2020]
    Reply With Quote #8

    Quote:
    Originally Posted by KRUTIK View Post
    added Russian translation
    "ru" "{orange}{1} {lightgreen}взорвал(а) {olive}ящик с феерверком{lightgreen}!"

    *фейерверком
    Angerfist2188 is offline
    Shao
    Senior Member
    Join Date: Jan 2015
    Old 10-31-2020 , 01:18   Re: [L4D1 & L4D2] Explosion Announcer [v1.0.2 | 21-October-2020]
    Reply With Quote #9

    You have the wrong plugin uploaded.
    Shao is offline
    KasperH
    Senior Member
    Join Date: Apr 2016
    Location: Hungary
    Old 11-18-2020 , 07:41   Re: [L4D1 & L4D2] Explosion Announcer [v1.0.2 | 21-October-2020]
    Reply With Quote #10

    Added Hungarian.
    Attached Files
    File Type: txt l4d_explosion_announcer.phrases.txt (5.5 KB, 42 views)
    __________________

    "I've Got You In My Sights!"
    KasperH is offline
    Reply


    Thread Tools
    Display Modes

    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 17:34.


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