Skip to content

Commit

Permalink
52 IS a valid damage reason.
Browse files Browse the repository at this point in the history
It turns out.
  • Loading branch information
Y-Less authored Jan 2, 2024
1 parent 384b8e3 commit a7772dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SDK/include/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ inline bool IsWeaponForTakenDamageValid(int weapon)
auto slot = WeaponSlotData(weapon).slot();
if (slot == INVALID_WEAPON_SLOT)
{
// 52 is a valid damage reason, though not a valid death reason. It is given by the police boat gun.
//
// https://github.com/openmultiplayer/open.mp/issues/600#issuecomment-1377236916
//
if (weapon < 49 || weapon > 54)
{
return false;
Expand Down

0 comments on commit a7772dc

Please sign in to comment.