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

[L4D & L4D2] Reload Fix - Max Clip Size (1.5) [21-Apr-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-17-2021 , 15:11   Re: [L4D & L4D2] Reload Fix - Max Clip Size (1.1a) [24-Sep-2020]
Reply With Quote #21

Hmm interesting, hadn't noticed it broke since the signature was still valid. Thanks

Edit: updated.
__________________

Last edited by Silvers; 06-17-2021 at 15:26.
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-29-2021 , 11:26   Re: [L4D & L4D2] Reload Fix - Max Clip Size (1.2) [29-Jun-2021]
Reply With Quote #22

Code:
1.2 (29-Jun-2021)
    - L4D2: Added support for the Magnum "weapon_pistol_magnum" pistol.
Only noticed this when I decided to change all ammo amounts on my server.
__________________
Silvers is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 07-04-2021 , 20:20   Re: [L4D & L4D2] Reload Fix - Max Clip Size (1.2) [29-Jun-2021]
Reply With Quote #23

Hi, silvers, with an enlarged ammo clip, I have problems with animation. Could you add more weapon_smg_mp5 ?

Last edited by Alexmy; 07-04-2021 at 20:21.
Alexmy is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-05-2021 , 02:03   Re: [L4D & L4D2] Reload Fix - Max Clip Size (1.3) [05-Jul-2021]
Reply With Quote #24

Quote:
Originally Posted by Alexmy View Post
Hi, silvers, with an enlarged ammo clip, I have problems with animation. Could you add more weapon_smg_mp5 ?
Thanks, I think that's the last missing one.

Code:
1.3 (05-Jul-2021)
    - L4D2: Added support for the "weapon_smg_mp5" weapon. Thanks to "Alexmy" for reporting.
__________________
Silvers is offline
vikingo12
Member
Join Date: Nov 2018
Old 09-06-2021 , 17:13   Re: [L4D & L4D2] Reload Fix - Max Clip Size (1.3) [05-Jul-2021]
Reply With Quote #25

L 09/06/2021 - 21:20:57: [SM] Exception reported: Failed to find signature: CTerrorGun::Reload
L 09/06/2021 - 21:20:57: [SM] Blaming: optional\l4d_reload_fix.smx
L 09/06/2021 - 21:20:57: [SM] Call stack trace:
L 09/06/2021 - 21:20:57: [SM] [0] SetFailState
L 09/06/2021 - 21:20:57: [SM] [1] Line 185, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\l4d_reload_fix.sp::OnPluginStart
vikingo12 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-06-2021 , 17:38   Re: [L4D & L4D2] Reload Fix - Max Clip Size (1.3) [05-Jul-2021]
Reply With Quote #26

Replace the "CTerrorGun::Reload" signature with this one and report back if it works.

Code:
			"CTerrorGun::Reload"
			{
				"library"		"server"
				"linux"			"@_ZN10CTerrorGun6ReloadEv"
				"windows"		"\x2A\x2A\x2A\x2A\x2A\x2A\x53\x56\x8B\x2A\xE8\x2A\x2A\x2A\x2A\x8B\x2A\x85\x2A\x0F\x84\x2A\x2A\x2A\x2A\x8B\x2A\x2A\x2A\x2A\x2A\x83"
				/* ? ? ? ? ? ? 53 56 8B ? E8 ? ? ? ? 8B ? 85 ? 0F 84 ? ? ? ? 8B ? ? ? ? ? 83 */
				/* VTable method. Using "!player->CanAttack()" 1 call below. */
			}
__________________
Silvers is offline
vikingo12
Member
Join Date: Nov 2018
Old 09-07-2021 , 07:31   Re: [L4D & L4D2] Reload Fix - Max Clip Size (1.3) [05-Jul-2021]
Reply With Quote #27

Quote:
Originally Posted by Silvers View Post
Replace the "CTerrorGun::Reload" signature with this one and report back if it works.

Code:
			"CTerrorGun::Reload"
			{
				"library"		"server"
				"linux"			"@_ZN10CTerrorGun6ReloadEv"
				"windows"		"\x2A\x2A\x2A\x2A\x2A\x2A\x53\x56\x8B\x2A\xE8\x2A\x2A\x2A\x2A\x8B\x2A\x85\x2A\x0F\x84\x2A\x2A\x2A\x2A\x8B\x2A\x2A\x2A\x2A\x2A\x83"
				/* ? ? ? ? ? ? 53 56 8B ? E8 ? ? ? ? 8B ? 85 ? 0F 84 ? ? ? ? 8B ? ? ? ? ? 83 */
				/* VTable method. Using "!player->CanAttack()" 1 call below. */
			}
seems to work, no errors in logs
vikingo12 is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 12-08-2021 , 22:35   Re: [L4D & L4D2] Reload Fix - Max Clip Size (1.3a) [08-Sep-2021]
Reply With Quote #28

[] sm plugins load l4d_reload_fix
[SM] Plugin l4d_reload_fix.smx failed to load: Native "L4D2_GetIntWeaponAttribute" was not found.
im sure my gamedata not error print
update:
lol my wrong, now installed dhooks direct
__________________

Last edited by NoroHime; 12-08-2021 at 22:39. Reason: solved
NoroHime is offline
ChooMcoo
New Member
Join Date: Sep 2023
Old 09-07-2023 , 17:12   Re: [L4D & L4D2] Reload Fix - Max Clip Size (1.3a) [08-Sep-2021]
Reply With Quote #29

I have personally edited various weapon script files and inserted them into my server via VPK, and this plugin does not fix their reloads. The server loads the plugin when I check the list, so I was wondering if maybe the plugin needs to be updated to catch up with the current status of DHooks in SourceMod 1.11? As I see you say DHooks (Experimental Dynamic Detour support) extension is a requirement even though it was merged into SourceMod last year. Any help would be appreciated.
ChooMcoo is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 09-07-2023 , 17:20   Re: [L4D & L4D2] Reload Fix - Max Clip Size (1.3a) [08-Sep-2021]
Reply With Quote #30

Now you are incorporating vscripts to modify weapons, which would highly depend on the implementation of the weapons. This plugin hooks the in game function which may not be called from vscript.
__________________
Spirit_12 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 06:01.


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