Raised This Month: $12 Target: $400
 3% 

[L4D2] Weapons Skins Switch [v1.0.1 | 11-November-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7376
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Allow to change an equipped weapon skin by pressing IN_USE (E) in the same weapon with a different skin
    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 - 169 views - 15.8 KB)
    __________________

    Last edited by Marttt; 02-19-2023 at 21:54.
    Marttt is offline
    user2000
    Member
    Join Date: Nov 2015
    Location: Peru - Lima
    Old 11-11-2020 , 13:35   Re: [L4D2] Weapons Skins Switch [v1.0.0 | 11-November-2020]
    Reply With Quote #2

    I really don't know what I'm doing wrong but nothing happens when I press "E"

    Or do I think I misunderstood?
    user2000 is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 11-11-2020 , 14:46   Re: [L4D2] Weapons Skins Switch [v1.0.0 | 11-November-2020]
    Reply With Quote #3

    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.
    __________________

    Last edited by Marttt; 11-11-2020 at 14:47.
    Marttt is offline
    user2000
    Member
    Join Date: Nov 2015
    Location: Peru - Lima
    Old 11-11-2020 , 15:26   Re: [L4D2] Weapons Skins Switch [v1.0.0 | 11-November-2020]
    Reply With Quote #4

    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 is offline
    user2000
    Member
    Join Date: Nov 2015
    Location: Peru - Lima
    Old 11-11-2020 , 15:28   Re: [L4D2] Weapons Skins Switch [v1.0.0 | 11-November-2020]
    Reply With Quote #5

    making a video would be better to make my brain understand
    user2000 is offline
    user2000
    Member
    Join Date: Nov 2015
    Location: Peru - Lima
    Old 11-11-2020 , 16:49   Re: [L4D2] Weapons Skins Switch [v1.0.1 | 11-November-2020]
    Reply With Quote #6

    apparently works fine

    thanks
    user2000 is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 12-10-2021 , 15:09   Re: [L4D2] Weapons Skins Switch [v1.0.1 | 11-November-2020]
    Reply With Quote #7

    lol IN_USE is a status that isnt IN_USE key
    __________________
    NoroHime is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


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


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