Initial commit
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
#pragma once
|
||||
|
||||
namespace respawn
|
||||
{
|
||||
class c_collision_property
|
||||
{
|
||||
public:
|
||||
NETVAR_FIELD(vec_mins, this, math::Vector3, "DT_CollisionProperty", "m_vecMins");
|
||||
NETVAR_FIELD(vec_maxs, this, math::Vector3, "DT_CollisionProperty", "m_vecMaxs");
|
||||
private:
|
||||
};
|
||||
|
||||
class c_client_renderable
|
||||
{
|
||||
public:
|
||||
bool setup_bones(math::matrix3x4* buffer, int count, int mask, float time)
|
||||
{
|
||||
return vfunc::call<16, bool>(this, buffer, count, mask, time);
|
||||
}
|
||||
private:
|
||||
};
|
||||
|
||||
class c_client_networkable
|
||||
{
|
||||
public:
|
||||
client_class* get_client_class()
|
||||
{
|
||||
return vfunc::call<3, client_class*>(this);
|
||||
}
|
||||
private:
|
||||
};
|
||||
|
||||
class c_entity
|
||||
{
|
||||
public:
|
||||
DATA_FIELD_NR(renderable, this, c_client_renderable, 0x10);
|
||||
DATA_FIELD_NR(networkable, this, c_client_networkable, 0x18);
|
||||
|
||||
NETVAR_FIELD(identifier, this, PCHAR, "DT_BaseEntity", "m_iSignifierName");
|
||||
NETVAR_FIELD(script_name_index, this, int, "DT_BaseEntity", "m_scriptNameIndex");
|
||||
NETVAR_FIELD(model_index, this, int, "DT_BaseEntity", "m_nModelIndex");
|
||||
|
||||
NETVAR_FIELD_NR(collision, this, c_collision_property, "DT_BaseEntity", "m_Collision");
|
||||
|
||||
DATA_FIELD(anim_sequence, this, int, 0xF80);
|
||||
|
||||
DATA_FIELD(model_name, this, char*, 0x30);
|
||||
DATA_FIELD(origin, this, math::Vector3, 0x14C);
|
||||
|
||||
void* get_model();
|
||||
|
||||
bool set_model(const char* name);
|
||||
bool set_model_index(int index);
|
||||
|
||||
void set_abs_angles(math::Angle3 angle);
|
||||
|
||||
uint32_t get_sequence_activity(int sequence);
|
||||
uint32_t get_activity_sequence(uint32_t activity);
|
||||
private:
|
||||
};
|
||||
|
||||
class c_prop_survival : public c_entity
|
||||
{
|
||||
public:
|
||||
NETVAR_FIELD(custom_script_int, this, int, "DT_PropSurvival", "m_customScriptInt");
|
||||
private:
|
||||
};
|
||||
|
||||
class c_npc : public c_entity
|
||||
{
|
||||
public:
|
||||
NETVAR_FIELD(life_state, this, uint8_t, "DT_AI_BaseNPC", "m_lifeState");
|
||||
|
||||
NETVAR_FIELD(health, this, int, "DT_AI_BaseNPC", "m_iHealth");
|
||||
NETVAR_FIELD(health_max, this, int, "DT_AI_BaseNPC", "m_iMaxHealth");
|
||||
private:
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user