2016-08-14 21:11:44 +00:00
|
|
|
#ifndef __DNACOMMON_ITWEAKPLAYERGUN_HPP__
|
|
|
|
#define __DNACOMMON_ITWEAKPLAYERGUN_HPP__
|
|
|
|
|
2017-01-21 06:03:37 +00:00
|
|
|
#include "ITweak.hpp"
|
2016-08-14 21:11:44 +00:00
|
|
|
#include "zeus/CAABox.hpp"
|
|
|
|
|
|
|
|
namespace DataSpec
|
|
|
|
{
|
2017-01-27 02:58:21 +00:00
|
|
|
struct SShotParam : BigYAML
|
|
|
|
{
|
|
|
|
DECL_YAML
|
|
|
|
Value<atUint32> weaponType = -1;
|
|
|
|
Value<float> damage = 0.f;
|
|
|
|
Value<float> radiusDamage = 0.f;
|
|
|
|
Value<float> radius = 0.f;
|
|
|
|
Value<float> knockback = 0.f;
|
|
|
|
virtual bool Charged() const { return false; }
|
|
|
|
virtual bool Comboed() const { return false; }
|
|
|
|
virtual bool InstaKill() const { return false; }
|
|
|
|
};
|
2016-08-14 21:11:44 +00:00
|
|
|
|
2017-01-27 02:58:21 +00:00
|
|
|
struct SComboShotParam : SShotParam
|
2016-08-14 21:11:44 +00:00
|
|
|
{
|
2017-01-27 02:58:21 +00:00
|
|
|
DECL_YAML
|
|
|
|
bool Comboed() const { return true; }
|
2016-08-14 21:11:44 +00:00
|
|
|
};
|
|
|
|
|
2017-01-27 02:58:21 +00:00
|
|
|
struct SChargedShotParam : SShotParam
|
|
|
|
{
|
|
|
|
DECL_YAML
|
|
|
|
bool Charged() const { return true; }
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ITweakPlayerGun : ITweak
|
|
|
|
{
|
|
|
|
DECL_YAML
|
|
|
|
virtual float GetX24() const = 0; // x24
|
|
|
|
virtual float GetX28() const = 0; // x28
|
|
|
|
virtual float GetX2c() const = 0; // x2c
|
|
|
|
virtual float GetX30() const = 0; // x30
|
|
|
|
virtual float GetX34() const = 0; // x34
|
|
|
|
virtual float GetX38() const = 0; // x38
|
|
|
|
};
|
2016-08-14 21:11:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __DNACOMMON_ITWEAKPLAYERGUN_HPP__
|