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

[TF2] Trail Gun (v1.0, 9-1-2018)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
[TF2] Trail Gun



Description:
This is a cosmetic plugin for server donors which allows them to shoot props with trails out of their gun.
Props will be despawned after a short amount of time and only root admins can spam shoot.

Dependencies:
Video Demonstration:


CVARS:
Listed in your cfg/sourcemod/plugin.trailgun.cfg (which is generated when the plugin is loaded)
  • sm_trailgun_weapon - (Default: tf_weapon_flaregun) What weapon(s) is/are used as the trail gun? Separate classnames with a comma. Put \"all\" if you want all weapons to be considered as a trailgun.
  • sm_trailgun_weapon_slot - (Default: -1) Which weapon slot should the trailgun be used on? -1 = All weapon slots are allowed, 0 = Primary Slot, 1 = Secondary Slot, 2 = Melee Slot
  • sm_trailgun_button - (Default: 2) Which button shoots the trail gun? 1 = +attack, 2 = +attack2, 3 = +attack3, 4 = +use
  • sm_trailgun_despawn_time - (Default: 6) After a prop & trail is shot out of the gun, how many seconds till it despawns?
  • sm_trailgun_delay - (Default: 4.0) Time in seconds before a prop can be shot again.

Command:
  • sm_trailgun - (Default Access: ADMFLAG_RESERVATION) Opens the Trail Gun menu.

Command Override:
This would go in your addons/sourcemod/configs/admin_overrides.cfg
  • sm_trailgun_override_delay - (Default Access: ADMFLAG_ROOT) This is the override to bypass the shooting delay time.

Developer Native:
PHP Code:

/**
 * Does the player have the trailgun enabled?
 *
 * @param1        client - player's client index
 * @return        True if the player has it enabled, false otherwise
 */
native bool TG_Enabled(int client); 

Installation:
  1. A brain installed to your PCI-Express-brain slot in your head(Between your ears), make sure it's updated to the latest driver and has the "know how to manage a server" module installed.
  2. Install Sourcemod.
  3. Install VPhysics extension.
  4. Download the plugin at the bottom of the post.
  5. Extract the zip to your addons/sourcemod/ folder.
  6. Restart the server or type "sm plugins load trailgun" in your server console.

To-Do List:
  • Add support for custom trails and props
  • Suggest more

Changelog:
Spoiler




➤Download
➤Source
➤GitLab



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

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

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