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

Solved [BUG] SDKHooks_DropWeapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-28-2019 , 12:05   [BUG] SDKHooks_DropWeapon
Reply With Quote #1

I don't have a github account to report this error on the alliedmodders profile.

When calling SDKHooks_DropWeapon it never fires SDKHook_WeaponDrop or SDKHook_WeaponDropPost.

This can break plugins which rely on the drop forward.

Hopefully this can be fixed in the future, currently have to work around it.
__________________

Last edited by Silvers; 03-23-2022 at 11:42.
Silvers is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 03-23-2022 , 09:12   Re: [BUG] SDKHooks_DropWeapon
Reply With Quote #2

Just run in to the same problem. Did you find good solution for this?
`666 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-23-2022 , 09:27   Re: [BUG] SDKHooks_DropWeapon
Reply With Quote #3

https://github.com/alliedmodders/sou...hooks.inc#L437

1.11 seems to have an option to bypass this. By default it's set to 'true' (how existing behavior is) - I think most plugins want to change this to false and recompile. Haven't tested but I'm assuming this change is for this issue.
__________________
Silvers is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 03-23-2022 , 10:48   Re: [BUG] SDKHooks_DropWeapon
Reply With Quote #4

Thanks. Didn't work for me.
`666 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-27-2022 , 09:52   Re: [BUG] SDKHooks_DropWeapon
Reply With Quote #5

Show your code.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 04-06-2022 , 07:56   Re: [BUG] SDKHooks_DropWeapon
Reply With Quote #6

Thanks, but I can't remember what I needed for now because I was working on several plugins. I only remember that I ended up finishing the plugin without needing a drop hook.
`666 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 10:33.


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