From 7350d696e810d7b50c6036ebccbf35beeca72375 Mon Sep 17 00:00:00 2001 From: asmodai Date: Sat, 4 Jun 2016 16:16:48 +0300 Subject: [PATCH] Fixed member regions in amxx includes --- .../amxmodx/scripting/include/reapi_engine_const.inc | 4 ++-- .../scripting/include/reapi_gamedll_const.inc | 12 ++++++------ reapi/src/member_list.cpp | 1 + 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/reapi/extra/amxmodx/scripting/include/reapi_engine_const.inc b/reapi/extra/amxmodx/scripting/include/reapi_engine_const.inc index dd58de5..31cedd3 100644 --- a/reapi/extra/amxmodx/scripting/include/reapi_engine_const.inc +++ b/reapi/extra/amxmodx/scripting/include/reapi_engine_const.inc @@ -45,7 +45,7 @@ enum EntVars * Get params: get_entvar(index, EntVars:var, dest[], const lenght); * Set params: set_entvar(index, EntVars:var, const source[]); */ - var_classname = 4 * 1024, + var_classname = 5 * 1024, /* * Description: - @@ -1032,7 +1032,7 @@ enum UserCmd * Get params: get_ucmd(const ucmd, UserCmd:var); * Set params: set_ucmd(const ucmd, UserCmd:var, value); */ - ucmd_lerp_msec = 7 * 1024, + ucmd_lerp_msec = 8 * 1024, /* * Description: - diff --git a/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc b/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc index 06df733..4ef7ec9 100644 --- a/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc +++ b/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc @@ -555,7 +555,7 @@ enum CSGameRules_Members * Get params: get_member_game(member); * Set params: set_member_game(member, value); */ - m_bFreezePeriod = 0, + m_bFreezePeriod = 0 * 1024, /* * Description: - @@ -1448,7 +1448,7 @@ enum CBaseMonster_Members * Get params: get_member(index, member); * Set params: set_member(index, member, value); */ - m_Activity = 3072, + m_Activity = 3 * 1024, /* * Description: - @@ -1580,7 +1580,7 @@ enum CBasePlayer_Members * Get params: get_member(index, member); * Set params: set_member(index, member, value); */ - random_seed = 3 * 1024, + random_seed = 4 * 1024, /* * Description: - @@ -3079,7 +3079,7 @@ enum PlayerMove * Get params: get_pmove(member); * Set params: set_pmove(const PlayerMove:var, value); */ - pm_player_index = 5 * 1024, + pm_player_index = 6 * 1024, /* * Description: - @@ -3562,7 +3562,7 @@ enum MoveVars * Get params: Float:get_mvar(const MoveVars:var); * Set params: set_mvar(const MoveVars:var, Float:value); */ - mv_gravity = 5 * 1024, + mv_gravity = 7 * 1024, /* * Description: - @@ -3773,7 +3773,7 @@ enum PMTrace * Get params: get_pmtrace(const tr, const PMTrace:var); * Set params: set_pmtrace(const tr, const PMTrace:var, value); */ - pmt_allsolid = 8 * 1024, + pmt_allsolid = 9 * 1024, /* * Description: - diff --git a/reapi/src/member_list.cpp b/reapi/src/member_list.cpp index e874ea4..5edfcee 100644 --- a/reapi/src/member_list.cpp +++ b/reapi/src/member_list.cpp @@ -6,6 +6,7 @@ #define GM_VOICE_MEMBERS(mx) CLASS_MEMBERS(CVoiceGameMgr, mx,) #define BASE_MEMBERS(mx) CLASS_MEMBERS(CBaseEntity, mx,) #define ANIM_MEMBERS(mx) CLASS_MEMBERS(CBaseAnimating, mx,) +#define MONST_MEMBERS(mx) CLASS_MEMBERS(CBaseMonster, mx,) #define PL_MEMBERS(mx) CLASS_MEMBERS(CBasePlayer, mx,) #define EVAR_MEMBERS(mx) CLASS_MEMBERS(com_entvars, mx, var_) #define PMOVE_MEMBERS(mx) CLASS_MEMBERS(com_playermove, mx, pm_)