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

RSS[L4D1 & L4D2] Explosion Announcer


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description

This plugin outputs to the chat every time someone explodes a gascan/propane canister/oxygen tank/fireworks crate/fuel barrel/barricade with gascans.

Features
  • Output the name of who exploded.
  • Allow selecting which props should output to the chat.
  • Allow selecting which teams should see the message.

Chat message examples
  • Mart has exploded a gascan!
  • Mart has exploded a fuel barrel!
  • Mart has exploded a propane canister!
  • Mart has exploded an oxygen tank!
  • Mart has exploded a barricade with gascans!
  • Mart has exploded a fireworks crate!

Cvars

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

PHP Code:

// Output to the chat every time someone explodes (last hit) a barricade with gascans.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_barricadegascan "1"

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

// Output to the chat every time someone explodes (last hit) a fireworks crate.
// L4D2 only.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_fireworkscrate "1"

// Output to the chat every time someone explodes (last hit) a fuel barrel.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_fuelbarrel "1"

// Output to the chat every time someone explodes (last hit) a gascan.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_gascan "1"

// Output to the chat every time someone explodes (last hit) a oxygen tank.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_oxygentank "1"

// Output to the chat every time someone explodes (last hit) a propane canister.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_propanecanister "1"

// Delay in seconds to output to the chat the message from the same client again.
// 0 = OFF.
// -
// Default: "3.0"
// Minimum: "0.000000"
l4d_explosion_announcer_spamprotection "3.0"

// Whether the plugin should apply chat spam protection by entity type.
// Example: "gascans" and "propane canisters" are of different types.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_explosion_announcer_spamtypecheck "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.
// Example: "3", enables for SURVIVOR and INFECTED.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "7.000000"
l4d_explosion_announcer_team "1" 

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

Change Log

Spoiler


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

Known issues
  • When an explosion generates a lot of inferno entities (fire spots), sometimes the plugin can't detect who exploded.

Notes
  • The fireworks crate message only outputs to the L4D2 game, since L4D1 doesn't have fireworks crate.
  • The gascan health is checked before outputting the message, to prevent false-positives. (like when the gascan fire is extinguished but is filled somewhere)

To Do
  • Add a different message to scavenge gascans.
  • Add messages related to specific events. (Cold Stream - Pallet Barrel Event / Crash Course - Howitzer Event)
  • 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_explosion_announcer.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
  • Put the "l4d_explosion_announcer.phrases.txt" file in your "\addons\sourcemod\translations\" folder.

Attached Files
File Type: txt l4d_explosion_announcer.phrases.txt (2.8 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

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

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