Skip to content

Commit f757faf

Browse files
committed
feat(sdk): SetOrAddAttributeValueByName & SetBodygroup
1 parent ecd85dc commit f757faf

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/sdk/entity/CBaseModelEntity.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ class CBaseModelEntity : public CBaseEntity
3131
g_Signatures->FetchSignature<CBaseModelEntity_SetModel>("CBaseModelEntity_SetModel")(this, model);
3232
}
3333

34+
void SetBodygroup(const char* str, uint64_t val)
35+
{
36+
g_Signatures->FetchSignature<CBaseModelEntity_SetBodygroup>("CBaseModelEntity_SetBodygroup")(this, str, val);
37+
}
38+
3439
void SetSolidType(SolidType_t type)
3540
{
3641
this->m_Collision->m_nSolidType = type;

src/sdk/entity/CCSWeaponBase.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ class CAttributeList
4848
public:
4949
DECLARE_SCHEMA_CLASS_BASE(CAttributeList, true)
5050

51-
SCHEMA_FIELD_POINTER_OFFSET(CUtlVector<CHandle<CEconItemAttribute>>, m_Attributes, 0)
51+
SCHEMA_FIELD_POINTER_OFFSET(CUtlVector<CHandle<CEconItemAttribute>>, m_Attributes, 0);
52+
53+
void SetOrAddAttributeValueByName(const char* str, float val)
54+
{
55+
g_Signatures->FetchSignature<CAttributeList_SetOrAddAttributeValueByName>("CAttributeList_SetOrAddAttributeValueByName")(this, str, val);
56+
}
5257
};
5358

5459
class CEconItemView

0 commit comments

Comments
 (0)