Page 1 of 1

Detecting when hitting a shield in CS

Posted: Sat Aug 15, 2026 9:14 pm
by Archive-Poster
After playing around with VEN's code, 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.