Detecting when hitting a shield in CS

For scripting examples for learning how to use AMXX.
User avatar
Archive-Poster
Posts: 1267
Gender:
United States of America

Detecting when hitting a shield in CS

Post 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.

Who is online

Users browsing this forum: No registered users and 1 guest