RSSy MYGO.pl Opublikowano Kwiecień 14, 2019 o 22:06 RSSy Udostępnij Opublikowano Kwiecień 14, 2019 o 22:06 About I made this plugin with the help of three other plugins. [L4D] Who Fired Car Alarm by Dartz8901 [L4D2] Car Alarm Informer by eyal282 [L4D2] Bile the World by AtomicStryker Goal The purpose of this plugin is to punish players who trigger a car alarm through vomit on them.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 1.0.0 (14-April-2019) - Initial release. Current Translations en - English es - Spanish pt - Brazilian Portuguese Notes CAV stands for Car Alarm Vomit. To detect the car alarm activator is used different ways For L4D and L4D2, I use different methods to detect the car alarm activator (since L4D does not have the triggered_car_alarm event). To Do Add a plugin preview to the thread. Create a configuration to customize the instructor hint. Thank you! Dartz8901 - for the code to detect the car alarm activator on L4D. eyal282 - for the code to detect the car alarm activator on L4D2. AtomicStryker - for the code to apply vomit on players and for the signatures file. Mr. Zero - for the useful stocks. Silvers - for the game mode allow stock. Lux - for the instructor hint stock. Dragokas - for the Colors in translation file tutorial. 404UNF - for the '#file' and what it does tutorial. kurama_youko - my old friend, for the request. Related Plugins [L4D] Who Fired Car Alarm by Dartz8901 [L4D2] Car Alarm Informer by eyal282 [L4D2] Bile the World by AtomicStryker Installation Put the "l4d_car_alarm_vomit.smx" file in your "\addons\sourcemod\plugins\" folder. Put the "l4d_car_alarm_vomit_phrases.txt" file in your "\addons\sourcemod\translations\" folder. Put the "l4d_car_alarm_vomit.txt" file in your "\addons\sourcemod\gamedata\" folder. Attached Files l4d_car_alarm_vomit.txt (548 Bytes) l4d_car_alarm_vomit.phrases.txt (2.7 KB) Get Plugin or Get Source (l4d_car_alarm_vomit.sp - 37.7 KB) l4d_car_alarm_vomit.smx (13.5 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się