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] Add Props Explosion [v1.0.0 | 28-November-2020]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description

This plugin adds more effects to the props below:
  • Gascan
  • Propane Canister
  • Oxygen Tank
  • Fireworks Crate (L4D2 only)
  • Fuel Barrel
  • Barricade with Gascans

With the following explosion effects:
  • Gascan
  • Fuel Barrel
  • Propane Canister
  • Fireworks Crate (L4D2 only)

By effect, I mean that the plugin creates another entity in the same spot a prop exploded, looking like if was another effect.

Example: Is possible to configure for when a fireworks crate explodes, it also shows up the gascan explosion effect together.

Features
  • Allow configuring which additional props should explode together on explosion.
  • Allow configuring the chance to the new effect be applied.

Cvars

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

PHP Code:

// Additional prop explosion every time a barricade with gascans explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "4"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_barricadegascan "4"

// Chance to add a prop explosion when a barricade with gascans explodes.
// 0 = OFF.
// -
// Default: "100.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_barricadegascan_chance "100.0"

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

// Additional prop explosion every time a fireworks crate explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "5"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_fireworkscrate "5"

// Chance to add a prop explosion when a fireworks crate explodes.
// 0 = OFF.
// -
// Default: "100.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_fireworkscrate_chance "100.0"

// Additional prop explosion every time a fuel barrel explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_fuelbarrel "1"

// Chance to add a prop explosion when a a fuel barrel explodes.
// 0 = OFF.
// -
// Default: "100.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_fuelbarrel_chance "100.0"

// Additional prop explosion every time a gascan explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "4"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_gascan "4"

// Chance to add a prop explosion when a a gascan explodes.
// 0 = OFF.
// -
// Default: "100.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_gascan_chance "100.0"

// Additional prop explosion every time a oxygen tank explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_oxygentank "2"

// Chance to add a prop explosion when a oxygen tank explodes.
// 0 = OFF.
// -
// Default: "100.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_oxygentank_chance "100.0"

// Additional prop explosion every time a propane canister explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_propanecanister "2"

// Chance to add a prop explosion when a propane canister.
// 0 = OFF.
// -
// Default: "100.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_propanecanister_chance "100.0" 

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

Change Log

Spoiler


Notes
  • Created to work together with [L4D/L4D2] Detonation force plugin.
  • The fuel barrel effect doesn't create additional parts on explosion.
  • The fireworks crate is only applied to the L4D2 game, since L4D1 doesn't have fireworks crate.
  • Fuel Barrel can be found on Sacrifice, 1st and 2nd maps.
  • Barricade with Gascans can be found on Dead Air, 3rd map.

To Do
  • Add effect for the cold stream chapter 2 explosion.

Thank you!
  • Tonblader - for requesting and testing in his server.

Related Plugins

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

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

Attached Files
File Type: sp Get Plugin or Get Source (l4d_add_prop_explosion.sp - 31.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

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

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