Yes, I mentioned it above.
Question is: if we take this option as hook, how to identify "inferno" created due to molotov explosion rather than another reason.
Code:
public void OnEntityCreated(int entity, const char[] classname)
{
if(StrEqual(classname, "inferno"))
{
PrintToChatAll("Inferno created");
int hOwner = GetEntPropEnt(entity, Prop_Data, "m_hOwnerEntity");
int hEffect = GetEntPropEnt(entity, Prop_Data, "m_hEffectEntity");
int iParent = GetEntProp(entity, Prop_Data, "m_iParentAttachment");
PrintToChatAll("Inferno owner is: %i, effect: %i, parent: %i", hOwner, hEffect, iParent);
Quote:
Inferno owner is: -1, effect: -1, parent: 0
|
__________________