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[DEV] TED - Prop Loader


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description:
Allows you to apply properties on entity from kvtest.txt file previously saved via sm_ted_select (or sm_ted_selectid <id>) command of tEntDev.
Settings (ConVars):
Nothing.
Requirements:
- SourceMod 1.10+
- tEntDev
Command usage samples
  • sm_ted_load <opt. entity index> <opt. property(ies) filter> <opt. kvtest file path/name>
Notice: all arguments are optional.
Filter supports regular expressions. Multiple filters could be specified via whitespace, enquoted as single argument.

PHP Code:

// Apply all properties from kvtest.txt file to aimed target
sm_ted_load

// Apply all properties from kvtest.txt file to entity 4
sm_ted_load "4"

// Apply properties m_vecOrigin and m_angRotation on aim target
sm_ted_load "" "m_vecOrigin m_angRotation"

// Apply all properties from kvtest_other.txt file to entity 4
sm_ted_load "4" "" kvtest_other.txt 

TODO:
- Add support of array-based props.
Donate
Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
- Patreon (Paypal)
- BitCoin
- Ю.Money

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