Raised This Month: $ Target: $400
 0% 

[TF2] Huntsman logic on other projectiles


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheDarkStar
Junior Member
Join Date: Aug 2020
Old 11-18-2023 , 22:16   Re: [TF2] Huntsman logic on other projectiles
Reply With Quote #3

Tried using TraceAttack, the game either doesn't recognize that with projectile weapons or projectile weapons don't use the HitBox or Hitgroup vars. There is an event called arrow_impact, though now I'm running into the issue of "function prototypes do not match", which I don't know how to solve. My code for it is as follows:
Code:
public void OnPluginStart()
{
	HookEvent("arrow_impact", Event_ArrowImpact);
}


public void Event_ArrowImpact(Event event, int attachedEntity, int shooter, int boneIndexAttached, float bonePositionX, float bonePositionY, float bonePositionZ, float boneAnglesX, float boneAnglesY, float boneAnglesZ, int projectileType, bool isCrit)
{
	char[] bone = "";
	IntToString(boneIndexAttached, bone, 1)
	PrintToServer(john);
}
TheDarkStar 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 21:20.


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