sdkhooks: add OnEntitySpawned fwd. (#1078)

* Add OnEntitySpawned to SDKHooks.

* nitpicking

* Add CapabilityProvider SDKHook_OnEntitySpawned

* (unrelated) nits

* nit relocation

* unqualified relocation - my mistake.

Co-authored-by: Kyle Sanderson <[email protected]>
This commit is contained in:
BotoX
2020-08-06 20:01:07 -07:00
committed by GitHub
co-authored by Kyle Sanderson
parent 510bd261f8
commit 7bab9cc344
4 changed files with 93 additions and 11 deletions
+10
View File
@@ -347,6 +347,16 @@ typeset SDKHookCB
*/
forward void OnEntityCreated(int entity, const char[] classname);
/**
* When an entity is spawned
*
* @param entity Entity index
* @param classname Class name
*
* @note Check for support at runtime using GetFeatureStatus on SDKHook_OnEntitySpawned capability.
*/
forward void OnEntitySpawned(int entity, const char[] classname);
/**
* When an entity is destroyed
*