Skip to content

Commit

Permalink
Merge pull request #825 from openmultiplayer/reason-52
Browse files Browse the repository at this point in the history
52 IS a valid damage reason.
  • Loading branch information
Y-Less authored Jan 3, 2024
2 parents 8c418ad + a7772dc commit 338d04d
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 338d04d

Please sign in to comment.