Skip to content

Commit

Permalink
Add healthshot as a subtype of weapon
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Nov 25, 2024
1 parent d2de4ab commit 51d3575
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Source/CS2/Classes/Entities/WeaponEntities.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,7 @@ struct C_C4 : C_CSWeaponBase {
using m_bStartedArming = bool;
};

struct C_Item_Healthshot : C_CSWeaponBase {
};

}
3 changes: 2 additions & 1 deletion Source/CS2/Constants/EntityTypeNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ constexpr auto kEntityTypeNames = TypedStaticStringPool{}
.add<C_FlashbangProjectile>(WIN64_LINUX(".?AVC_FlashbangProjectile@@", "21C_FlashbangProjectile"))
.add<C_C4>(WIN64_LINUX(".?AVC_C4@@", "4C_C4"))
.add<CPlantedC4>(WIN64_LINUX(".?AVC_PlantedC4@@", "11C_PlantedC4"))
.add<C_Hostage>(WIN64_LINUX(".?AVC_Hostage@@", "9C_Hostage"));
.add<C_Hostage>(WIN64_LINUX(".?AVC_Hostage@@", "9C_Hostage"))
.add<C_Item_Healthshot>(WIN64_LINUX(".?AVC_Item_Healthshot@@", "17C_Item_Healthshot"));

}

0 comments on commit 51d3575

Please sign in to comment.