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

Player Pitch


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
[TF2] Player Pitch v1.0

Description
This is a very simple plugin that enables you to change the pitch of voice commands. It's ideal for a rank like Donor/VIP, as it offers two low/high commands which changes the pitch to a configurable low/high value.
It also has a command for setting a custom value, this one is root only by default. The ability to target other players is controlled by flags, which allows it to be customizable.

ConVars
  • sm_playerpitch_target_flags - The required flag(s) to target other players (root always have access). (Default: b)
  • sm_playerpitch_low - The value for the sm_lowpitch command. (Min: 30, Max: 100, Default: 50)
  • sm_playerpitch_high - The value for the sm_highpitch command. (Min: 100, Max: 250, Default: 200)

Commands
  • sm_lowpitch - Sets the pitch to the value of sm_playerpitch_low (generic admin).
  • sm_highpitch - Sets the pitch to the value of sm_playerpitch_high (generic admin).
  • sm_pitch - Sets the pitch to a custom value (root admin).
  • sm_resetpitch - Resets the pitch back to normal (generic admin).
When the user has the flag(s) specified in sm_playerpitch_target_flags, the above commands will also require a target.

Changelog
Quote:

2018-04-11 (v1.0)
* Initial release.
Installation
  1. Use "Get Plugin" below and put it in your /addons/sourcemod/plugins folder
  2. (Optional) Change the convars in the autogenerated /cfg/sourcemod/plugin.playerpitch.cfg file.

Note: This is my first plugin! I am an experienced C# developer, but SourcePawn is still fairly new to me.

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

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

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