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

[L4D2] Set Weapon Clip To Empty When Reloading v1.6【Final】


Post New Thread Reply   
 
Thread Tools Display Modes
Author
little_froy
Senior Member
Join Date: May 2021
Plugin ID:
8278
Plugin Version:
1.6
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    game play
    Old 11-09-2022 , 09:18   [L4D2] Set Weapon Clip To Empty When Reloading v1.6【Final】
    Reply With Quote #1

    Description
    • Set weapon clip to empty when reloading.
    • Idea from [L4D & L4D2] Pistol Reload.
    • Could fix issue that clip will not be empty when reloading, if enabled infinite reserve ammo by cvars below:
      PHP Code:
      sm_cvar ammo_assaultrifle_max "-2"
      sm_cvar ammo_autoshotgun_max "-2"
      sm_cvar ammo_huntingrifle_max "-2"
      sm_cvar ammo_shotgun_max "-2"
      sm_cvar ammo_smg_max "-2"
      sm_cvar ammo_sniperrifle_max "-2"
      sm_cvar ammo_m60_max "-2"
      sm_cvar ammo_grenadelauncher_max "-2" 
    • Customizable for each weapon.
    • Not works for shotguns.

    Commands
    • empty_clip_when_reloading_reload
      :reload config data from file.

    Original configs
    • a config data named "empty_clip_when_reloading.cfg" will automatically spawn at sourcemod/data/.
    • 1 = enable, 0 = disable.

    Spoiler


    Note
    • there will be a delay between server side set the clip and client side show it, based on ping.


    Change log
    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (empty_clip_when_reloading.sp - 178 views - 4.0 KB)

    Last edited by little_froy; 02-06-2023 at 10:43.
    little_froy is offline
    little_froy
    Senior Member
    Join Date: May 2021
    Old 11-26-2022 , 08:10   Re: [L4D2] Set Weapon Clip To Empty When Reloading v1.2.0【2022-11-26】
    Reply With Quote #2

    Code:
    1.2.0 (2022-11-26:
    try to fix sometimes reloaded clip disappear.

    Last edited by little_froy; 11-26-2022 at 08:10.
    little_froy is offline
    superfruit86
    New Member
    Join Date: Apr 2023
    Old 06-19-2023 , 00:08   Re: [L4D2] Set Weapon Clip To Empty When Reloading v1.6【Final】
    Reply With Quote #3

    I'm sorry, if this a stupid comment. Could you explain what this mod does as if I'm 12? "Set weapon clip to empty" what does it mean to empty? To 0 bullets? Isn't this how the game already works?
    superfruit86 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 02:22.


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