Raised This Month: $ Target: $400
 0% 

Detecting when hitting a shield


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Warthog
Junior Member
Join Date: Feb 2007
Old 02-13-2007 , 02:04   Detecting when hitting a shield
Reply With Quote #1

After playing around with VEN's code for http://forums.alliedmods.net/showthread.php?t=49395 , I discovered that there is a hitgroup not covered in the #define's in amxconst.inc

If you hit a shield, get_tr2(ptr, TR_iHitgroup) returns hitgroup 8, so maybe this could be added to amxconst.inc as #define HIT_SHIELD 8

get_user_attacker() will never return this value, because if you hit a person with a shield then obviously no damage occurs and no Damage event takes place.

I have absolutely no clue when someone would ever need to detect when someone hits a shield , but for future reference it is hitgroup 8.
Warthog 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 17:03.


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