View Single Post
Cieniu97
Junior Member
Join Date: Sep 2021
Location: Poland
Old 10-10-2021 , 12:22   Re: TF2 Get entity of fired projectile
Reply With Quote #4

After digging into this hot mess of netprops i found this

SOLUTION:
PHP Code:
int launcherEnt GetEntPropEnt(projectileEntProp_Send"m_hLauncher");
int originalLauncherEnt GetEntPropEnt(projectileEntProp_Send"m_hOriginalLauncher"); 
Both of them seems to work. Both return entity index of weapon that fired projectile.
I don't know the difference between those two so step carefully future readers.
Cieniu97 is offline