What's the difference between the inflictor_id and attacker_id arguments when hooking? Which should you use to detect if an entity is behind the damage?
Would I use:
Code:
if (inflictor_id == find_ent_by_class(-1, "trigger_hurt"))
or:
Code:
if (attacker_id == find_ent_by_class(-1, "trigger_hurt"))
And I'm also not sure about find_ent_by_class, is that an accurate use of it?