Raised This Month: $32 Target: $400
 8% 

[L4D1 & L4D2] Car Alarm Vomit [v1.1.0 | 25-April-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
6523
Plugin Version:
1.1.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
12 
Plugin Description:
Vomits on the player who triggers a car alarm
Old 04-14-2019 , 18:06   [L4D1 & L4D2] Car Alarm Vomit [v1.1.0 | 25-April-2021]
Reply With Quote #1

Description

This plugin will punish players who trigger a car alarm through vomit on them.

Features
  • Allow setting immunity based on client flags.
  • Allow setting how the messages should be sent to the client. (chat/hint/instructor)
  • Allow selecting which teams should see the message.

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:
// Enables/Disables the plugin behaviour on Survivor bots.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_car_alarm_vomit_bots "1"

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

// Players with these flags are immune to the plugin behaviour.
// 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 ""

// Display type for the "Activator" message.
// 0 = OFF, 1 = CHAT, 2 = HINT, 4 = INSTRUCTOR HINT (L4D2 only).
// Add numbers greater than 0 for multiple options.
// Example: "3", displays the message in CHAT and as a HINT.
// -
// Default: "5"
// Minimum: "0.000000"
// Maximum: "7.000000"
l4d_car_alarm_vomit_msg "5"

// 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_car_alarm_vomit_team "1" 
Admin Commands
  • sm_print_cvars_l4d_car_alarm_vomit => 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
  • jp - Japanese
  • pt - Brazilian Portuguese
  • pt_p - Portuguese
  • ru - Russian
  • chi - Simplified Chinese
  • zho - Traditional Chinese

Notes
  • L4D1 and L4D2 uses different methods to detect the car alarm activator. (since L4D1 does not have the triggered_car_alarm event)
  • Bots don't trigger the car alarm by default. (you can use this plugin to fix it => [L4D2] Car Alarm - Bots Trigger)
  • Instructor Hints are enabled only for L4D2.
  • Instructor Hints do not display when the client is dead.

To Do
  • Create a configuration to customize the instructor hint.

Thank you!

Related Plugins

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

Requirements

Installation
  • 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.phrases.txt (3.6 KB, 281 views)
File Type: sp Get Plugin or Get Source (l4d_car_alarm_vomit.sp - 380 views - 23.2 KB)
__________________

Last edited by Marttt; 02-19-2023 at 21:53.
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, 390 views)
__________________
Sorry for my pure English...
ReCreator is online now
KasperH
Senior 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
Updated:2021.09.24.
Attached Files
File Type: txt l4d_car_alarm_vomit.phrases.txt (3.6 KB, 172 views)
__________________

"I've Got You In My Sights!"

Last edited by KasperH; 09-24-2021 at 08:19.
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, 364 views)
__________________
Sorry for my pure English...
ReCreator is online now
KasperH
Senior 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
Veteran 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 | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
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, 408 views)
joyist is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
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. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
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
“jp” - 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, 251 views)
__________________
http://chdong.top/motd

L4D2 CN CloudsSky Server group。
My WebLabWebOS
joyist is offline
gamer_kanelita
Senior Member
Join Date: Jun 2019
Location: Peru
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



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 03:38.


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