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] ent_text in a range (Listen Server Only)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
LISTEN SERVER ONLY

IMPORTANT NOTE: SourceMod doesn't support Listen Servers.

Description

This plugin displays ent_text of entities in a range. (only in Listen Servers)

ent_text definition:

Quote:

Displays text debugging information about the given entity(ies) on top of the entity (See Overlay Text)
Arguments: {entity_name} / {class_name} / no argument picks what player is looking at
I made this since there is no argument or easy way to apply it only to nearby entities.

I only tested it on L4D1 and L4D2 but may work in any game.

Features
  • Automatically set the developer cvar to 1 when 0.

Cvars

A configuration file named "enttext.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

PHP Code:

// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
enttext_enable "1"

// Default range for "sm_enttext" command.
// -
// Default: "300.0"
// Minimum: "0.000000"
enttext_range "300.0" 

Admin Commands
  • sm_enttext => Applies ent_text command to entities in this range. Usage: sm_enttext [range]. (z flag required)
  • sm_enttextclear => Removes ent_text from entities set by the plugin. (z flag required)
  • sm_print_cvars_enttext => Print the plugin related cvars and their respective values to the console. (z flag required)

Change Log

Spoiler


Notes
  • ent_text overlay is only visible when developer cvar isn't 0.
  • Only works in listen servers.

Recommended Plugins

Post Reply
  • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

Installation
  • Put the "enttext.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.

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