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

[L4D1 Only] Ammo refill fix (10-jan-2021)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Plugin ID:
7415
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Fixes problem grabbing incorrect ammunation amount.
    Old 12-09-2020 , 22:42   [L4D1 Only] Ammo refill fix (10-jan-2021)
    Reply With Quote #1

    WELCOME TO MY POST!

    As I said above, this plugin fixes incorrect ammo filling on grabbing from ammo piles.
    This bug was fixed on L4D2 but it has been never fixed on L4D1.

    Demostrative video will be available as soon as it get uploaded:


    Changelog:
    Current Version 1.1: 10-JAN-2021
    - Improved ammo refill method.

    Previous versions:
    Spoiler


    REQUERIMENTS:
    Sourcemod >=1.10
    SDKHooks
    SDKTools

    INSTALLATION:
    Place l4d1_ammo_refill_fix.smx on /left4dead/addons/sourcemod/plugins

    CONVARS:
    No convars yet.

    CONSOLE COMMANDS:
    No console commands needed.

    ADMIN COMMANDS:
    No admin commands needed.

    KNOWN BUGS:
    None at the moment. Please, report here

    TODO LIST:
    Compatibility with "Limited ammo piles plugin" (code is /*commented*/, uncomment it to test it).
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d1_ammo_refill_fix.sp - 477 views - 3.6 KB)

    Last edited by axelnieves2012; 01-13-2021 at 22:04.
    axelnieves2012 is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 12-12-2020 , 13:05   Re: [L4D1 Only] Ammo refill fix (10-dec-2020)
    Reply With Quote #2

    Your solution is to give client another weapon.
    Perhaps can reference these code from rotoblin2. which provides another solution to fix ammo
    __________________

    Last edited by HarryPotter; 09-21-2023 at 06:47.
    HarryPotter is offline
    axelnieves2012
    Senior Member
    Join Date: Oct 2014
    Location: Argentina
    Old 12-12-2020 , 18:29   Re: [L4D1 Only] Ammo refill fix (10-dec-2020)
    Reply With Quote #3

    Quote:
    Originally Posted by HarryPotter View Post
    Your solution is to give client another weapon.
    Perhaps can reference these old code from rotoblin2. which provides another solution to fix ammo
    I will improve my code on next release. This is a temp solution to this great problem.
    axelnieves2012 is offline
    axelnieves2012
    Senior Member
    Join Date: Oct 2014
    Location: Argentina
    Old 01-10-2021 , 19:08   Re: [L4D1 Only] Ammo refill fix (10-dec-2020)
    Reply With Quote #4

    New version 1.1 released!
    axelnieves2012 is offline
    kochiurun119
    BANNED
    Join Date: Sep 2014
    Location: GB
    Old 09-19-2023 , 07:39   Re: [L4D1 Only] Ammo refill fix (10-jan-2021)
    Reply With Quote #5

    I got error
    L 09/19/2023 - 180:47: Info (map "l4d_draxmap0") (file "D:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_202 30919.log")
    L 09/19/2023 - 180:47: [SM] Exception reported: Invalid convar handle 0 (error 4)
    L 09/19/2023 - 180:47: [SM] Blaming: l4d1_ammo_refill_fix.smx
    L 09/19/2023 - 180:47: [SM] Call stack trace:
    L 09/19/2023 - 180:47: [SM] [0] GetConVarInt
    L 09/19/2023 - 180:47: [SM] [1] Line 76, D:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d1_ ammo_refill_fix.sp::fixAmmo
    L 09/19/2023 - 180:47: [SM] [2] Line 45, D:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d1_ ammo_refill_fix.sp::OnEntityUse
    L 09/19/2023 - 180:59: [SM] Exception reported: Invalid convar handle 0 (error 4)
    kochiurun119 is offline
    Send a message via ICQ to kochiurun119 Send a message via AIM to kochiurun119 Send a message via Yahoo to kochiurun119 Send a message via Skype™ to kochiurun119
    axelnieves2012
    Senior Member
    Join Date: Oct 2014
    Location: Argentina
    Old 09-21-2023 , 06:31   Re: [L4D1 Only] Ammo refill fix (10-jan-2021)
    Reply With Quote #6

    Quote:
    Originally Posted by kochiurun119 View Post
    I got error
    L 09/19/2023 - 180:47: Info (map "l4d_draxmap0") (file "D:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_202 30919.log")
    L 09/19/2023 - 180:47: [SM] Exception reported: Invalid convar handle 0 (error 4)
    L 09/19/2023 - 180:47: [SM] Blaming: l4d1_ammo_refill_fix.smx
    L 09/19/2023 - 180:47: [SM] Call stack trace:
    L 09/19/2023 - 180:47: [SM] [0] GetConVarInt
    L 09/19/2023 - 180:47: [SM] [1] Line 76, D:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d1_ ammo_refill_fix.sp::fixAmmo
    L 09/19/2023 - 180:47: [SM] [2] Line 45, D:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d1_ ammo_refill_fix.sp::OnEntityUse
    L 09/19/2023 - 180:59: [SM] Exception reported: Invalid convar handle 0 (error 4)
    This plugin is for L4D1 only. Why are you using this on L4D2??????
    axelnieves2012 is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 09-21-2023 , 06:50   Re: [L4D1 Only] Ammo refill fix (10-jan-2021)
    Reply With Quote #7

    Quote:
    Originally Posted by kochiurun119 View Post
    I got error

    I don't think it should be fix in l4d2

    This ammo refill issue only in l4d1
    __________________

    Last edited by HarryPotter; 09-21-2023 at 06:50.
    HarryPotter is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 09-21-2023 , 07:27   Re: [L4D1 Only] Ammo refill fix (10-jan-2021)
    Reply With Quote #8

    Stange, I newer saw this bug and I can't reproduce on L4D1.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 09-21-2023 , 08:49   Re: [L4D1 Only] Ammo refill fix (10-jan-2021)
    Reply With Quote #9

    Quote:
    Originally Posted by Dragokas View Post
    Stange, I newer saw this bug and I can't reproduce on L4D1.
    Take smg -> 50/480 -> 10 bullet fired-> 40/480 -> try to take ammo
    -> (l4d1) still 40/480
    -> (l4d2) 40/490
    __________________
    HarryPotter is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 09-21-2023 , 09:25   Re: [L4D1 Only] Ammo refill fix (10-jan-2021)
    Reply With Quote #10

    Quote:
    -> (l4d1) still 40/480
    Yeah, I mean that. In l4d1 is not reproduced. Just one more time tried as you said, + reseted all convars to defaults.
    I didn't test l4d2.

    Or you mean 40/490 - is normal?
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 09-21-2023 at 09:27.
    Dragokas 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:35.


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