View Single Post
Author Message
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-11-2020 , 12:54   [L4D2] Weapons Skins Switch [v1.0.1 | 11-November-2020]
Reply With Quote #1

L4D2 ONLY

Description

With the L4D2 Last Stand update, some of the new things brought are new skins for weapons (e.g.: golden crowbar).

This plugin allows to change an equipped weapon skin by pressing IN_USE (E) in the same weapon with a different skin.


Features
  • Allow to switch the weapon skin with the targeted one.
  • Allow configuring to absorb the targeted skin or swap with the equipped one.

Cvars

A configuration file named "l4d2_wskin_switch.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"
l4d2_wskin_switch_enable "1"

// Swap the targeted weapon skin with the holding weapon skin.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_wskin_switch_swap "1" 
Admin Commands
  • sm_print_cvars_l4d2_wskin_switch => Print the plugin related cvars and their respective values to the console. (z flag required)

Change Log

Spoiler


Known Issues
  • The skin doesn't apply very well while on the third person (e.g. thirdpersonshoulder). You may have to swap weapons to see the changes.

Notes
  • This plugin uses the player_use event to detect if a player pressed IN_USE (E) in a weapon.

Thank you!

Related Plugins

Conflicting Plugins

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

Installation
  • Put the "l4d2_wskin_switch.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_wskin_switch.sp - 191 views - 15.8 KB)
__________________

Last edited by Marttt; 02-19-2023 at 21:54.
Marttt is offline