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

HL2DM - Grenade Trails


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
This is my first plugin. I will start by confessing i'm a total n00b at coding, so... this is just a modification of scorp's crossbow trail plugin (inspired on Trailball by raziEil) that he was kind enough to develop for me some months ago.

This plugin attaches trails to grenades giving it a cool visual effect.

What I did was to just change the entity to attach trails to, which is the npc_grenade_frag.
I also added a ConVar named sm_grenadetrail_material to allow you to change the material of the trail instantly. The only advice is to pay attention to spelling or if your texture exists in your materials folder because invalid textures can cause clients to crash when they throw a grenade.

687474703a2f2f6f707072657373697665746572

It even supports custom materials as long as you have a plugin to force clients to download and precache, i would recommend SWAT_88's great plugin for this. More info HERE

To install:, copy sm_grenadetrails.smx to sourcemod/plugins folder

After installing the plugin and loading it for the first time, it will generate a config file in cfg/sourcemod named sm_grenadetrail.cfg

Note: I am also looking for a way to remove the original npc_grenade_frag red trail. Suggestions are welcome! =)

Support me? *-*
paypal: [email protected]




Spoiler

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

×
×
  • Dodaj nową pozycję...