Raised This Month: $ Target: $400
 0% 

[L4D2] Upgrade Ammo Block - Grenade Launcher (1.4) [10-May-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6778
Plugin Version:
1.4
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Blocks the Grenade Launcher from picking up incendiary or explosive upgrade ammo.
    Old 10-26-2019 , 20:01   [L4D2] Upgrade Ammo Block - Grenade Launcher (1.4) [10-May-2020]
    Reply With Quote #1



    Related Plugins:

    About:
    • Block the Grenade Launcher from picking up explosive or incendiary ammo.


    Thanks:
    • larrybrains - For the idea and request.


    CVars:

    Saved to l4d2_upgrade_block.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d2_upgrade_block_allow "1"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d2_upgrade_block_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d2_upgrade_block_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d2_upgrade_block_modes_tog "0"

    // When ammo pickup is blocked set upgrade pack glow to: 0=Off. 1=On.
    l4d2_upgrade_block_glow "0"

    // Prevent grenade launchers picking up ammo from: 1=Explosive Ammo. 2=Incendiary Ammo. 3=Both.
    l4d2_upgrade_block_type "2"

    // Upgrade Block plugin version.
    l4d2_upgrade_block_version 

    Changes:
    Code:
    1.4 (10-May-2020)
        - Blocked test commands.
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
        - Various optimizations and fixes.
    
    1.3 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.2 (30-Oct-2019)
        - Fixed glow not turning off after map transition or when a new upgrade pack is spawned.
    
    1.1 (28-Oct-2019)
        - Added cvar "l4d2_upgrade_block_glow" to turn glow on/off.
    
    1.0 (27-Oct-2013)
        - Initial release.

    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_upgrade_block.sp - 740 views - 12.6 KB)
    __________________

    Last edited by Silvers; 05-10-2020 at 08:24.
    Silvers is offline
    strikeraot
    Senior Member
    Join Date: Dec 2018
    Location: Viet Nam
    Old 10-26-2019 , 22:51   Re: [L4D2] Upgrade Block - Grenade Launcher (1.0) [27-Oct-2019]
    Reply With Quote #2

    finally someone made this
    strikeraot is offline
    larrybrains
    Senior Member
    Join Date: May 2017
    Old 10-27-2019 , 17:45   Re: [L4D2] Upgrade Block - Grenade Launcher (1.0) [27-Oct-2019]
    Reply With Quote #3

    Just tested this on my server and it works great!

    I have one request if it is simple to do, but not a big deal if not. Would you be able to make it so the ammo pack doesn't glow for survivors that are holding the grenade launcher?

    Thanks again for making this.
    larrybrains is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-28-2019 , 09:09   Re: [L4D2] Upgrade Ammo Block - Grenade Launcher (1.1) [28-Oct-2019]
    Reply With Quote #4

    Quote:
    Originally Posted by larrybrains View Post
    I have one request if it is simple to do, but not a big deal if not. Would you be able to make it so the ammo pack doesn't glow for survivors that are holding the grenade launcher?
    Done.

    The method is a bit hackish. I hope it doesn't conflict with upgrade pack bug fixes on 8+ player servers.
    __________________

    Last edited by Silvers; 10-28-2019 at 09:09.
    Silvers is offline
    larrybrains
    Senior Member
    Join Date: May 2017
    Old 10-29-2019 , 18:21   Re: [L4D2] Upgrade Ammo Block - Grenade Launcher (1.1) [28-Oct-2019]
    Reply With Quote #5

    Quote:
    Originally Posted by Silvers View Post
    Done.

    The method is a bit hackish. I hope it doesn't conflict with upgrade pack bug fixes on 8+ player servers.
    The new glow setting isn't working on my server. Would having spec spots be considered 8+ player?
    larrybrains is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-30-2019 , 15:45   Re: [L4D2] Upgrade Ammo Block - Grenade Launcher (1.1) [28-Oct-2019]
    Reply With Quote #6

    Quote:
    Originally Posted by larrybrains View Post
    The new glow setting isn't working on my server. Would having spec spots be considered 8+ player?
    Thanks fixed. Spec slots shouldn't be a problem.

    Quote:
    1.2 (30-Oct-2019)
    - Fixed glow not turning off after map transition or when a new upgrade pack is spawned.

    When the [L4D2] Upgrade packs BUG FIX extension is installed it might conflict as they both modify the same value, I'm not sure if they work together I haven't looked closely.
    __________________
    Silvers is offline
    Shadowysn
    Senior Member
    Join Date: Sep 2015
    Location: Location:
    Old 11-19-2019 , 05:11   Re: [L4D2] Drop Empty Grenade Launcher
    Reply With Quote #7

    If the grenade launcher literally can't be used again after emptying then might as well make it drop like the M60.

    This plugin makes the grenade launcher drop and become an unusable temporary prop upon emptying all it's ammo.
    EDIT: Updated to Version 1.0.2, better code optimization and updated for SM 1.11, but should work on SM 1.10.
    Fixed throw force of the prop. In 1.0.0 it used to just drop unceremoniously on the floor with no velocity.
    Attached Files
    File Type: sp Get Plugin or Get Source (DropGrenadeLauncher.sp - 192 views - 4.9 KB)
    __________________
    ragdoll spam, that is all

    Steam profile, where I game, obviously.
    Youtube channel, where I do Stick Death Maze animations and some other stuff.
    no plugin requests, sorry


    My Plugins:
    -search list-
    Modified Plugins:
    1 | 2 | 3 | 4

    Last edited by Shadowysn; 01-06-2022 at 02:46.
    Shadowysn is offline
    rvr
    New Member
    Join Date: Jul 2023
    Old 08-24-2023 , 08:55   Re: [L4D2] Upgrade Ammo Block - Grenade Launcher (1.4) [10-May-2020]
    Reply With Quote #8

    Hi Silvers,

    This plugin didn't work automatically on My Survival mode server. Everyone still take explosive or incendiary round even i already set my convar "l4d2_upgrade_block_type "3"".
    This is only work when I manually input that cvar on server console, but after map changes or round restart, plugins stop working and grenade launcher user can take upgrades again. so, I need to re-input cvar again to make it work as it should be.

    I'm using Sourcemod 1.11.0.6920 (linux).

    Also I'm using these plugins as well, I don't know if there's any conflict or not with your plugins.
    - [L4D2] Upgrade Pack Unlimited Use v1.1 [12-21] by NoroHime
    https://forums.alliedmods.net/showthread.php?t=335601
    - [L4D2]M60_GrenadeLauncher_patches[28/02/2023] by Lux
    https://forums.alliedmods.net/showthread.php?p=2694504

    Thanks in advance !
    rvr is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-26-2023 , 15:17   Re: [L4D2] Upgrade Ammo Block - Grenade Launcher (1.4) [10-May-2020]
    Reply With Quote #9

    Quote:
    Originally Posted by rvr View Post
    Hi Silvers
    Sounds like you need this plugin: Command & ConVar - Buffer Overflow Fixer
    __________________
    Silvers 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 13:57.


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