Raised This Month: $ Target: $400
 0% 

[L4D2] Block Equipping Same Melee [v1.0.3 | 08-July-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7364
Plugin Version:
1.0.3
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Prevents picking up an already equipped melee weapon
    Old 11-04-2020 , 16:02   [L4D2] Block Equipping Same Melee [v1.0.3 | 08-July-2023]
    Reply With Quote #1

    L4D2 ONLY

    Description

    This plugin replicates the behavior of not allowing to pickup the same melee weapon twice.

    In vanilla game, all weapons and carryables works like that, except for melees.

    Features
    • Block picking up a melee if the same is already equipped.
    • Allow ignoring the block for melees that are the same but have different skins.

    Cvars

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

    PHP Code:
    // Check if both melees are the same but have different skins to allow being equipped. 
    // 0 = OFF, 1 = ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_block_equip_same_melee_check_skin "1"

    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_block_equip_same_melee_enable "1" 
    Admin Commands
    • sm_print_cvars_l4d2_same_melee_equip_block => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • L4D2 only cause there are no melees in L4D1.

    Thank you!
    • HarryPotter - for requesting a way to pickup the melee when the skin is different.

    Related Plugins

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

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

    Last edited by Marttt; 07-08-2023 at 12:52.
    Marttt is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 11-04-2020 , 20:54   Re: [L4D2] Block Equipping Same Melee [v1.0.0 | 04-November-2020]
    Reply With Quote #2

    what if different skin
    example: cricket bat and golden cowbar
    __________________
    HarryPotter is offline
    Reply



    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 07:08.


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