AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1 & L4D2] Car Alarm Vomit [v1.1.0 | 25-April-2021] (https://forums.alliedmods.net/showthread.php?t=315602)

Marttt 04-14-2019 18:06

[L4D1 & L4D2] Car Alarm Vomit [v1.1.0 | 25-April-2021]
 
24 Attachment(s)
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.

ReCreator 04-15-2019 06:37

Re: [L4D/L4D2] Car Alarm Vomit [v1.0.0 | 14-April-2019]
 
1 Attachment(s)
Added Russian Translation

KasperH 04-15-2019 09:43

Re: [L4D/L4D2] Car Alarm Vomit [v1.0.0 | 14-April-2019]
 
1 Attachment(s)
Added Hungarian
Updated:2021.09.24.

ReCreator 04-15-2019 11:20

Re: [L4D/L4D2] Car Alarm Vomit [v1.0.0 | 14-April-2019]
 
1 Attachment(s)
Russian+Hungarian :3

KasperH 04-15-2019 12:06

Re: [L4D/L4D2] Car Alarm Vomit [v1.0.0 | 14-April-2019]
 
Quote:

Originally Posted by ReCreator (Post 2647643)
Russian+Hungarian :3

:up:

Mi.Cura 04-17-2019 09:26

Re: [L4D & L4D2] Car Alarm Vomit [v1.0.2 | 16-April-2019]
 
Nice job!

Thanks for sharing.

:bacon!:

joyist 04-30-2019 04:54

Re: [L4D & L4D2] Car Alarm Vomit [v1.0.4 | 25-April-2019]
 
1 Attachment(s)
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

Dragokas 04-30-2019 10:04

Re: [L4D & L4D2] Car Alarm Vomit [v1.0.4 | 25-April-2019]
 
Thank you!
Nice idea and code!

joyist 05-08-2019 23:38

Re: [L4D & L4D2] Car Alarm Vomit [v1.0.5 | 30-April-2019]
 
1 Attachment(s)
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

gamer_kanelita 06-30-2019 21:04

Re: [L4D & L4D2] Car Alarm Vomit [v1.0.7 | 08-June-2019]
 
It does not work for me, I did all the steps and nothing, why?

ur5efj 10-04-2020 12:13

Re: [L4D & L4D2] Car Alarm Vomit [v1.0.7 | 08-June-2019]
 
SM 1.10.0.6497
Code:

L 10/04/2020 - 18:10:24: SourceMod error session started
L 10/04/2020 - 18:10:24: Info (map "c14m1_junkyard") (file "C:\SteamCMD\SteamApps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\errors_20201004.log")
L 10/04/2020 - 18:10:24: [SM] Exception reported: Invalid hook callback specified for game event "round_start"
L 10/04/2020 - 18:10:24: [SM] Blaming: l4d_car_alarm_vomit.smx
L 10/04/2020 - 18:10:24: [SM] Call stack trace:
L 10/04/2020 - 18:10:24: [SM]  [0] UnhookEvent
L 10/04/2020 - 18:10:24: [SM]  [1] Line 437, l4d_car_alarm_vomit.sp::HookEvents
L 10/04/2020 - 18:10:24: [SM]  [2] Line 362, l4d_car_alarm_vomit.sp::OnConfigsExecuted
L 10/04/2020 - 18:30:04: Error log file session closed.


Marttt 04-24-2021 23:06

Re: [L4D & L4D2] Car Alarm Vomit [v1.1.0 | 25-April-2021]
 
Plugin updated. (code rework)

I recommend updating the translation .txt file and deleting the .cfg file to auto-generate again or replacing it with the one in from the main post.

Note: Replaced gamedata with left4dhooks dependency.

Code:

1.1.0 (25-April-2021)
    - New version released.
    - Replaced gamedata with left4dhooks dependency.


bald14 09-23-2021 17:15

Re: [L4D1 & L4D2] Car Alarm Vomit [v1.1.0 | 25-April-2021]
 
can you make players who trigger a car alarm not go blind from vomit ? I mean that would be more realistic.
Also can you make the alarm cars not emit lights? To increase the difficulty of dodging them
Thanks and sorry for my English.

Marttt 09-23-2021 18:05

Re: [L4D1 & L4D2] Car Alarm Vomit [v1.1.0 | 25-April-2021]
 
If you don't want players going blind (purpose of this plugin) why would you use this plugin? (Just for me to understand).
About the car lights I will check but I think is not possible to detect them 100%.

Psyk0tik 09-23-2021 18:35

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

Originally Posted by Marttt (Post 2758672)
If you don't want players going blind (purpose of this plugin) why would you use this plugin? (Just for me to understand).
About the car lights I will check but I think is not possible to detect them 100%.

Maybe he wants an option that provides the same effect as the vomit (targeting the shooter) without covering the player screen.

bald14 09-24-2021 01:22

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

Originally Posted by Psyk0tik (Post 2758673)
Maybe he wants an option that provides the same effect as the vomit (targeting the shooter) without covering the player screen.

Yes that's what I want.
Quote:

Originally Posted by Marttt (Post 2758672)
If you don't want players going blind (purpose of this plugin) why would you use this plugin? (Just for me to understand).
About the car lights I will check but I think is not possible to detect them 100%.

I just think it's absurd that a car can spit out vomit. Just horde focusing on the person touching the car is enough for me

Marttt 09-24-2021 07:51

Re: [L4D1 & L4D2] Car Alarm Vomit [v1.1.0 | 25-April-2021]
 
I did this plugin only because of a request from a friend to behave this way.
The purpose is to punish somehow who triggers the car alarm.
Anyway, I will check if I'm able to remove the vomit screen.

bald14 09-24-2021 08:08

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

Originally Posted by Marttt (Post 2758738)
I did this plugin only because of a request from a friend to behave this way.
The purpose is to punish somehow who triggers the car alarm.
Anyway, I will check if I'm able to remove the vomit screen.

Yeah thank for support it

CaRmilla 11-25-2021 09:34

Re: [L4D1 & L4D2] Car Alarm Vomit [v1.1.0 | 25-April-2021]
 
Awesome lol :twisted: Would be even better if you would freeze them too :mrgreen:


All times are GMT -4. The time now is 19:42.

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