Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[L4D & L4D2] Tank Rock Destroyer Announce


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
About

I made this plugin due to a request from a friend who asked me to find out which player destroyed the Tank rock, so people won't self-credit anymore.

Description

This plugin will announce which player destroyed the Tank rock (final hit).

Preview

TO-DO


Cvars

A configuration file named "l4d_tank_rock_destroyer_announce.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_tank_rock_destroyer_announce_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_tank_rock_destroyer_announce_altdisplay_hiddenhinthud "4"

// Alternative display mode for the instructor hint (L4D2 only), 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_tank_rock_destroyer_announce_altdisplay_instructorhintdisabled "2"

// Enables/Disables the plugin behavior on bots. 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_tank_rock_destroyer_announce_bots "1"

// Which kind of players should the message be applied to.
// Known values: 0 = NONE, 1 = ATTACKER, 2 = SURVIVOR, 4 = INFECTED, 8 = SPECTATOR.
// Add numbers greater than 0 for multiple options.
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_tank_rock_destroyer_announce_displayto "3"

// Enables/Disables the plugin. 0 = Plugin OFF, 1 = Plugin ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_tank_rock_destroyer_announce_enabled "1"

// 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_tank_rock_destroyer_announce_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_tank_rock_destroyer_announce_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_tank_rock_destroyer_announce_gamemodes_toggle "0"

// Displays a message to the client when a Tank rock is destroyed by a client.
// Known values: 0 = OFF, 1 = CHAT, 2 = HINT, 4 = CENTER, 8 = CONSOLE, 16 = INSTRUCTOR.
// Add numbers greater than 0 for multiple options.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "31.000000"
l4d_tank_rock_destroyer_announce_msgdisplay "1"

// 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_tank_rock_destroyer_announce_tagdisplay "0"

// Which teams should activate the message.
// Known values: 0 = NONE, 1 = SURVIVOR, 2 = INFECTED, 4 = SPECTATOR.
// Add numbers greater than 0 for multiple options.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_tank_rock_destroyer_announce_team "1" 

Admin Commands

PHP Code:

sm_l4d_tank_rock_destroyer_announce_print_cvars // Prints the plugin related cvars and their respective values to the console. (needs "z" flag). 

Change Log

Spoiler


Current Translations
  • en - English
  • es - Spanish
  • pt - Brazilian Portuguese

Notes
  • TRDA stands for Tank Rock Destroy Announce.
  • Instructor Hints do not display when the client is dead.
  • There is no INSTRUCTOR value for L4D1 on cvars, because Instructor Hints entity does not exist on L4D1.
  • HINT mode blinks when the HUD is hidden with the HIDEHUD_ALL (4) or HIDEHUD_MISCSTATUS (64) flag.

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

Thank you!

Related Plugins

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

Installation
  • Put the "l4d_tank_rock_destroyer_announce_phrases.txt" file in your "\addons\sourcemod\translations\" folder.
  • Put the "l4d_tank_rock_destroyer_announce.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.

Attached Files
File Type: txt l4d_tank_rock_destroyer_announce.phrases.txt (3.4 KB)
File Type: sp Get Plugin or Get Source (l4d_tank_rock_destroyer_announce.sp - 39.6 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

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ę
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...