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[Nuclear Dawn] Beam Resource Points [v1.0.0 | 25-January-2024]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description

Creates a beam distinguishing captured resource points by color.

Features
  • Allow configuring beam model/alpha/width/height.
  • Allow configuring beam color based on team capture.
  • Allow configuring time transition between captured/capturing.

Preview




Cvars

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

PHP Code:

// Beam alpha.
// 0 = Disable.
// -
// Default: "255"
// Minimum: "0.000000"
// Maximum: "255.000000"
nd_resource_point_beam_alpha "255"

// Beam color for consortium faction.
// Use three values between 0-255 separated by spaces ("<0-255> <0-255> <0-255>").
// -
// Default: "0 0 255"
nd_resource_point_beam_color_consortium "0 0 255"

// Beam color for consortium faction.
// Use three values between 0-255 separated by spaces ("<0-255> <0-255> <0-255>").
// -
// Default: "255 0 0"
nd_resource_point_beam_color_empire "255 0 0"

// Beam color for uncaptured resources.
// Use three values between 0-255 separated by spaces ("<0-255> <0-255> <0-255>").
// -
// Default: "255 255 255"
nd_resource_point_beam_color_none "255 255 255"

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

// Beam height.
// 0 = World Max.
// -
// Default: "0.0"
// Minimum: "0.000000"
nd_resource_point_beam_height "0.0"

// Beam model.
// -
// Default: "sprites/widestripe.vmt"
nd_resource_point_beam_model "sprites/widestripe.vmt"

// How often should check for capturing resources to toogle the color.
// 0 = OFF.
// -
// Default: "0.5"
// Minimum: "0.000000"
nd_resource_point_beam_timer_toogle "0.5"

// Beam end width.
// -
// Default: "0.0"
// Minimum: "0.000000"
nd_resource_point_beam_width_end "0.0"

// Beam start width.
// -
// Default: "25.0"
// Minimum: "0.000000"
nd_resource_point_beam_width_start "25.0" 

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

Change Log

Spoiler


To Do
  • Allow clients to enable/disable the beam visibility by cookies.

Thank you!
  • databomb - for all the help and plugins shared.
  • Vertex (Redstone) - for all the help and plugins shared.

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

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

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