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[L4D2] Scavenge Gascan Respawn [v1.0.0 | 03-November-2020]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
L4D2 ONLY

Description

This plugin teleports scavenge gascans back to their spawn position after a while.

Useful when the gascan goes to unreachable places. Can also be used to make the game harder.

Features
  • Allow configuring how far from the spawn position the scavenge gascan should be to teleport.
  • Allow configuring how long to wait to teleport

Cvars

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

PHP Code:

// How often (in seconds) should the plugin check the scavenge gascan position.
// -
// Default: "1.0"
// Minimum: "0.100000"
l4d2_gascan_respawn_check_interval "1.0"

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

// Scavenge gascan glow color after being teleported.
// Game default color: "255 255 255". Int value = 16777215.
// Game default color after pick up: "255 127 0". Int value = 33023.
// -
// Default: "255 255 255"
l4d2_gascan_respawn_glow_color "255 255 255"

// How far from the spawn position the scavenge gascan should be to teleport.
// -
// Default: "500.0"
// Minimum: "0.000000"
l4d2_gascan_respawn_min_distance "500.0"

// How much seconds after meeting the requirements the scavenge gascan should be teleported to its spawn position.
// -
// Default: "120.0"
// Minimum: "0.100000"
l4d2_gascan_respawn_teleport_wait_time "120.0" 

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

Change Log

Spoiler


Notes
  • If the gascan is being hold the plugin resets the countdown check.
  • The method used to identify if is a scavenge gascan is by checking its skin. If it's greater than 0 (default), the plugin understands that is a scavenge gascan. (L4D2 only)

To Do
  • Add some support to L4D1.

Related Plugins

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

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

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