Commit ed526362 authored by fant1kua's avatar fant1kua Committed by Dmitry Novikov

Add m_flBaseDamage member (#124)

* Features: add m_flBaseDamage
parent 2fb01f6a
majorVersion=5
minorVersion=6
minorVersion=7
maintenanceVersion=0
......@@ -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,
};
......@@ -41,6 +41,7 @@ public:
public:
bool m_bHasSecondaryAttack;
float m_flBaseDamage;
};
// Inlines
......
......@@ -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;
......
......@@ -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,
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment