From 1ea1ff04a198b81625e1efea106d05708935e284 Mon Sep 17 00:00:00 2001 From: fl0werD Date: Thu, 5 Dec 2019 12:05:10 +0400 Subject: [PATCH] added missed offsets (#156) --- .../scripting/include/reapi_gamedll_const.inc | 24 +++++++++++++++++++ reapi/include/cssdk/dlls/API/CSPlayer.h | 3 +++ reapi/src/member_list.cpp | 3 +++ reapi/src/member_list.h | 3 +++ 4 files changed, 33 insertions(+) diff --git a/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc b/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc index 4b61edf..76a540b 100644 --- a/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc +++ b/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc @@ -4481,6 +4481,30 @@ enum CCSPlayer_Members * Set params: set_member(index, member, Float:value); */ m_flSpawnProtectionEndTime, + + /* + * Description: - + * Member type: class Vector + * Get params: get_member(index, member, Float:output[3]); + * Set params: set_member(index, member, Float:dest[3]); + */ + m_vecOldvAngle, + + /* + * Description: - + * Member type: int + * Get params: get_member(index, member); + * Set params: set_member(index, member, value); + */ + m_iWeaponInfiniteAmmo, + + /* + * Description: - + * Member type: int + * Get params: get_member(index, member); + * Set params: set_member(index, member, value); + */ + m_iWeaponInfiniteIds, }; /** diff --git a/reapi/include/cssdk/dlls/API/CSPlayer.h b/reapi/include/cssdk/dlls/API/CSPlayer.h index 4beee57..a7abfc7 100644 --- a/reapi/include/cssdk/dlls/API/CSPlayer.h +++ b/reapi/include/cssdk/dlls/API/CSPlayer.h @@ -101,6 +101,9 @@ public: bool m_bForceShowMenu; float m_flRespawnPending; float m_flSpawnProtectionEndTime; + Vector m_vecOldvAngle; + int m_iWeaponInfiniteAmmo; + int m_iWeaponInfiniteIds; }; // Inlines diff --git a/reapi/src/member_list.cpp b/reapi/src/member_list.cpp index b9975bb..b5aed26 100644 --- a/reapi/src/member_list.cpp +++ b/reapi/src/member_list.cpp @@ -742,6 +742,9 @@ member_t memberlist_csplayer[] = { CSPL_MEMBERS(m_bForceShowMenu), CSPL_MEMBERS(m_flRespawnPending), CSPL_MEMBERS(m_flSpawnProtectionEndTime), + CSPL_MEMBERS(m_vecOldvAngle), + CSPL_MEMBERS(m_iWeaponInfiniteAmmo), + CSPL_MEMBERS(m_iWeaponInfiniteIds), }; member_t memberlist_baseitem[] = { diff --git a/reapi/src/member_list.h b/reapi/src/member_list.h index 0c7f32f..e416abb 100644 --- a/reapi/src/member_list.h +++ b/reapi/src/member_list.h @@ -740,6 +740,9 @@ enum CSPlayer_Members m_bForceShowMenu, m_flRespawnPending, m_flSpawnProtectionEndTime, + m_vecOldvAngle, + m_iWeaponInfiniteAmmo, + m_iWeaponInfiniteIds, }; enum CBasePlayerItem_Members