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

[L4D2] Weapon Drop Glow Fix [v1.0.3 | 25-December-2021]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7393
Plugin Version:
1.0.3
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    21 
    Plugin Description:
    Fix scavenge gascan glow disappearing when a player dies while holding it
    Old 11-27-2020 , 22:03   [L4D2] Weapon Drop Glow Fix [v1.0.3 | 25-December-2021]
    Reply With Quote #1

    L4D2 ONLY

    Description

    This bug has been reported by HarryPotter.

    Some items like scavenge gascans and cola bottles have a noticeable glow in some game events (scavenge / Whitaker's cola).

    By default, when a survivor picks up an item, the game deactivates the glow of the equipped entity and when you drop it, the glow is restored.

    But, if a survivor instantly dies while holding these items, then it's glow doesn't return, this may also happen if you use the "take a break" option.

    It explains why sometimes I feel that some gascans seem "missing" from the maps.

    This plugin returns the glow every time a holding item is dropped.

    Features
    • Returns the glow to an item when it is dropped.

    Steps to Reproduce
    • Go to some map that has scavenge events (c1m4_atrium/c6m3_port/c14m2_lighthouse) or play a map in scavenge gamemode.
    • Hold a scavenge gascan.
    --------------------------------------------------
    • Die
    OR
    • Use the "take a break".
    • Wait until the bot drops the gascan.
    • Join back.
    --------------------------------------------------
    • Check the gascan glow, it disappeared.

    Cvars

    A configuration file named "l4d2_weapon_drop_glow_fix.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_weapon_drop_glow_fix_enable "1" 
    Admin Commands
    • sm_print_cvars_l4d2_weapon_drop_glow_fix => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • I don't know if there is some side effect on reactivating the glow on pickup, but from my tests, seems safe.
    • This bug is more noticeable on scavenge gascans and cola bottle events, but the fix is applied for all equipable items.
    • This fix also applies to some weapon drop plugins (e.g [L4D2] Weapon Drop) that doesn't return the glow back.

    Thank you!


    Related Plugins

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

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

    Last edited by Marttt; 01-15-2023 at 12:18.
    Marttt is offline
     



    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 03:52.


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