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

[ANY] PropStack - Duplicate and Stack Props [v1.0 - Oct 22, 2019]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description:
This allows you to precisely stack a prop in up to 6 different directions no matter the angle of the prop. You can add an argument of <1-5> to stack up to 5 props at once, as well as increase or decrease the distance of a stack if desired. This is essentially just a building command. Getting this to work right was a traumatic experience for me, so enjoy.


Demo Video


General Notes:
  • This is well paired with my Grabent plugin.
  • This should work on any game, please let me know otherwise.
  • There is no admin flag set.
  • I had to rewrite this about 5 times, so the code is going to need cleaning.

Use Notes:
  • This works quick if you bind sm_stack to a key.
  • You can only stack prop_physics and prop_dynamic.
  • The maximum amount of stacks at once is set to 5.

Commands:
Code:

  • sm_stack
          OPTIONAL: You can add an argument to increase the stack count: "sm_stack <1-5>"
          KEYS:
          > MOUSE1 will release the stack, but you can also just use sm_stack again to release.
          > MOUSE2 will cancel the stack and delete the duplicated props.
          > [R]+MOUSE1 will increase the stack distance between the stacks and the selected prop.
          > [R]+MOUSE2 will decrease the stack distance in the same fashion.


Installation:
  • 1. Tap on "Get Plugin" below
  • 2. Put the downloaded file PropStack.smx in your servers plugins folder: SERVER/GAME/addons/sourcemod/plugins/
  • (optional) Put the source file PropStack.sp in your servers scripting folder: SERVER/GAME/addons/sourcemod/scripting/

Todo:
  • Definitely clean code, optimize where possible.
  • I'm open to suggestions.

CHANGELOG:
Spoiler

Attached Files
File Type: sp Get Plugin or Get Source (PropStack.sp - 17.0 KB)

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

×
×
  • Dodaj nową pozycję...