forked from UNLOZE/sm-plugins
Remove template checking, doesnt work.
Consider GetGameTime() alternative?
This commit is contained in:
@@ -116,26 +116,6 @@ stock int Entity_GetParent(int entity)
|
||||
return GetEntPropEnt(entity, Prop_Data, "m_pParent");
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the template id of an entity.
|
||||
*
|
||||
* @param entity Entity index.
|
||||
* @return Template ID or -1
|
||||
*/
|
||||
stock int Entity_GetTempID(int entity)
|
||||
{
|
||||
char name[128];
|
||||
GetEntPropString(entity, Prop_Data, "m_iName", name, sizeof(name));
|
||||
|
||||
int index
|
||||
if ((index = FindCharInString(name, '&', true)) != -1)
|
||||
{
|
||||
return view_as<int>(StringToInt(name[index + 1]));
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Name of an entity.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user