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

[L4D2] Custom Reserve Ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author
zzhlmy
Junior Member
Join Date: Jan 2019
Plugin ID:
7349
Plugin Version:
1.0.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    [L4D2] Custom Reserve Ammo
    Unapprover:
    Reason for Unapproving:
    Errors reported and gone unfixed, author please request to re-approve the plugin if you update it
    Old 10-22-2020 , 09:45   [L4D2] Custom Reserve Ammo
    Reply With Quote #1

    Hey guys, this plugin can customize reserved ammo in L4D2, enjoy it.

    Update link:https://github.com/ZZHLMY/L4D2_CustomReserveAmmo
    Attached Files
    File Type: zip L4D2_CustomReserveAmmo.zip (12.4 KB, 687 views)

    Last edited by zzhlmy; 10-26-2020 at 09:25. Reason: Add m60 and grenade_launcher, fix error
    zzhlmy is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 10-23-2020 , 08:00   Re: L4D2 Custom Reserve Ammo
    Reply With Quote #2

    Got this error
    Code:
    L 10/23/2020 - 00:34:57: SourceMod error session started
    L 10/23/2020 - 00:34:57: Info (map "c1m2_streets") (file "C:\servers\kruffty\left4dead2\addons\sourcemod\logs\errors_20201023.log")
    L 10/23/2020 - 00:34:57: [SM] Exception reported: Element -1 is out of bounds (Prop m_iAmmo has 32 elements).
    L 10/23/2020 - 00:34:57: [SM] Blaming: L4D2_CustomReserveAmmo.smx
    L 10/23/2020 - 00:34:57: [SM] Call stack trace:
    L 10/23/2020 - 00:34:57: [SM]   [0] GetEntProp
    L 10/23/2020 - 00:34:57: [SM]   [1] Line 305, C:\Users\kruff\OneDrive\Desktop\L4D2_CustomReserveAmmo-main\addons\sourcemod\scripting\L4D2_CustomReserveAmmo.sp::SetLastReserveAmmo
    L 10/23/2020 - 00:34:57: [SM]   [2] Line 160, C:\Users\kruff\OneDrive\Desktop\L4D2_CustomReserveAmmo-main\addons\sourcemod\scripting\L4D2_CustomReserveAmmo.sp::OnWeaponEquipPost
    L 10/23/2020 - 00:34:57: [SM]   [4] EquipPlayerWeapon
    L 10/23/2020 - 00:34:57: [SM]   [5] Line 557, /home/forums/content/files/9/7/2/5/7/175547.attach::SwapItem
    L 10/23/2020 - 00:34:57: [SM]   [6] Line 505, /home/forums/content/files/9/7/2/5/7/175547.attach::Process
    L 10/23/2020 - 00:34:57: [SM]   [7] Line 417, /home/forums/content/files/9/7/2/5/7/175547.attach::OnPlayerRunCmd
    L 10/23/2020 - 00:42:25: Error log file session closed.

    Last edited by DarkDeviL; 01-31-2021 at 00:43. Reason: Added CODE tags
    Krufftys Killers is offline
    zzhlmy
    Junior Member
    Join Date: Jan 2019
    Old 10-26-2020 , 05:24   Re: L4D2 Custom Reserve Ammo
    Reply With Quote #3

    Quote:
    Originally Posted by Krufftys Killers View Post
    Got this error
    Code:
    L 10/23/2020 - 00:34:57: SourceMod error session started
    L 10/23/2020 - 00:34:57: Info (map "c1m2_streets") (file "C:\servers\kruffty\left4dead2\addons\sourcemod\logs\errors_20201023.log")
    L 10/23/2020 - 00:34:57: [SM] Exception reported: Element -1 is out of bounds (Prop m_iAmmo has 32 elements).
    L 10/23/2020 - 00:34:57: [SM] Blaming: L4D2_CustomReserveAmmo.smx
    L 10/23/2020 - 00:34:57: [SM] Call stack trace:
    L 10/23/2020 - 00:34:57: [SM]   [0] GetEntProp
    L 10/23/2020 - 00:34:57: [SM]   [1] Line 305, C:\Users\kruff\OneDrive\Desktop\L4D2_CustomReserveAmmo-main\addons\sourcemod\scripting\L4D2_CustomReserveAmmo.sp::SetLastReserveAmmo
    L 10/23/2020 - 00:34:57: [SM]   [2] Line 160, C:\Users\kruff\OneDrive\Desktop\L4D2_CustomReserveAmmo-main\addons\sourcemod\scripting\L4D2_CustomReserveAmmo.sp::OnWeaponEquipPost
    L 10/23/2020 - 00:34:57: [SM]   [4] EquipPlayerWeapon
    L 10/23/2020 - 00:34:57: [SM]   [5] Line 557, /home/forums/content/files/9/7/2/5/7/175547.attach::SwapItem
    L 10/23/2020 - 00:34:57: [SM]   [6] Line 505, /home/forums/content/files/9/7/2/5/7/175547.attach::Process
    L 10/23/2020 - 00:34:57: [SM]   [7] Line 417, /home/forums/content/files/9/7/2/5/7/175547.attach::OnPlayerRunCmd
    L 10/23/2020 - 00:42:25: Error log file session closed.
    okay, thanks for reply the error, I'll fix it soon

    Last edited by DarkDeviL; 01-31-2021 at 00:43. Reason: Added CODE tags (as above)
    zzhlmy is offline
    zzhlmy
    Junior Member
    Join Date: Jan 2019
    Old 10-26-2020 , 09:34   Re: L4D2 Custom Reserve Ammo
    Reply With Quote #4

    Quote:
    Originally Posted by HarryPotter View Post
    Good Job!
    You can add theses remaining weapons.
    PHP Code:
    weapon_grenade_launcher
    weapon_rifle_m60 
    weapon_grenade_launcher and weapon_rifle_m60 has been added now
    zzhlmy is offline
    AXVXA
    Junior Member
    Join Date: Jan 2020
    Old 04-12-2021 , 08:29   Re: [L4D2] Custom Reserve Ammo
    Reply With Quote #5

    Sometimes the number of ammunition is incorrect, and the number of pipebomb, vomitjar, and molotov will become too many.
    AXVXA is offline
    Jalsomino
    New Member
    Join Date: Oct 2021
    Old 12-15-2021 , 08:00   Re: [L4D2] Custom Reserve Ammo
    Reply With Quote #6

    Quote:
    Originally Posted by zzhlmy View Post
    Hey guys, this plugin can customize reserved ammo in L4D2, enjoy it.

    Update link:https://github.com/ZZHLMY/L4D2_CustomReserveAmmo
    All good but there is one bug: when you press R and character downloading and at this moment you press E (take ammo), its bugged and dont work. You take reserve ammo like Millitary and Scout

    weapons.
    Jalsomino is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 08-11-2022 , 17:48   Re: [L4D2] Custom Reserve Ammo
    Reply With Quote #7

    Sometimes the Ammo is incorrect.
    I pick up ak47, ammo = 1000
    then I pick up scout quickly, ammo still = 1000...
    __________________

    Last edited by HarryPotter; 08-11-2022 at 17:48.
    HarryPotter is offline
    Reply


    Thread Tools
    Display Modes

    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:14.


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