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

[L4D1 & L4D2] Throwable Announcer


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description

This plugin outputs to the chat every time someone throws a throwable (molotov/pipe bomb/vomit jar).

There are some plugins in the forum that already does that for the molotov, because of the molotov_thrown event,
But since we don't have specific events for pipe bomb or vomit jar, some people requested me to the same for both, mostly for the vomit jar because of the [L4D2] Bile the World plugin.

Features
  • Outputs the name of who threw a throwable to the chat.
  • Allows to select which throwables should output to the chat.
  • Allows to select which teams should see the message.

Preview

Coming soon.

Cvars

A configuration file named "l4d_throwable_announcer.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

PHP Code:

// Enables/Disables the plugin.
// 0 = Enable, 1 = Disable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_throwable_announcer_enable "1"

// Output to the chat every time someone throws a molotov.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_throwable_announcer_molotov "1"

// Output to the chat every time someone throws a pipe bomb.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_throwable_announcer_pipebomb "1"

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

// Output to the chat every time someone throws a vomit jar. L4D2 only.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_throwable_announcer_vomitjar "1" 

Admin Commands
  • sm_print_cvars_l4d_throwable_announcer => Prints the plugin related cvars and their respective values to the console. (z flag required)

Change Log

Spoiler


Known issues
  • None.

Notes
  • The vomit jar message only outputs to the L4D2 game, since L4D1 don't have vomit jars.

To Do
  • Add instructor hints markers to the throwers (L4D2 only).

Thank you!

Related Plugins

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

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

Attached Files
File Type: txt l4d_throwable_announcer.phrases.txt (1.4 KB)
File Type: sp Get Plugin or Get Source (l4d_throwable_announcer.sp - 14.0 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

×
×
  • Dodaj nową pozycję...