From 51d3575c377fa2d53fa28cb13bd931026f5e91d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Krupi=C5=84ski?= Date: Mon, 25 Nov 2024 19:30:41 +0100 Subject: [PATCH] Add healthshot as a subtype of weapon --- Source/CS2/Classes/Entities/WeaponEntities.h | 3 +++ Source/CS2/Constants/EntityTypeNames.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/CS2/Classes/Entities/WeaponEntities.h b/Source/CS2/Classes/Entities/WeaponEntities.h index 5930e6d7492..b6768f2e55f 100644 --- a/Source/CS2/Classes/Entities/WeaponEntities.h +++ b/Source/CS2/Classes/Entities/WeaponEntities.h @@ -121,4 +121,7 @@ struct C_C4 : C_CSWeaponBase { using m_bStartedArming = bool; }; +struct C_Item_Healthshot : C_CSWeaponBase { +}; + } diff --git a/Source/CS2/Constants/EntityTypeNames.h b/Source/CS2/Constants/EntityTypeNames.h index f8dec15eec7..6c209fdb70c 100644 --- a/Source/CS2/Constants/EntityTypeNames.h +++ b/Source/CS2/Constants/EntityTypeNames.h @@ -56,6 +56,7 @@ constexpr auto kEntityTypeNames = TypedStaticStringPool{} .add(WIN64_LINUX(".?AVC_FlashbangProjectile@@", "21C_FlashbangProjectile")) .add(WIN64_LINUX(".?AVC_C4@@", "4C_C4")) .add(WIN64_LINUX(".?AVC_PlantedC4@@", "11C_PlantedC4")) - .add(WIN64_LINUX(".?AVC_Hostage@@", "9C_Hostage")); + .add(WIN64_LINUX(".?AVC_Hostage@@", "9C_Hostage")) + .add(WIN64_LINUX(".?AVC_Item_Healthshot@@", "17C_Item_Healthshot")); }