Raised This Month: $62 Target: $400
 15% 

[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:
1 
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, 39 views)
File Type: sp Get Plugin or Get Source (l4d_car_alarm_vomit.sp - 21 views - 23.9 KB)
__________________

Last edited by Marttt; 06-04-2021 at 13:27.
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, 212 views)
__________________
Sorry for my pure English...
ReCreator is offline
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
Attached Files
File Type: txt l4d_car_alarm_vomit.phrases.txt (3.0 KB, 234 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, 200 views)
__________________
Sorry for my pure English...
ReCreator is offline
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
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 | 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, 240 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. L4D fun (Bloody Witch) (my New server L4D2)
[My plugins] [My tools] [GitHub] [Articles] [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
屠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, 71 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


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 15:49.


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