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

[L4D2] Switch Upgrade Ammo Types (1.29) [07-Nov-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-10-2023 , 09:28   Re: [L4D2] Switch Upgrade Ammo Types (1.20) [06-Nov-2022]
Reply With Quote #61

Because you cannot switch to a primary weapon if there is no ammo for it?

Edit:
Next version will switch to upgraded ammo if available when stock ammo has depleted.
__________________

Last edited by Silvers; 01-10-2023 at 11:47.
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-20-2023 , 08:43   Re: [L4D2] Switch Upgrade Ammo Types (1.21) [20-Jan-2023]
Reply With Quote #62

Code:
1.21 (20-Jan-2023)
    - Plugin now switches to an upgraded ammo type if available, when stock ammo is depleted. Thanks to "swiftswing1" for reporting.
    - Plugin now supports dynamic shotgun weapon clip sizes. Optionally uses Left4DHooks to detect clip size.
__________________
Silvers is offline
LindaFelicia
New Member
Join Date: Nov 2022
Location: China
Old 03-22-2023 , 00:37   Re: [L4D2] Switch Upgrade Ammo Types (1.24) [19-Feb-2023]
Reply With Quote #63

Code:
L 03/20/2023 - 17:35:18: SourceMod error session started
L 03/20/2023 - 17:35:18: Info (map "zc_m4") (file "/home/steam/L4D2/left4dead2/addons/sourcemod/logs/errors_20230320.log")
L 03/20/2023 - 17:35:18: [SM] Exception reported: Array index out-of-bounds (index 5, limit 4)
L 03/20/2023 - 17:35:18: [SM] Blaming: l4d2_switch_ammo.smx
L 03/20/2023 - 17:35:18: [SM] Call stack trace:
L 03/20/2023 - 17:35:18: [SM]   [1] Line 1225, l4d2_switch_ammo.sp::ReloadWeapon
L 03/20/2023 - 17:35:18: [SM]   [2] Line 942, l4d2_switch_ammo.sp::TimerFrameReload
L 03/20/2023 - 17:51:00: Error log file session closed.
Sorry, I wasn't on the server when this error happened, so I don't know how to reproduce it.

Last edited by LindaFelicia; 03-22-2023 at 06:11. Reason: google translate fix
LindaFelicia is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-31-2023 , 02:15   Re: [L4D2] Switch Upgrade Ammo Types (1.25) [31-Mar-2023]
Reply With Quote #64

Code:
1.25 (31-Mar-2023)
    - Fixed array out of bounds error. Thanks to "LindaFelicia" for reporting.
__________________
Silvers is offline
Black_Wolf
Junior Member
Join Date: Dec 2019
Location: Italy
Old 08-03-2023 , 01:52   Re: [L4D2] Switch Upgrade Ammo Types (1.25) [31-Mar-2023]
Reply With Quote #65

Unfortunately it breaks the grenade launcher, third person animation doesn't play, and something weird happens to the ammo count whenever you have to reload.
I tried with having it both enabled and disabled for the grenade launcher, no difference.
Note: no special ammo was loaded in the grenade launcher, and i was playing on local.

Last edited by Black_Wolf; 08-03-2023 at 02:49.
Black_Wolf is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-05-2023 , 12:53   Re: [L4D2] Switch Upgrade Ammo Types (1.25) [31-Mar-2023]
Reply With Quote #66

Quote:
Originally Posted by Black_Wolf View Post
Unfortunately it breaks the grenade launcher, third person animation doesn't play, and something weird happens to the ammo count whenever you have to reload.
I tried with having it both enabled and disabled for the grenade launcher, no difference.
Note: no special ammo was loaded in the grenade launcher, and i was playing on local.
Code:
1.26 (05-Sep-2023)
    - Fixed the Grenade Launcher reloading in 3rd person being broken. Thanks to "Black_Wolf" for reporting.
Hopefully this fixes the issue without introducing more bugs. I didn't have time to test much.
__________________
Silvers is offline
Proaxel
Member
Join Date: Oct 2014
Old 09-16-2023 , 11:02   Re: [L4D2] Switch Upgrade Ammo Types (1.26) [05-Sep-2023]
Reply With Quote #67

Found a bug: laser sight boxes despawn after the first person uses them. The despawning stops when this plugin is unloaded/removed.

Video: https://youtu.be/xLO9l98vSoA
Proaxel is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-16-2023 , 19:12   Re: [L4D2] Switch Upgrade Ammo Types (1.26) [05-Sep-2023]
Reply With Quote #68

Quote:
Originally Posted by Proaxel View Post
Found a bug: laser sight boxes despawn after the first person uses them. The despawning stops when this plugin is unloaded/removed.

Video: https://youtu.be/xLO9l98vSoA
This is what happens when I don't have time for SourceMod and release without comparing previous and new version. I left debug option enabled.

Code:
1.27 (17-Sep-2023)
    - Fixed the last update accidentally enabling unlimited usage of upgrade ammo piles and removing laser spawns. Thanks to "Proaxel" for reporting.
__________________
Silvers is offline
Proaxel
Member
Join Date: Oct 2014
Old 09-17-2023 , 12:19   Re: [L4D2] Switch Upgrade Ammo Types (1.27) [17-Sep-2023]
Reply With Quote #69

Thanks for the fix!

I have an error to report, albeit I think it looks more like it's more to do with some weirdness with Drakogas's Autoreload plugin rather than this plugin:

Code:
L 09/17/2023 - 00:37:22: [SM] Exception reported: Property "m_upgradeBitVec" not found (entity 229/weapon_spitter_claw)
L 09/17/2023 - 00:37:22: [SM] Blaming: l4d2_switch_ammo.smx
L 09/17/2023 - 00:37:22: [SM] Call stack trace:
L 09/17/2023 - 00:37:22: [SM]   [0] GetEntProp
L 09/17/2023 - 00:37:22: [SM]   [1] Line 1388, /home/forums/content/files/8/5/7/7/8/197223.attach::GetPlayerAmmo
L 09/17/2023 - 00:37:22: [SM]   [2] Line 492, /home/forums/content/files/8/5/7/7/8/197223.attach::IsAllowed
L 09/17/2023 - 00:37:22: [SM]   [3] Line 443, /home/forums/content/files/8/5/7/7/8/197223.attach::OnConfigsExecuted
L 09/17/2023 - 00:37:22: [SM]   [5] ServerExecute
L 09/17/2023 - 00:37:22: [SM]   [6] Line 510, H:\_To_games\Left4Dead_2\My_mods\Admin-Security\ReloadPlugins\scripting\autoreload.sp::Timer_ReloadDelayed
Proaxel is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-17-2023 , 12:23   Re: [L4D2] Switch Upgrade Ammo Types (1.27) [17-Sep-2023]
Reply With Quote #70

Thanks, will fix in the future, just needs a team check. Bug is rarely going to occur since it's only when late loading or enabling the plugin during gameplay.
__________________
Silvers 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 17:07.


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