@@ -1878,6 +1878,9 @@ void GCBaseModelEntity::SetModel(std::string model) {
18781878void GCBaseModelEntity::SetSolidType(int64_t solidType) {
18791879 ((CBaseModelEntity*)m_ptr)->SetSolidType((SolidType_t)solidType);
18801880}
1881+ void GCBaseModelEntity::SetBodygroup(std::string str, int64_t val) {
1882+ ((CBaseModelEntity*)m_ptr)->SetBodygroup(str.c_str(), (uint64_t)val);
1883+ }
18811884GCRenderComponent GCBaseModelEntity::GetCRenderComponent() const {
18821885 REGISTER_CALLSTACK(this->plugin_name, string_format("SDK Get: CBaseModelEntity->CRenderComponent(ptr=%p)", m_ptr));
18831886 GCRenderComponent value(*(void**)GetSchemaPtr(m_ptr, "CBaseModelEntity", "m_CRenderComponent"));
@@ -2140,6 +2143,7 @@ void SetupLuaClassCBaseModelEntity(LuaPlugin *plugin, lua_State *state)
21402143 .addProperty("Parent", &GCBaseModelEntity::GetParent, &GCBaseModelEntity::SetParent)
21412144 .addFunction("SetModel", &GCBaseModelEntity::SetModel)
21422145 .addFunction("SetSolidType", &GCBaseModelEntity::SetSolidType)
2146+ .addFunction("SetBodygroup", &GCBaseModelEntity::SetBodygroup)
21432147 .addFunction("ToPtr", &GCBaseModelEntity::ToPtr)
21442148 .addFunction("IsValid", &GCBaseModelEntity::IsValid)
21452149 .endClass();
@@ -3912,6 +3916,9 @@ GCAttributeList::GCAttributeList(std::string ptr, lua_State* state) {
39123916GCAttributeList::GCAttributeList(void *ptr) {
39133917 m_ptr = ptr;
39143918}
3919+ void GCAttributeList::SetOrAddAttributeValueByName(std::string str, float value) {
3920+ ((CAttributeList*)m_ptr)->SetOrAddAttributeValueByName(str.c_str(), value);
3921+ }
39153922std::vector<GCEconItemAttribute> GCAttributeList::GetAttributes() const {
39163923 REGISTER_CALLSTACK(this->plugin_name, string_format("SDK Get: CAttributeList->Attributes(ptr=%p)", m_ptr));
39173924 CUtlVector<GCEconItemAttribute>* vec = GetSchemaValue<CUtlVector<GCEconItemAttribute>*>(m_ptr, "CAttributeList", "m_Attributes"); std::vector<GCEconItemAttribute> outVec; for(int i = 0; i < vec->Count(); i++) { outVec.push_back(vec->Element(i)); } return outVec;
@@ -3945,6 +3952,7 @@ void SetupLuaClassCAttributeList(LuaPlugin *plugin, lua_State *state)
39453952 .addConstructor<void (*)(std::string, lua_State*)>()
39463953 .addProperty("Attributes", &GCAttributeList::GetAttributes, &GCAttributeList::SetAttributes)
39473954 .addProperty("Manager", &GCAttributeList::GetManager, &GCAttributeList::SetManager)
3955+ .addFunction("SetOrAddAttributeValueByName", &GCAttributeList::SetOrAddAttributeValueByName)
39483956 .addFunction("ToPtr", &GCAttributeList::ToPtr)
39493957 .addFunction("IsValid", &GCAttributeList::IsValid)
39503958 .endClass();
0 commit comments