Skip to content

Commit 51d3575

Browse files
Add healthshot as a subtype of weapon
1 parent d2de4ab commit 51d3575

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Source/CS2/Classes/Entities/WeaponEntities.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,7 @@ struct C_C4 : C_CSWeaponBase {
121121
using m_bStartedArming = bool;
122122
};
123123

124+
struct C_Item_Healthshot : C_CSWeaponBase {
125+
};
126+
124127
}

Source/CS2/Constants/EntityTypeNames.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ constexpr auto kEntityTypeNames = TypedStaticStringPool{}
5656
.add<C_FlashbangProjectile>(WIN64_LINUX(".?AVC_FlashbangProjectile@@", "21C_FlashbangProjectile"))
5757
.add<C_C4>(WIN64_LINUX(".?AVC_C4@@", "4C_C4"))
5858
.add<CPlantedC4>(WIN64_LINUX(".?AVC_PlantedC4@@", "11C_PlantedC4"))
59-
.add<C_Hostage>(WIN64_LINUX(".?AVC_Hostage@@", "9C_Hostage"));
59+
.add<C_Hostage>(WIN64_LINUX(".?AVC_Hostage@@", "9C_Hostage"))
60+
.add<C_Item_Healthshot>(WIN64_LINUX(".?AVC_Item_Healthshot@@", "17C_Item_Healthshot"));
6061

6162
}

0 commit comments

Comments
 (0)