From a7772dc75bc7ae57e11daa9ee71aa936381913d4 Mon Sep 17 00:00:00 2001 From: Y-Less Date: Tue, 2 Jan 2024 16:59:59 +0100 Subject: [PATCH] 52 IS a valid damage reason. It turns out. --- SDK/include/utils.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SDK/include/utils.hpp b/SDK/include/utils.hpp index 3107984a5..d19acab55 100644 --- a/SDK/include/utils.hpp +++ b/SDK/include/utils.hpp @@ -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;