Skip to content

refactor(core): cleanup deprecated SM api usage#19

Merged
Rushaway merged 1 commit intomasterfrom
Rushaway-patch-1
Mar 18, 2026
Merged

refactor(core): cleanup deprecated SM api usage#19
Rushaway merged 1 commit intomasterfrom
Rushaway-patch-1

Conversation

@Rushaway
Copy link
Member

Description

Cleanup of deprecated and unnecessary SourceMod API usage across plugins.

Changes

  • Removed manual SDKUnhook — hooks are automatically removed on entity destruction per SDKHook documentation

References

  • SDKHook docs"Unhooked automatically upon destruction/removal of the entity"

Copilot AI review requested due to automatic review settings March 18, 2026 11:06
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the WeaponCleaner SourceMod plugin to remove redundant SDKHooks unhooking on client disconnect, aligning with SDKHook’s documented behavior (automatic unhook on entity destruction) and bumps the plugin version.

Changes:

  • Bump plugin version from 2.2.2 to 2.2.3.
  • Remove explicit SDKUnhook calls in OnClientDisconnect() for weapon drop/equip hooks.

@Rushaway Rushaway merged commit 7feeebd into master Mar 18, 2026
10 checks passed
@Rushaway Rushaway deleted the Rushaway-patch-1 branch March 18, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants