Raised This Month: $ Target: $400
 0% 

[L4D1 & L4D2] Throwable Announcer [v1.0.8 | 05-September-2021]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7309
Plugin Version:
1.0.8
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    430 
    Plugin Description:
    Outputs to the chat who threw a throwable
    Old 09-29-2020 , 13:19   [L4D1 & L4D2] Throwable Announcer [v1.0.8 | 05-September-2021]
    Reply With Quote #1

    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

    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.
    Attached Files
    File Type: txt l4d_throwable_announcer.phrases.txt (2.4 KB, 653 views)
    File Type: sp Get Plugin or Get Source (l4d_throwable_announcer.sp - 704 views - 21.2 KB)
    __________________

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


    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 05:32.


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