Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Quote:
Quote:
I'm also a little confused on what you mean by 'damagebits'. I'm not entirely familiar with the damagebits event int, does it change for every weapon if you hit them in a different hitgroup? If so, even better, I'd love to add that in! I can't seem to find anything explanatory except the definition from modevents ("damagebits" "long" // bits of type of damage). (please note that if that's how it works, I have no problem with testing every weapon's headshot damagebits when I return, if it hasn't been done already) Quote:
I'm going to be away for the new year's holiday, and if there are any more questions I will be glad to answer them when I return. |
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Quote:
Quote:
|
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Quote:
Aaaa, I think we're both confused. Customkill 1 only happens on certain weapon headshots (Ambassador, Huntsman, Sniper Rifle), the ones with a predisposition to cause a critical hit and a damage icon/condition on a headshot. Therefore shooting someone in the head with anything else wouldn't cause a customkill of 1. That's why I'd have to check hitboxes on player_hurt if it were to cause decapitation on any weapon headshot, and that would be rendered very inaccurate with shotguns, but still possible. (It would be rendered inaccurate with other weapons as well, but those aren't hitscan and I can check for that.) Of course, as I said, prehooking player_hurt was a concern of mine, which is why I already had it doing as you said, checking customkill 1 on the player_death prehook. I hope we're on the same page now, and I hope you all had a great New Years! |
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Quote:
|
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Quote:
Thank you for your help, I hope you find something, I'm certainly looking! :) |
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Well I may have found something, the only issue is that it involves the use of an extension, if that's not a problem for you then here goes:
SDKHooks has a TraceAttack hook which can get the hitbox and hitgroup of the victim, I'll look in to this a little later and see if I can make any use of it. |
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Thank you for this plugin. Works fine, altough the spy seems to drop two hats (and a head :P) when you headshot him. Not sure if that is caused by this plugin though.
|
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Quote:
Quote:
Thank you for your input, I hope I can resolve this problem. (I cannot test this myself as I do not have a server and my router doesn't forward ports properly, and of course bots don't have hats). |
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Quote:
|
Re: TF2DECAP: Heads will roll! (Decapitation plugin)
Quote:
|
All times are GMT -4. The time now is 12:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.