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] Christmas Tree (1.0) [07-Nov-2019]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
68747470733a2f2f692e696d6775722e636f6d2f
68747470733a2f2f692e696d6775722e636f6d2f
68747470733a2f2f692e696d6775722e636f6d2f


Thanks:
  • Dragokas for the idea and request, L4D1 saved spawn data and lots of help testing.



About:
  • Spawn single gifts or trees either temporary or saved to the map.
  • Gifts can break and spawn an item or weapon.
  • L4D is missing the L4D2 gift model and uses a crate.
  • Aim at the Gnome to delete, edit position and angles. The tree is non-solid.
  • Maximum of 2 trees per map. Gifts are limited to 32. Recompile to change limits.
  • Trees (with default settings) use approx 45 entities (2 models + 6 gifts + 1 spark + 4 lights + 32 sprites). On explosion about 8 temporary entities.
  • It's not a CPU intensive plugin for the server. Rainbow option will increase bandwidth slightly.
  • Optionally adds dissolve effects to gifts when detecting l4d_dissolve_infected.txt gamedata. Can be disabled with l4d_tree_effects cvar.
  • This plugin is large because of the effects stocks, spawning capability and all the options with that.
  • Fully handles late loading, unloading, turning on/off and deletes unused items.
  • Recommended additional plugins: Neon Beams for decorations. Weather Control or xMas for snow.
  • Optional data config provided with trees saved to every Valve map. Thanks to "Dragokas" for the L4D1 data.



Gifts Drop Chances:
  • Weighted chance for item and weapon selection on gift breaking.
  • L4D1 auto ignores chances for L4D2 items and weapons.
  • Each value in the l4d_tree_items cvar represents the chance of each specific item or weapon dropping from 0 to 100%.
  • The order is as follows, includes example cvars for no weapons:
    Spoiler



Admin Commands: (requires "z" flag)

PHP Code:

sm_tree_spawn    // Spawns a temporary Gift/Tree at your crosshair. Usage: sm_tree_spawn [type: 0=Gift. 1=Tree.]
sm_tree_save     // Spawns a Gift/Tree at your crosshair and saves to config. Usage: sm_tree_save [type: 0=Gift. 1=Tree.]
sm_tree_del      // Removes the Gift/Tree you are pointing at and deletes from the config if saved.
sm_tree_clear    // Removes all Gifts/Trees spawned by this plugin from the current map.
sm_tree_wipe     // Removes all Gifts/Trees from the current map and deletes them from the config.
sm_tree_reload   // Resets the plugin and reloads the data config and saved spawns.
sm_tree_glow     // Toggle to enable glow on all Gifts/Trees to see where they are placed.
sm_tree_list     // Display a list Gift/Tree positions and the total number of.
sm_tree_tele     // Teleport to a Gift/Tree (Usage: sm_tree_tele <index: 1 to MAX_SPAWNS (32)>).
sm_tree_ang      // Displays a menu to adjust the Gift/Tree angles your crosshair is over.
sm_tree_pos      // Displays a menu to adjust the Gift/Tree origin your crosshair is over. 




CVars:

Saved to l4d_christmas_tree.cfg in your servers \cfg\sourcemod\ folder.

PHP Code:

l4d_tree_allow           "1"          // 0=Plugin off, 1=Plugin on.
l4d_tree_modes           ""           // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_tree_modes_off       ""           // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_tree_modes_tog       "0"          // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_tree_ball_count      "8"          // How many balls to display per column.
l4d_tree_ball_columns    "4"          // How many columns of balls to display.
l4d_tree_ball_radius     "45.0"       // Distance from the tree base to display balls
l4d_tree_col_gift        "255 0 0"    // Gift color. 0=Off (default Gift color). Three values between 0-255 separated by spaces. RGB: Red Green Blue.
l4d_tree_col_tree        "0 255 0"    // Tree color. 0=Off (default Tree color). Three values between 0-255 separated by spaces. RGB: Red Green Blue.
l4d_tree_effects         "15"         // 0=Off. 1=Lights, 2=Balls, 4=Sparks, 8=Dissolver, 15=All. Add numbers together.
l4d_tree_gifts           "6"          // How many packages to spawn under the tree.
l4d_tree_items           "80,100,25,25,25,40,15,15,15,2,2,2,5,5,5,2,5,1,1,2,0,2,5,0,0,2,0,5,1" // Item chance. See above for details.
l4d_tree_glow            "255 0 0"    // 0=Off. L4D2 only: glow outline on gifts. Three values between 0-255 separated by spaces. RGB: Red Green Blue.
l4d_tree_health          "1"          // 0=Does not break or drop items. Health of gifts before they can break and drop items.
l4d_tree_rainbow         "2"          // 0=Off. 1=Gifts change color over time. 2=Trees change color over time. 3=Both
l4d_tree_rate            "10"         // How fast the color changes when using rainbow option.
l4d_tree_speed           "0.2"        // How often to update the colors per second.
l4d_tree_version                      // Christmas Tree plugin version. 




Changes:
Code:

1.0 (07-Nov-2019)
    - Initial release.



Installation
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
  2. Optionally download "l4d_christmas_tree.cfg" and save to your servers \addons\sourcemod\data\ folder. This has trees saved to every Valve map.

Attached Files
File Type: cfg l4d_christmas_tree.cfg (13.0 KB)
File Type: sp Get Plugin or Get Source (l4d_christmas_tree.sp - 61.0 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

×
×
  • Dodaj nową pozycję...