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?


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

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