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

[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 06-16-2022 , 04:52   Re: [L4D2] Switch Upgrade Ammo Types (1.13) [16-Jun-2022]
Reply With Quote #41

Code:
1.13 (16-Jun-2022)
    - Fixed a bug where you couldn't switch to stock ammo. Thanks to "Toranks" for reporting.
__________________
Silvers is offline
Shao
Senior Member
Join Date: Jan 2015
Old 08-11-2022 , 19:09   Re: [L4D2] Switch Upgrade Ammo Types (1.13) [16-Jun-2022]
Reply With Quote #42

Would it be possible to add a cvar for blocking switching ammo until the reload/actions are done? There is some bugs with deploying and switching too often while reloading that could be alleviated while balancing too.
Shao is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-12-2022 , 06:42   Re: [L4D2] Switch Upgrade Ammo Types (1.13) [16-Jun-2022]
Reply With Quote #43

Quote:
Originally Posted by Shao View Post
Would it be possible to add a cvar for blocking switching ammo until the reload/actions are done? There is some bugs with deploying and switching too often while reloading that could be alleviated while balancing too.
Yeah, what sort of bugs?

Done:
Code:
1.14 (12-Aug-2022)
    - Added cvar "l4d2_switch_ammo_reload" to wait for reloading to finish before switch ammo type. Requested by "Shao".
__________________

Last edited by Silvers; 08-12-2022 at 07:52.
Silvers is offline
Shao
Senior Member
Join Date: Jan 2015
Old 08-13-2022 , 11:45   Re: [L4D2] Switch Upgrade Ammo Types (1.13) [16-Jun-2022]
Reply With Quote #44

Quote:
Originally Posted by Silvers View Post
Yeah, what sort of bugs?
Like skipping reloads when deploying weapons or not having the weapon being forced to reload at all when switching ammo, in some cases I've seen extra ammo be given back or removed from players though much of all this doesn't happen at all if using the plugin in the way it's intended which is why I think it could be a good idea to prevent swapping ammo in the middle of any actions. Seems like switching to special forces the reload but going back to normal doesn't either, intentional maybe?

Last edited by Shao; 08-13-2022 at 11:47.
Shao is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-13-2022 , 11:58   Re: [L4D2] Switch Upgrade Ammo Types (1.13) [16-Jun-2022]
Reply With Quote #45

Quote:
Originally Posted by Shao View Post
Like skipping reloads when deploying weapons or not having the weapon being forced to reload at all when switching ammo, in some cases I've seen extra ammo be given back or removed from players though much of all this doesn't happen at all if using the plugin in the way it's intended which is why I think it could be a good idea to prevent swapping ammo in the middle of any actions. Seems like switching to special forces the reload but going back to normal doesn't either, intentional maybe?
More that I think it'll introduce bugs with ammo count to force the reload, but this is something I wanted to add in anyway. Edit: I've actually done it, added a gamedata file to call and reload weapon, but I need to test more before release.
__________________

Last edited by Silvers; 08-13-2022 at 12:29.
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-19-2022 , 01:06   Re: [L4D2] Switch Upgrade Ammo Types (1.15) [19-Aug-2022]
Reply With Quote #46

Code:
1.15 (19-Aug-2022)
    - Added GameData file and new feature to reload the gun when changing ammo types. Requested by "Shao".
    - Added cvar "l4d2_switch_ammo_guns" to control if the "Grenade Launcher" or "Rifle M60" ammo can be switched.
    - Changed cvar "l4d2_switch_ammo_reload" to control if shotguns should reload the whole clip or 1 round.
    - Now prevents swapping ammo until the weapon is ready to shoot.
    - Thanks to "Shao" and "Toranks" for testing.
__________________
Silvers is offline
kalmas77
Junior Member
Join Date: Sep 2021
Old 09-06-2022 , 01:24   Re: [L4D2] Switch Upgrade Ammo Types (1.16) [25-Aug-2022]
Reply With Quote #47

Plugin failed to compile! Please try contacting the author.

SourcePawn Compiler 1.9.0.6240
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2017 AlliedModders LLC

196374.attach(236) : warning 213: tag mismatch

3 Errors.
kalmas77 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-06-2022 , 04:23   Re: [L4D2] Switch Upgrade Ammo Types (1.16) [25-Aug-2022]
Reply With Quote #48

Quote:
Originally Posted by kalmas77 View Post
Plugin failed to compile! Please try contacting the author.

SourcePawn Compiler 1.9.0.6240
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2017 AlliedModders LLC

196374.attach(236) : warning 213: tag mismatch

3 Errors.
Thanks, changed to use SM 1.10 compiler.
__________________

Last edited by Silvers; 09-06-2022 at 04:28.
Silvers is offline
sonic155
Senior Member
Join Date: Mar 2019
Old 09-30-2022 , 05:13   Re: [L4D2] Switch Upgrade Ammo Types (1.16) [25-Aug-2022]
Reply With Quote #49

Anyway can i change it from { shift+R } to just holding R ?
sonic155 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-30-2022 , 12:29   Re: [L4D2] Switch Upgrade Ammo Types (1.17) [30-Sep-2022]
Reply With Quote #50

Code:
1.17 (30-Sep-2022)
    - Added cvar "l4d2_switch_ammo_keys" to control the key combination for reloading.
    - Setting the cvar as "2" will allow holding Reload to change ammo. Requested by "sonic155".
    - The source contains a "MAX_TIME_KEY_HOLD" define set at 0.5 which controls how long to hold reload.
__________________
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 16:55.


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