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] Spot Marker [v1.0.0 | 16-March-2021]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description

Based on my [L4D1 & L4D2] SI Command Chase Common plugin.

This plugin allow clients to create spot markers in the map at crosshair while pressing SHIFT+[/B]E[/B].

The spot marker will be visible only for teammates.

Features
  • Allow configuring which teams should be able to create spot markers.
  • Allow configuring the duration and cooldown of the ability.
  • Allow configuring who should see the beacon and sprite indicators.

Cvars

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

PHP Code:

// Cooldown (seconds) to use the spot marker.
// -
// Default: "10.0"
// Minimum: "0.000000"
l4d_spot_marker_cooldown "10.0"

// Duration (seconds) of the spot marker.
// -
// Default: "10.0"
// Minimum: "0.000000"
l4d_spot_marker_duration "60.0"

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

// Create a beacon field where the chase has been created.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_spot_marker_field "1"

// Beacon field alpha transparency.
// 0 = Invisible, 255 = Fully Visible.
// -
// Default: "255"
// Minimum: "0.000000"
// Maximum: "255.000000"
l4d_spot_marker_field_alpha "255"

// Beacon field amplitude.
// -
// Default: "0.0"
// Minimum: "0.000000"
l4d_spot_marker_field_amplitude "0.0"

// Beacon field color.
// Use "random" for random colors.
// Use three values between 0-255 separated by spaces ("<0-255> <0-255> <0-255>").
// -
// Default: "255 255 0"
l4d_spot_marker_field_color "255 255 0"

// Beacon field end radius.
// -
// Default: "120.0"
// Minimum: "0.000000"
l4d_spot_marker_field_end_radius "120.0"

// Beacon field model.
// -
// Default: "materials/sprites/laserbeam.vmt"
l4d_spot_marker_field_model "materials/sprites/laserbeam.vmt"

// Beacon field start radius.
// -
// Default: "100.0"
// Minimum: "0.000000"
l4d_spot_marker_field_start_radius "100.0"

// Beacon field width.
// -
// Default: "2.0"
// Minimum: "0.000000"
l4d_spot_marker_field_width "2.0"

// Create a sprite where the chase has been created.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_spot_marker_sprite "1"

// Sprite alpha transparency.
// Note: Some models don't allow to change the alpha.
// 0 = Invisible, 255 = Fully Visible
// -
// Default: "255"
// Minimum: "0.000000"
// Maximum: "255.000000"
l4d_spot_marker_sprite_alpha "255"

// Sprite color.
// Use "random" for random colors.
// Use three values between 0-255 separated by spaces ("<0-255> <0-255> <0-255>").
// -
// Default: "255 255 0"
l4d_spot_marker_sprite_color "255 255 0"

// Minimum distance that a client must be before the sprite fades.
// -1 = Always visible.
// -
// Default: "-1"
// Minimum: "-1.000000"
// Maximum: "9999.000000"
l4d_spot_marker_sprite_fade_distance "-1"

// Minimum/Maximum distance between the original position that the sprite should reach before inverting the vertical direction.
// 0 = OFF.
// -
// Default: "5.0"
// Minimum: "0.000000"
l4d_spot_marker_sprite_min_max "4.0"

// Sprite model.
// -
// Default: "materials/vgui/icon_download.vmt"
l4d_spot_marker_sprite_model "materials/vgui/icon_download.vmt"

// Sprite scale (increases both height and width).
// Some range values maintain the size the same.
// -
// Default: "0.25"
// Minimum: "0.000000"
l4d_spot_marker_sprite_scale "0.25"

// Speed that the sprite will move at the Z axis.
// 0 = OFF.
// -
// Default: "1.0"
// Minimum: "0.000000"
l4d_spot_marker_sprite_speed "1.0"

// Additional Z axis to the sprite.
// -
// Default: "50.0"
// Minimum: "0.000000"
l4d_spot_marker_sprite_z_axis "50.0"

// Which teams should be able to create spot markers.
// 0 = NONE, 1 = SURVIVOR, 2 = INFECTED, 4 = SPECTATOR, 8 = HOLDOUT.
// Add numbers greater than 0 for multiple options.
// Example: "3", enables for SURVIVOR and INFECTED.
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_spot_marker_team "3" 

Admin Commands
  • sm_spotmarker => Create a spot marker on self crosshair (no args) or specified targets crosshair. Example: self -> sm_spotmarker / target -> sm_spotmarker @bots. (z flag required)
  • sm_print_cvars_l4d_spot_marker => Print the plugin related cvars and their respective values to the console. (z flag required)

Change Log

Spoiler


To Do
  • Add option to player select their own spot marker colors.

Thank you!
  • KadabraZz - for the request 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_spot_marker.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.

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