Is it possible to check what weapon shot a certain projectile? Currently I know how to check the classname of a projectile (I.E tf_projectile_pipe), but I'd like to figure out what gun shot out that projectile (loose cannon, normal gl, etc etc) Here's my code:
Code:
public OnEntityDestroyed(iEntity)
{
decl String:classname[64];
GetEntityClassname(iEntity, classname, sizeof(classname));
if((!strcmp(classname, "tf_projectile_pipe")))
{
//do somehing
}
}
I tried googling around, but I didn't find anything. Thanks in advance
!