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

[L4D2] Weapons Skins Menu


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description

With the L4D2 Last Update, some of the new things brought are new skins for weapons (e.g.: golden crowbar).
This plugin opens a menu to the client choose their own weapon skin.

Features
  • Menu to change the client's weapon skin (!wskin).
  • Checks if the client's weapons have skins available.

Preview

Coming soon.

Cvars

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

PHP Code:

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

Public Commands
  • sm_wskin => Opens a menu to select a weapon skin.

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

Change Log

Spoiler


Known issues
  • None.

Notes
  • The skin change was achieved by changing the weapon "m_nSkin" netprop value.
  • When the weapon is already equiped (active) I had to apply the skin also to the "m_hViewModel" netprop, otherwise there is some delay on skins changes.
  • Not all weapons have new skins and some aren't so different from the original one.
  • The currently supported weapons are:
    Melees: Crowbar, Cricket Bat
    Pistols: Magnum
    SMGs: Silenced; Uzi
    Shotguns: Chrome; Pump; Auto
    Rifles: M16; AK47
    Sniper: Hunting Rifle
  • These weapons have 2 new skins: Magnum; M16; AK47.
  • Total of 14 new skins.
  • By now, 29-September-2020, there are no more skins available.
  • The plugin may not work properly for clients that use addons to change the weapon appearance.
  • I don't know if it conflicts with the "Golden Crowbar" achievement.

To Do
  • Save client's preferences to cookies.
  • Allow the client to configure all weapon's skins.

Thank you!
  • Silvers - for helping me in some coding and all your knowledge base of shared plugins.
  • Alex Alcalá - for testing in his server and reporting some bugs.

Related Plugins

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

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

Attached Files
File Type: txt l4d2_wskin.phrases.txt (1.3 KB)
File Type: sp Get Plugin or Get Source (l4d2_wskin.sp - 16.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

×
×
  • Dodaj nową pozycję...