srcdslab / sm-plugin-BossHUD

Display health for boss and breakable entities
1 stars 4 forks source link

Feat: Plugin cleanup #25

Closed notkoen closed 1 month ago

notkoen commented 2 months ago

The goal of this pull request is to clean up the plugin and remove unnecessary or unused features. Because CS:GO is now considered legacy and no longer has many active servers, CSGO support was dropped. I am open to discussing and working on the changes.

Changes in this pull request:

notkoen commented 2 months ago

CC @maxime1907 @Rushaway

Rushaway commented 2 months ago

#L903: Instead of performing this here, better to perform this on OnAllPluginsLoaded, OnLibraryAdded, OnLibraryRemoved It will reduce the numbers of calls. Like here

Rushaway commented 2 months ago

We can also maybe use GetExtensionFileStatus to know if the native for SDKHook_OnEntitySpawned is available and set the result as a bool. It will reduce the numbers of calls aswell since OnEntityCreated and OnEntityDestroyed are super expensive