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:
Scott Ehlert
2007-08-01 07:18:58 +00:00
parent c611ba9ea5
commit bcc798e165
13 changed files with 222 additions and 104 deletions
+1
View File
@@ -36,6 +36,7 @@ enum SDKCallType
SDKCall_Entity, /**< CBaseEntity call */
SDKCall_Player, /**< CBasePlayer call */
SDKCall_GameRules, /**< CGameRules call */
SDKCall_EntityList, /**< CGlobalEntityList call */
};
enum SDKLibrary
+11
View File
@@ -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.
*