Skip to content

Commit 338d04d

Browse files
authored
Merge pull request #825 from openmultiplayer/reason-52
52 IS a valid damage reason.
2 parents 8c418ad + a7772dc commit 338d04d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SDK/include/utils.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ inline bool IsWeaponForTakenDamageValid(int weapon)
2121
auto slot = WeaponSlotData(weapon).slot();
2222
if (slot == INVALID_WEAPON_SLOT)
2323
{
24+
// 52 is a valid damage reason, though not a valid death reason. It is given by the police boat gun.
25+
//
26+
// https://github.com/openmultiplayer/open.mp/issues/600#issuecomment-1377236916
27+
//
2428
if (weapon < 49 || weapon > 54)
2529
{
2630
return false;

0 commit comments

Comments
 (0)