#pragma semicolon 1
#include <amxmodx>
#include <fakemeta>
#include <reapi>
-#define DISABLED_HITBOXES ((1<<HIT_LEFTARM) | (1<<HIT_HEAD))
+#define DISABLED_HITBOXES BIT(HIT_LEFTARM) | BIT(HIT_HEAD)
public plugin_init()
{
register_plugin("Disable Hitboxes", "1.0", "fl0wer");
RegisterHookChain(RG_CBasePlayer_TraceAttack, "@CBasePlayer__TraceAttack_Pre", false);
}
@CBasePlayer__TraceAttack_Pre(id, attacker, Float:damage, Float:vecDir[3], tr, bitsDamageType)
{
- return ((1<<get_tr2(tr, TR_iHitgroup)) & DISABLED_HITBOXES) ? HC_SUPERCEDE : HC_CONTINUE;
+ return (BIT(get_tr2(tr, TR_iHitgroup)) & DISABLED_HITBOXES) ? HC_SUPERCEDE : HC_CONTINUE;
}