Skip to content

Conversation

@skuzzis
Copy link
Member

@skuzzis skuzzis commented Oct 29, 2025

This pull request introduces several new features and improvements to the core event and player management systems, as well as various refactorings for command handling and service registration. The most notable changes include the addition of new event types and hooks, enhanced player targeting logic, and improvements to command processing and helper utilities.

Event System Enhancements:

  • Added support for a new OnWeaponServicesCanUseHook event, including its event class, publisher, and subscriber logic, allowing plugins to intercept and modify weapon usage logic. [1] [2] [3] [4]
  • Extended OnItemServicesCanAcquireHookEvent to include a nullable WeaponVData property, providing more contextual data to event handlers.

Player Targeting Improvements:

  • Implemented the FindTargettedPlayers method in PlayerManagerService, supporting advanced targeting (e.g., by team, alive status, bots, SteamID, and name), and added a utility to convert legacy SteamIDs to SteamID64.

Command Handling Refactors:

  • Refactored command event handling to use a new CCommand-based approach, replacing the previous string-based command name and arguments with a more robust structure, and updated related logic in CommandTrackerManager. [1] [2] [3] [4] [5]

Helpers and Service Registration:

  • Added a new HelpersService implementing the IHelpers interface, with methods for retrieving weapon data, and registered it in the core DI container for plugin access. [1] [2] [3] [4] [5] [6] [7]

Native Interop:

  • Introduced a new native function pointer pGetWeaponCSDataFromKey in GameFunctions to facilitate weapon data lookups from native code.

These changes collectively improve the flexibility and extensibility of the core framework, especially for plugin developers targeting advanced gameplay and event scenarios.

@skuzzis skuzzis merged commit fd19f16 into master Oct 30, 2025
18 checks passed
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.

4 participants