Add IVModelInfoClient::GetStudioModel.
* Proper structures coming soon. Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
parent
c8c27bcbcb
commit
b746fa1e3b
|
@ -17,11 +17,15 @@
|
||||||
#define BONE_USED_BY_VERTEX_LOD7 0x20000
|
#define BONE_USED_BY_VERTEX_LOD7 0x20000
|
||||||
#define BONE_USED_BY_BONE_MERGE 0x40000
|
#define BONE_USED_BY_BONE_MERGE 0x40000
|
||||||
|
|
||||||
class model_t;
|
class studiohdr_t;
|
||||||
|
|
||||||
class IVModelInfoClient {
|
class IVModelInfoClient {
|
||||||
public:
|
public:
|
||||||
const char* GetModelName(const model_t* model) {
|
const char* GetModelName(const model_t* model) {
|
||||||
return GetVirtualFunction<const char*(*)(IVModelInfoClient*, const model_t*)>(this, 4)(this, model);
|
return GetVirtualFunction<const char*(*)(IVModelInfoClient*, const model_t*)>(this, 4)(this, model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
studiohdr_t* GetStudioModel(const model_t* model) {
|
||||||
|
return GetVirtualFunction<studiohdr_t*(*)(IVModelInfoClient*, const model_t*)>(this, 29)(this, model);
|
||||||
|
}
|
||||||
};
|
};
|
Loading…
Reference in New Issue