Skip to content

refactor: use SourceMod 1.12 methodmaps - #25

Merged
Rushaway merged 1 commit into
masterfrom
feat/methodmaps
Oct 21, 2026
Merged

Rushaway merged 1 commit into
masterfrom
feat/methodmaps

Conversation

@Rushaway

Copy link
Copy Markdown
Member

Summary

  • Replace legacy natives with their SourceMod 1.12 methodmap equivalents:
    • GameData (new GameData(), .GetOffset()/.GetAddress()/.GetKeyValue())
  • CloseHandle() / KillTimer() -> delete
  • INVALID_HANDLE -> null
  • Retype the affected handles and callback parameters (Handle -> ConVar, Event, Menu, KeyValues, ...)
  • Bump version: FixPlayerEquip.sp: 1.0.1 -> 1.0.2

Why

Methodmaps are the API SourceMod documents and maintains; the procedural natives only remain for backward compatibility. The typed handles also let the compiler catch handle misuse. No behaviour change is intended.

Test plan

  • Compiles with spcomp 1.12.0.7255 using the same dependencies as CI (no errors, no new warnings)
  • CI build passes
  • Smoke-test the plugin on a test server

🤖 Generated with Claude Code

- Replace legacy natives with their SourceMod 1.12 methodmap equivalents:
  - `GameData` (`new GameData()`, `.GetOffset()`/`.GetAddress()`/`.GetKeyValue()`)
- `CloseHandle()` / `KillTimer()` -> `delete`
- `INVALID_HANDLE` -> `null`
- Retype the affected handles and callback parameters (`Handle` -> `ConVar`, `Event`, `Menu`, `KeyValues`, ...)
- Bump version: `FixPlayerEquip.sp`: 1.0.1 -> 1.0.2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 21, 2026 03:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Rushaway
Rushaway merged commit f4d77de into master Oct 21, 2026
7 checks passed
@Rushaway
Rushaway deleted the feat/methodmaps branch October 21, 2026 12:44
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