AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Weapons Skins Switch [v1.0.1 | 11-November-2020] (https://forums.alliedmods.net/showthread.php?t=328478)

Marttt 11-11-2020 12:54

[L4D2] Weapons Skins Switch [v1.0.1 | 11-November-2020]
 
17 Attachment(s)
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.

user2000 11-11-2020 13:35

Re: [L4D2] Weapons Skins Switch [v1.0.0 | 11-November-2020]
 
I really don't know what I'm doing wrong but nothing happens when I press "E"

Or do I think I misunderstood?

Marttt 11-11-2020 14:46

Re: [L4D2] Weapons Skins Switch [v1.0.0 | 11-November-2020]
 
You have to press "E" in a weapon with different skin than yours.

Easier to test in c1m2_streets map (Dead Center - Chapter 2) at Whitaker's Gun Shop.

Probably you need [L4D2] Weapons Skins RNG to have more different skins available on the map.

Basically, it works like that, using AK as example.

AK has 3 skins,

The second skin (skin 1) makes its color darker (green+black), if you go near to another AK with a different skin than yours (brown) (skin 0), and press "E", the skin must swap.

Yours should become brown and the AK you pressed "E" must be green+black.

If it still confusing or not working PM me.

user2000 11-11-2020 15:26

Re: [L4D2] Weapons Skins Switch [v1.0.0 | 11-November-2020]
 
what I was doing is pressing "E" to an already equipped weapon to see if it changed skin

what I have to do is press "E" near the weapon with different skin?

user2000 11-11-2020 15:28

Re: [L4D2] Weapons Skins Switch [v1.0.0 | 11-November-2020]
 
making a video would be better to make my brain understand :)

user2000 11-11-2020 16:49

Re: [L4D2] Weapons Skins Switch [v1.0.1 | 11-November-2020]
 
apparently works fine :)

thanks

NoroHime 12-10-2021 15:09

Re: [L4D2] Weapons Skins Switch [v1.0.1 | 11-November-2020]
 
lol IN_USE is a status that isnt IN_USE key


All times are GMT -4. The time now is 08:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.