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[L4D1 & L4D2] Display Addon Bits [v1.0.0 | 13-August-2022]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description

This plugin hides/shows the equipped items on clients back/belt.

Features
  • Allow configuring which items should be displayed on clients back/belt.

Cvars

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

PHP Code:

// Which equipped items should display on clients back/belt.
// 0 = NONE, 1 = SLOT 1, 2 = SLOT 2, 4 = SLOT 3, 8 = SLOT 4, 16 = SLOT 5, 32 = SMOKER TONGUE, 128 = DIESEL (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "255.000000"
l4d_show_addonbits_display "0"

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

Related Game Cvars
  • [L4D1 ONLY] survivor_draw_addons => 0=hides all items, 1=hides healthpack, pills and throwables, 2=show all items. (default: 2)

Admin Commands
  • sm_print_cvars_l4d_display_addonbits => Print the plugin related cvars and their respective values to the console. (z flag required)

Change Log

Spoiler


Notes
  • This was achieved by changing the player m_iAddonBits netprop value on PostThinkPost.
  • Only survivors are affected since for infecteds the netprop is always 0.
  • The smoker tongue also has a related value to display.
  • L4D1 doesn't have the diesel option.
  • Diesel starts to display in the 3rd chapter of "Rain Hard" campaign.
  • Flag 64 is a hidden defibrillator model that doesn't appear to be used in-game.

Thank you!

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

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

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