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[Any] Simple HealthBars


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
This plugin is an example.
It is not configurable since the objective is simply to make a proof of concept.
It is easy to reprogram so you can easily use it as a base or simply copypaste the parts you want into your plugin.

It will display a helthbar above every play's head (except yourself).

Since the Beams can only be displayed for a minimun of 0.1 second, the bar will only update on a 0.1 second timer.
This results in a laggy movement of the bar.
There are a few solutions:
1 - Render the bar once per freme. This will look great if the bar is not moving, but will create a ghosting effect since the bar still takes 0.1 seconds to disapear.
2 - use laser beam attached to another entity. It gives the best looking results, but the objective of this plugin is just to shocase the maths.

Fell free to ask for help about the plugin and to make your own better version of it.

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