rehlds / ReAPI

AMXModX module providing APIs for ReHLDS, ReGameDLL, and Metamod plugins (e.g., ReUnion, ReVoice).
GNU General Public License v3.0
159 stars 105 forks source link

hook RG_CBasePlayer_TakeDamage wrong bitsDamageType? #302

Closed jonathan-up closed 9 months ago

jonathan-up commented 10 months ago

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

Rafflesian commented 9 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 9 months ago

Got it. Thanks!