2
0
mirror of https://github.com/rehlds/reapi.git synced 2024-12-28 15:45:31 +03:00

Add m_flBaseDamage member (#124)

* Features: add m_flBaseDamage
This commit is contained in:
fant1kua 2019-01-07 10:49:05 +02:00 committed by Dmitry Novikov
parent 2fb01f6a46
commit ed5263627f
5 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,3 @@
majorVersion=5
minorVersion=6
minorVersion=7
maintenanceVersion=0

View File

@ -4701,7 +4701,7 @@ enum CBasePlayerWeapon_Members
* Get params: Float:get_member(index, member);
* Set params: set_member(index, member, Float:value);
*/
m_Weapon_flLastFireTime
m_Weapon_flLastFireTime,
};
/**
@ -5758,4 +5758,12 @@ enum CCSPlayerWeapon_Members
* Set params: set_member(index, member, bool:value);
*/
m_Weapon_bHasSecondaryAttack = BEGIN_MEMBER_REGION(csplayerweapon),
/*
* Description: Basic damage that weapon deals before any multiplier, such as hitgroup, armor, distance and bullet penetration
* Member type: float
* Get params: Float:get_member(index, member);
* Set params: set_member(index, member, Float:value);
*/
m_Weapon_flBaseDamage,
};

View File

@ -41,6 +41,7 @@ public:
public:
bool m_bHasSecondaryAttack;
float m_flBaseDamage;
};
// Inlines

View File

@ -771,7 +771,7 @@ member_t memberlist_baseweapon[] = {
BASEWPN_MEMBERS(usFireGlock18),
BASEWPN_MEMBERS(usFireFamas),
BASEWPN_MEMBERS(flPrevPrimaryAttack),
BASEWPN_MEMBERS(flLastFireTime),
BASEWPN_MEMBERS(flLastFireTime)
};
member_t memberlist_weaponbox[] = {
@ -994,7 +994,8 @@ member_t memberlist_mapinfo[] = {
};
member_t memberlist_csplayerweapon[] = {
CSPLWPN_MEMBERS(bHasSecondaryAttack)
CSPLWPN_MEMBERS(bHasSecondaryAttack),
CSPLWPN_MEMBERS(flBaseDamage),
};
memberlist_t memberlist;

View File

@ -781,7 +781,7 @@ enum CBasePlayerWeapon_Members
m_Weapon_usFireGlock18,
m_Weapon_usFireFamas,
m_Weapon_flPrevPrimaryAttack,
m_Weapon_flLastFireTime
m_Weapon_flLastFireTime,
};
enum CWeaponBox_Members
@ -1040,4 +1040,5 @@ enum MapInfo_Members
enum CSPlayerWeapon_Members
{
m_Weapon_bHasSecondaryAttack = BEGIN_MEMBER_REGION(csplayerweapon),
m_Weapon_flBaseDamage,
};