2
0
mirror of https://github.com/rehlds/reapi.git synced 2024-12-27 23:25:30 +03:00
Co-authored-by: shel <2@shelru.ru>
This commit is contained in:
shel 2020-06-10 23:24:17 +04:00 committed by GitHub
parent 6d40db5c0f
commit 8647cd083d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 57 additions and 2 deletions

View File

@ -1,3 +1,3 @@
majorVersion=5
minorVersion=14
minorVersion=15
maintenanceVersion=0

View File

@ -5843,6 +5843,46 @@ enum CKnife_Members
* Set params: set_member(index, member, value);
*/
m_Knife_usKnife,
/*
* Description: -
* Member type: float
* Get params: get_member(index, member);
* Set params: set_member(index, member, value);
*/
m_Knife_flStabBaseDamage,
/*
* Description: -
* Member type: float
* Get params: get_member(index, member);
* Set params: set_member(index, member, value);
*/
m_Knife_flSwingBaseDamage,
/*
* Description: -
* Member type: float
* Get params: get_member(index, member);
* Set params: set_member(index, member, value);
*/
m_Knife_flSwingBaseDamage_Fast,
/*
* Description: -
* Member type: float
* Get params: get_member(index, member);
* Set params: set_member(index, member, value);
*/
m_Knife_flStabDistance,
/*
* Description: -
* Member type: float
* Get params: get_member(index, member);
* Set params: set_member(index, member, value);
*/
m_Knife_flSwingDistance,
};
/**

View File

@ -39,7 +39,7 @@
#include <API/CSInterfaces.h>
#define REGAMEDLL_API_VERSION_MAJOR 5
#define REGAMEDLL_API_VERSION_MINOR 17
#define REGAMEDLL_API_VERSION_MINOR 18
// CBasePlayer::Spawn hook
typedef IHookChainClass<void, class CBasePlayer> IReGameHook_CBasePlayer_Spawn;

View File

@ -580,6 +580,11 @@ public:
public:
TraceResult m_trHit;
unsigned short m_usKnife;
float m_flStabBaseDamage;
float m_flSwingBaseDamage;
float m_flSwingBaseDamage_Fast;
float m_flStabDistance;
float m_flSwingDistance;
};
class CM249: public CBasePlayerWeapon {

View File

@ -984,6 +984,11 @@ member_t memberlist_ak47[] = {
member_t memberlist_knife[] = {
KNIFE_MEMBERS(trHit),
KNIFE_MEMBERS(usKnife),
KNIFE_MEMBERS(flStabBaseDamage),
KNIFE_MEMBERS(flSwingBaseDamage),
KNIFE_MEMBERS(flSwingBaseDamage_Fast),
KNIFE_MEMBERS(flStabDistance),
KNIFE_MEMBERS(flSwingDistance),
};
member_t memberlist_p90[] = {

View File

@ -1014,6 +1014,11 @@ enum CKnife_Members
{
m_Knife_trHit = BEGIN_MEMBER_REGION(knife),
m_Knife_usKnife,
m_Knife_flStabBaseDamage,
m_Knife_flSwingBaseDamage,
m_Knife_flSwingBaseDamage_Fast,
m_Knife_flStabDistance,
m_Knife_flSwingDistance,
};
enum CP90_Members