s1lentq / reapi

AMX Mod X module, using API regamedll & rehlds
GNU General Public License v3.0
160 stars 103 forks source link

hook RG_CBasePlayer_TakeDamage wrong bitsDamageType? #302

Closed jonathan-up closed 7 months ago

jonathan-up commented 8 months ago

I use a gun to cause harm, but bitsDamageType is 4098. Its not DMG_BULLET(1<<1)

Rafflesian commented 7 months ago

The damage contains DMG_NEVERGIB as well, see them below

image

https://github.com/s1lentq/ReGameDLL_CS/blob/4b49f630da970cc62bb3cd7ecd65710dd7d87122/regamedll/dlls/cbase.cpp#L1040

https://github.com/s1lentq/ReGameDLL_CS/blob/4b49f630da970cc62bb3cd7ecd65710dd7d87122/regamedll/dlls/cbase.cpp#L1188

https://github.com/s1lentq/ReGameDLL_CS/blob/4b49f630da970cc62bb3cd7ecd65710dd7d87122/regamedll/dlls/cbase.cpp#L1333

jonathan-up commented 7 months ago

Got it. Thanks!