fixed some bugs with edicts and players

added classname retrieval functions

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40562
This commit is contained in:
David Anderson
2007-03-02 01:56:56 +00:00
parent a0ae2a5b16
commit bbb373297f
2 changed files with 83 additions and 7 deletions
+23 -1
View File
@@ -106,4 +106,26 @@ native GetEdictFlags(edict);
* @noreturn
* @error Invalid edict index.
*/
native SetEdictFlags(edict, flags);
native SetEdictFlags(edict, flags);
/**
* Retrieves an edict classname.
*
* @param edict Index of the entity.
* @param clsname Buffer to store the classname.
* @param maxlength Maximum length of the buffer.
* @return True on success, false if there is no classname set.
*/
native bool:GetEdictClassname(edict, String:clsname[], maxlength);
/**
* Retrieves an entity's networkable serverclass name.
* This is not the same as the classname and is used for networkable state changes.
*
* @param edict Index of the entity.
* @param clsname Buffer to store the serverclass name.
* @param maxlength Maximum lnegth of the buffer.
* @return True on success, false if the edict is not networkable.
* @error Invalid edict index.
*/
native bool:GetEntityNetClass(edict, String:clsname[], maxlength);