How do I use damagetype to filter out damage ONLY done by bullets?
Like this?
Code:
register_event("Damage", "takedamage","b", "2>1", "3 = (1<<1)");
?
From hlsdk_const I found that list if damage types and for bullets it states:
Code:
#define DMG_BULLET 1<<1
How do I use bitwise values in this case?
Or alternatively how could I read value of the third parameter and filter the rest with a simple
if statement?