Implemented amb584 - CGlobalEntityList support in SDKTools
Also added FindEntityByClassname native to start this off --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401246
This commit is contained in:
@@ -36,6 +36,7 @@ enum SDKCallType
|
||||
SDKCall_Entity, /**< CBaseEntity call */
|
||||
SDKCall_Player, /**< CBasePlayer call */
|
||||
SDKCall_GameRules, /**< CGameRules call */
|
||||
SDKCall_EntityList, /**< CGlobalEntityList call */
|
||||
};
|
||||
|
||||
enum SDKLibrary
|
||||
|
||||
@@ -104,6 +104,17 @@ native ForcePlayerSuicide(client);
|
||||
*/
|
||||
native SlapPlayer(client, health=5, bool:sound=true);
|
||||
|
||||
/**
|
||||
* Searches for an entity by classname.
|
||||
*
|
||||
* @param startEnt The entity index to begin searching from.
|
||||
* Use -1 to start from the first entity.
|
||||
* @param classname Classname of the entity to find.
|
||||
* @return Entity index >= 0 if found, -1 otherwise.
|
||||
* @error Lack of mod support.
|
||||
*/
|
||||
native FindEntityByClassname(startEnt, const String:classname[]);
|
||||
|
||||
/**
|
||||
* Returns the client's eye angles.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user