blocking a headshot with ham_takedamage and shield effect
hi, i'm trying to block a headshoot, hitzone was checked with traceline and it worked not bad but people still got headshoted and killed with hs =\
now i check hitzone with get_user_attacker(), but i'm getting weird logs where none of hitzones are head but still logged =\ : Quote:
PHP Code:
|
Re: blocking a headshot with ham_takedamage and get_user_attacker
Try to use the offset m_LastHitGroup (75)
|
Re: blocking a headshot with ham_takedamage and get_user_attacker
ok but why when condition is (number == 1) action is taken even if number isn't 1 in my case?..
|
Re: blocking a headshot with ham_takedamage and get_user_attacker
I would avoid using get_user_attacker, I've had problems with it in the past. Look in my aimbot detector source
|
Re: blocking a headshot with ham_takedamage and get_user_attacker
try this (headshot is changed into a chest hit) if you dont plan to use it with bots:
PHP Code:
if you plan to use bots look at this tutorial: http://forums.alliedmods.net/showthr...ighlight=trace |
Re: blocking a headshot with ham_takedamage and get_user_attacker
why can't i set hitzone to shield ( 8 ) in traceattack but only in traceline? in traceattack it spawns blood and no shield effect at all =\
|
Re: blocking a headshot with ham_takedamage and get_user_attacker
L0L .Owyn. , dunno but why you asking here -> http://forums.alliedmods.net/showthread.php?t=95992 how to detect shield hit if you know HitGroup for shield?
|
Re: blocking a headshot with ham_takedamage and get_user_attacker
i know how to detect when user is aiming at the shield but not hitting it, i should have described it there better.
the thing is i set hitzone to shield instead of head in traceline but i need to count hits made to victim this way, i don't want where one player just stare at another one and hits becomes bigger constantly (what i got), sure i could emulate shield sound and disable blood from traceattack ( TR_vecEndPos ? ) but still have no idea how to make sparks ( maybe i should ask about sparks? ) just thought there is something i can do just to get shield hit after traceline |
| All times are GMT -4. The time now is 15:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.