RSSy MYGO.pl Opublikowano Wrzesień 29, 2020 o 15:47 RSSy Udostępnij Opublikowano Wrzesień 29, 2020 o 15:47 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 1.0.0 (29-September-2020) - Initial release. 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 [L4D2] Weapons Skins RNG by Marttt 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 l4d2_wskin.phrases.txt (1.3 KB) 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 Więcej opcji udostępniania...
Rekomendowane odpowiedzi