View Single Post
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-21-2019 , 15:26   Re: How to hook molotov touch (explosion)?
Reply With Quote #5

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
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline