Raised This Month: $51 Target: $400
 12% 

[TF2] Projectile stuffs


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Rcki
Junior Member
Join Date: Oct 2015
Old 07-16-2018 , 14:44   [TF2] Projectile stuffs
Reply With Quote #1

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 !
Rcki is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode