mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-05 02:00:34 +03:00
Fix issues
This commit is contained in:
parent
179b7a5298
commit
13f422f4c4
@ -33,10 +33,10 @@ C_HLCustomWeaponMelee::C_HLCustomWeaponMelee()
|
||||
|
||||
|
||||
|
||||
class C_HLCustomWeaponGun : public C_BaseHLBludgeonWeapon
|
||||
class C_HLCustomWeaponGun : public C_BaseHLCombatWeapon
|
||||
{
|
||||
public:
|
||||
DECLARE_CLASS(C_HLCustomWeaponGun, C_BaseHLBludgeonWeapon);
|
||||
DECLARE_CLASS(C_HLCustomWeaponGun, C_BaseHLCombatWeapon);
|
||||
DECLARE_CLIENTCLASS();
|
||||
DECLARE_PREDICTABLE();
|
||||
|
||||
|
@ -354,6 +354,7 @@ public:
|
||||
|
||||
CHLCustomWeaponGun();
|
||||
virtual void ParseCustomFromWeaponFile(const char* pFileName);
|
||||
const char* GetWeaponScriptName() { return m_iszWeaponScriptName.Get(); }
|
||||
|
||||
// Weapon behaviour
|
||||
virtual void ItemPostFrame(void); // called each frame by the player PostThink
|
||||
@ -672,9 +673,9 @@ void CHLCustomWeaponGun::ParseCustomFromWeaponFile(const char* pFileName)
|
||||
float flSpread = pkvData->GetFloat("spread", 5.f);
|
||||
float flNPCSpread = pkvData->GetFloat("spread_npc", flSpread);
|
||||
float flAllySperad = pkvData->GetFloat("spread_ally", flNPCSpread);
|
||||
m_vPlayerSpread = Vector(sin(flSpread * 0.5f));
|
||||
m_vNPCSpread = Vector(sin(flNPCSpread * 0.5f));
|
||||
m_vAllySpread = Vector(sin(flAllySperad * 0.5f));
|
||||
m_vPlayerSpread = Vector(sin(DEG2RAD(flSpread * 0.5f)));
|
||||
m_vNPCSpread = Vector(sin(DEG2RAD(flNPCSpread * 0.5f)));
|
||||
m_vAllySpread = Vector(sin(DEG2RAD(flAllySperad * 0.5f)));
|
||||
|
||||
const char* pszAnimType = pkvData->GetString("anim_type", nullptr);
|
||||
if (pszAnimType)
|
||||
|
Loading…
x
Reference in New Issue
Block a user