2
0
mirror of https://github.com/rehlds/reapi.git synced 2025-01-16 00:28:17 +03:00

API members for new CVars sv_enablebunnyhopping and sv_autobunnyhopping (#225)

* API members for `sv_autobunnyhopping` and `sv_enablebunnyhopping`

* Added missing CSPlayer member from ReGameDLL
This commit is contained in:
Alejo 2021-10-20 13:18:58 -03:00 committed by GitHub
parent 36d6311eaf
commit c5fb2919b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 1 deletions

View File

@ -4619,6 +4619,30 @@ enum CCSPlayer_Members
* Set params: set_member(index, member, bool:value);
*/
m_bCanShootOverride,
/*
* Description: -
* Member type: bool
* Get params: get_member(index, member);
* Set params: set_member(index, member, bool:value);
*/
m_bGameForcingRespawn,
/*
* Description: -
* Member type: bool
* Get params: get_member(index, member);
* Set params: set_member(index, member, bool:value);
*/
m_bAutoBunnyHopping,
/*
* Description: -
* Member type: bool
* Get params: get_member(index, member);
* Set params: set_member(index, member, bool:value);
*/
m_bMegaBunnyJumping,
};
/**

View File

@ -47,7 +47,10 @@ public:
m_flSpawnProtectionEndTime(0),
m_iWeaponInfiniteAmmo(0),
m_iWeaponInfiniteIds(0),
m_bCanShootOverride(false)
m_bCanShootOverride(false),
m_bGameForcingRespawn(false),
m_bAutoBunnyHopping(false),
m_bMegaBunnyJumping(false)
{
m_szModel[0] = '\0';
}
@ -125,6 +128,9 @@ public:
int m_iWeaponInfiniteAmmo;
int m_iWeaponInfiniteIds;
bool m_bCanShootOverride;
bool m_bGameForcingRespawn;
bool m_bAutoBunnyHopping;
bool m_bMegaBunnyJumping;
};
// Inlines

View File

@ -757,6 +757,9 @@ member_t memberlist_csplayer[] = {
CSPL_MEMBERS(m_iWeaponInfiniteAmmo),
CSPL_MEMBERS(m_iWeaponInfiniteIds),
CSPL_MEMBERS(m_bCanShootOverride),
CSPL_MEMBERS(m_bGameForcingRespawn),
CSPL_MEMBERS(m_bAutoBunnyHopping),
CSPL_MEMBERS(m_bMegaBunnyJumping),
};
member_t memberlist_baseitem[] = {

View File

@ -746,6 +746,9 @@ enum CSPlayer_Members
m_iWeaponInfiniteAmmo,
m_iWeaponInfiniteIds,
m_bCanShootOverride,
m_bGameForcingRespawn,
m_bAutoBunnyHopping,
m_bMegaBunnyJumping,
};
enum CBasePlayerItem_Members