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] Input Hooks - DevTools


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
68747470733a2f2f692e696d6775722e636f6d2f


About:
  • Prints entity input data to chat (client) or console (server).
  • Can specify which entities to listen for or filter out.
  • Example command: sm_input_watch "logic_script,logic_entity,logic_relay"


Thanks:
  • Dr!fter - DHooks "AcceptInput" example this is based on.
  • Dragokas - For the request.


Admin Commands: (requires "z" flag)

PHP Code:

sm_input_listen    // Starts listening to all inputs. Filters or listens for classnames from the filter and listen cvars.
sm_input_stop      // Stop printing entity inputs.
sm_input_watch     // Start printing entity inputs. Usage: sm_input_watch <classnames to watch, separate by commas> 


ConVars:

Saved to sm_input_hooks.cfg in your servers \cfg\sourcemod\ folder.

PHP Code:

// Do not hook and show output data from these classnames, separate by commas (no spaces). Only works for sm_output_listen command.
sm_input_hooks_filter ""

// Only hook and display output data from these classnames, separate by commas (no spaces). Only works for sm_output_listen command.
sm_input_hooks_listen ""

// Output Hooks - DevTools plugin version.
l4d_healing_version 


Changes:
Code:

1.0 (14-Oct-2019)
    - Initial release.


Requirements:

Installation:
DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires DHooks!
  1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
  2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.

Attached Files
File Type: sp Get Plugin or Get Source (input_hooks.sp - 9.4 KB)
File Type: smx input_hooks.smx (8.7 KB)
File Type: txt input_hooks.games.txt (490 Bytes)

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ę...