Raised This Month: $ Target: $400
 0% 

[L4D1 & L4D2] Explosion Announcer [v1.0.7 | 04-March-2022]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7345
Plugin Version:
1.0.7
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    545 
    Plugin Description:
    Outputs to the chat who exploded some props
    Old 10-20-2020 , 18:06   [L4D1 & L4D2] Explosion Announcer [v1.0.7 | 04-March-2022]
    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 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.
    Attached Files
    File Type: txt l4d_explosion_announcer.phrases.txt (6.2 KB, 598 views)
    File Type: sp Get Plugin or Get Source (l4d_explosion_announcer.sp - 773 views - 33.2 KB)
    __________________

    Last edited by Marttt; 01-25-2023 at 11:55.
    Marttt is offline
     



    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 21:45.


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