Raised This Month: $68 Target: $400
 17% 

[L4D & L4D2] Car Alarm Vomit [v1.0.7 | 08-June-2019]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Senior Member
Join Date: Jan 2019
Plugin ID:
6523
Plugin Version:
1.0.7
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Vomits on the player who triggers a car alarm.
    Old 04-14-2019 , 18:06   [L4D & L4D2] Car Alarm Vomit [v1.0.7 | 08-June-2019]
    Reply With Quote #1

    About

    I made this plugin due to a request from a friend as a way to punish players that trigger a car alarm and get into the safe room.
    This usually happens on No Mercy maps (chapter 1 and 2), since the car alarms are near the safe room.

    Description

    This plugin will punish players who trigger a car alarm through vomit on them, making the way to the safe room more difficult for the activator.

    Preview



    Cvars

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

    PHP Code:
    // Alternative display mode for the chat, in case the client has the chat HUD hidden.
    // Known values: 0 = OFF, 2 = HINT, 4 = CENTER, 8 = CONSOLE, 16 = INSTRUCTOR.
    // Add numbers greater than 0 for multiple options.
    // -
    // Default: "16"
    // Minimum: "0.000000"
    // Maximum: "31.000000"
    l4d_car_alarm_vomit_altdisplay_hiddenchathud "16"

    // Alternative display mode for the hint, in case the client has the hint HUD hidden.
    // Known values: 0 = OFF, 1 = CHAT, 4 = CENTER, 8 = CONSOLE, 16 = INSTRUCTOR.
    // Add numbers greater than 0 for multiple options.
    // -
    // Default: "4"
    // Minimum: "0.000000"
    // Maximum: "29.000000"
    l4d_car_alarm_vomit_altdisplay_hiddenhinthud "4"

    // Alternative display mode for the instructor hint, in case the client has it disabled.
    // Known values: 0 = OFF, 1 = CHAT, 2 = HINT, 4 = CENTER, 8 = CONSOLE.
    // Add numbers greater than 0 for multiple options.
    // -
    // Default: "2"
    // Minimum: "0.000000"
    // Maximum: "31.000000"
    l4d_car_alarm_vomit_altdisplay_instructorhintdisabled "2"

    // Enables/Disables the plugin behavior on Survivor bots. 0 = OFF, 1 = ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_car_alarm_vomit_bots "1"

    // Which kind of players should the message be applied to.
    // Known values: 0 = NONE, 1 = ACTIVATOR, 2 = SURVIVOR, 4 = INFECTED, 8 = SPECTATOR.
    // Add numbers greater than 0 for multiple options.
    // -
    // Default: "3"
    // Minimum: "0.000000"
    // Maximum: "15.000000"
    l4d_car_alarm_vomit_displayto "3"

    // Enables/Disables the plugin. 0 = Plugin OFF, 1 = Plugin ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_car_alarm_vomit_enabled "1"

    // Players with these flags are immune to the plugin behavior. Empty = none.
    // Known values at "\addons\sourcemod\configs\admin_levels.cfg".
    // Example: "az", will apply immunity to players with "a" (reservation) or "z" (root) flag.
    // -
    // Default: ""
    l4d_car_alarm_vomit_flags ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). Empty = none.
    // Known values: coop,realism,versus,survival,scavenge,teamversus,teamscavenge,
    // mutation[1-20],community[1-6],gunbrain,l4d1coop,l4d1vs,holdout,dash,shootzones.
    // -
    // Default: ""
    l4d_car_alarm_vomit_gamemodes_off ""

    // Turn on the plugin in these game modes, separate by commas (no spaces). Empty = all.
    // Known values: coop,realism,versus,survival,scavenge,teamversus,teamscavenge,
    // mutation[1-20],community[1-6],gunbrain,l4d1coop,l4d1vs,holdout,dash,shootzones.
    // -
    // Default: ""
    l4d_car_alarm_vomit_gamemodes_on ""

    // Turn on the plugin in these game modes.
    // Known values: 0 = all, 1 = coop, 2 = survival, 4 = versus, 8 = scavenge.
    // Add numbers greater than 0 for multiple options.
    // Example: "3", enables for "coop" (1) and "survival" (2).
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "15.000000"
    l4d_car_alarm_vomit_gamemodes_toggle "0"

    // Displays a message to the client when starts a car alarm.
    // Known values: 0 = OFF, 1 = CHAT, 2 = HINT, 4 = CENTER, 8 = CONSOLE, 16 = INSTRUCTOR.
    // Add numbers greater than 0 for multiple options.
    // -
    // Default: "17"
    // Minimum: "0.000000"
    // Maximum: "31.000000"
    l4d_car_alarm_vomit_msgdisplay "17"

    // Adds the plugin tag to the displayed messages.
    // Known values: 0 = OFF, 1 = CHAT, 2 = HINT, 4 = CENTER, 8 = CONSOLE, 16 = INSTRUCTOR.
    // Add numbers greater than 0 for multiple options.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "31.000000"
    l4d_car_alarm_vomit_tagdisplay "0" 
    Admin Commands

    PHP Code:
    sm_l4d_car_alarm_vomit_print_cvars // Prints the plugin related cvars and their respective values to the console. (needs "z" flag). 
    Change Log

    Spoiler


    Current Translations
    • en - English
    • chi - Simplified Chinese
    • es - Spanish
    • hu - Hungarian
    • jp - Japanese
    • pt - Brazilian Portuguese
    • ru - Russian
    • zho - Traditional Chinese

    Notes
    • CAV stands for Car Alarm Vomit.
    • Bots don't trigger the car alarm by default, but I coded it in case someone releases a plugin that allows this behavior.
    • Instructor Hints do not display when the client is dead.
    • There is no INSTRUCTOR value for L4D1 on cvars, because Instructor Hints entity does not exist on L4D1.
    • L4D and L4D2 uses different methods to detect the car alarm activator (since L4D does not have the triggered_car_alarm event).

    To Do
    • Add Boomer particles to the victim.
    • Add Instructor Hint on the shotted car and to the activator.
    • Create a configuration to customize the instructor hint.

    Thank you!

    Related Plugins

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

    Installation
    • Put the "l4d_car_alarm_vomit.txt" file in your "\addons\sourcemod\gamedata\" folder.
    • Put the "l4d_car_alarm_vomit_phrases.txt" file in your "\addons\sourcemod\translations\" folder.
    • Put the "l4d_car_alarm_vomit.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: txt l4d_car_alarm_vomit.txt (548 Bytes, 224 views)
    File Type: txt l4d_car_alarm_vomit.phrases.txt (4.4 KB, 91 views)
    File Type: sp Get Plugin or Get Source (l4d_car_alarm_vomit.sp - 271 views - 42.1 KB)
    __________________

    Last edited by Marttt; 06-08-2019 at 10:13. Reason: v1.0.7
    Marttt is offline
    ReCreator
    Member
    Join Date: Nov 2017
    Location: Ukraine,Kyiv
    Old 04-15-2019 , 06:37   Re: [L4D/L4D2] Car Alarm Vomit [v1.0.0 | 14-April-2019]
    Reply With Quote #2

    Added Russian Translation
    Attached Files
    File Type: txt l4d_car_alarm_vomit.phrases.txt (3.1 KB, 108 views)
    __________________
    Sorry for my pure English...
    ReCreator is offline
    KasperH
    Member
    Join Date: Apr 2016
    Location: Hungary
    Old 04-15-2019 , 09:43   Re: [L4D/L4D2] Car Alarm Vomit [v1.0.0 | 14-April-2019]
    Reply With Quote #3

    Added Hungarian
    Attached Files
    File Type: txt l4d_car_alarm_vomit.phrases.txt (3.0 KB, 129 views)
    __________________

    "I've Got You In My Sights!"
    KasperH is offline
    ReCreator
    Member
    Join Date: Nov 2017
    Location: Ukraine,Kyiv
    Old 04-15-2019 , 11:20   Re: [L4D/L4D2] Car Alarm Vomit [v1.0.0 | 14-April-2019]
    Reply With Quote #4

    Russian+Hungarian
    Attached Files
    File Type: txt l4d_car_alarm_vomit.phrases.txt (3.4 KB, 99 views)
    __________________
    Sorry for my pure English...
    ReCreator is offline
    KasperH
    Member
    Join Date: Apr 2016
    Location: Hungary
    Old 04-15-2019 , 12:06   Re: [L4D/L4D2] Car Alarm Vomit [v1.0.0 | 14-April-2019]
    Reply With Quote #5

    Quote:
    Originally Posted by ReCreator View Post
    Russian+Hungarian
    __________________

    "I've Got You In My Sights!"
    KasperH is offline
    Mi.Cura
    Senior Member
    Join Date: Dec 2016
    Location: Brazil
    Old 04-17-2019 , 09:26   Re: [L4D & L4D2] Car Alarm Vomit [v1.0.2 | 16-April-2019]
    Reply With Quote #6

    Nice job!

    Thanks for sharing.

    __________________
    Mi.Cura is offline
    joyist
    Member
    Join Date: Apr 2018
    Old 04-30-2019 , 04:54   Re: [L4D & L4D2] Car Alarm Vomit [v1.0.4 | 25-April-2019]
    Reply With Quote #7

    Add Simplified Chinese

    "chi"覧Chinese
    "en" 覧English
    "es" 覧Spain
    "hu"覧Hungarian
    "pt"覧Portugal
    "ru"覧Russian




    L4D2漫步云端-服务器群组 chdong.top/motd
    My WebLab http://chdong.top/lab/webos
    Attached Files
    File Type: txt l4d_car_alarm_vomit.phrases.txt (3.8 KB, 126 views)
    joyist is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine
    Old 04-30-2019 , 10:04   Re: [L4D & L4D2] Car Alarm Vomit [v1.0.4 | 25-April-2019]
    Reply With Quote #8

    Thank you!
    Nice idea and code!
    __________________
    Expert of CMD/VBS/VB6. Malware analyst.
    [My plugins] [My tools] [GitHub]
    Dragokas is offline
    joyist
    Member
    Join Date: Apr 2018
    Old 05-08-2019 , 23:38   Re: [L4D & L4D2] Car Alarm Vomit [v1.0.5 | 30-April-2019]
    Reply With Quote #9

    Add Chinese or Japanese language

    "chi"覧Simplified Chinese
    "zho" - Traditional Chinese
    屠p - Japanese language

    "en" 覧English
    "es" 覧Spain
    "hu"覧Hungarian
    "pt"覧Portugal
    "ru"覧Russian

    ps:This plug-in is very good, now no rookie deliberately shot alarm car
    Attached Files
    File Type: txt l4d_car_alarm_vomit.phrases.txt (4.4 KB, 9 views)
    __________________
    http://chdong.top/motd

    L4D2 CN CloudsSky Server group。
    My WebLabWebOS
    joyist is offline
    gamer_kanelita
    Junior Member
    Join Date: Jun 2019
    Old 06-30-2019 , 21:04   Re: [L4D & L4D2] Car Alarm Vomit [v1.0.7 | 08-June-2019]
    Reply With Quote #10

    It does not work for me, I did all the steps and nothing, why?
    gamer_kanelita 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 20:01.


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