metaforce/DataSpec/DNACommon/Tweaks/ITweakPlayerGun.hpp

48 lines
942 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2017-01-21 06:03:37 +00:00
#include "ITweak.hpp"
#include "zeus/CAABox.hpp"
2018-12-08 05:30:43 +00:00
namespace DataSpec {
2017-09-05 03:00:19 +00:00
/* Same as CDamageInfo */
2018-12-08 05:30:43 +00:00
struct SShotParam : BigDNA {
AT_DECL_DNA_YAML
Value<atInt32> weaponType = -1;
bool charged : 1;
bool combo : 1;
bool instaKill : 1;
Value<float> damage = 0.f;
Value<float> radiusDamage = 0.f;
Value<float> radius = 0.f;
Value<float> knockback = 0.f;
bool noImmunity : 1;
SShotParam() {
charged = false;
combo = false;
instaKill = false;
noImmunity = false;
}
};
2018-12-08 05:30:43 +00:00
struct SComboShotParam : SShotParam {
AT_DECL_DNA_YAML
SComboShotParam() { combo = true; }
};
2018-12-08 05:30:43 +00:00
struct SChargedShotParam : SShotParam {
AT_DECL_DNA_YAML
SChargedShotParam() { charged = true; }
};
2018-12-08 05:30:43 +00:00
struct SWeaponInfo : BigDNA {
AT_DECL_DNA_YAML
Value<float> x0_coolDown = 0.1f;
SShotParam x4_normal;
SChargedShotParam x20_charged;
2017-08-26 04:36:25 +00:00
};
2018-12-08 05:30:43 +00:00
struct ITweakPlayerGun : ITweak {
AT_DECL_DNA_YAML
};
2018-12-08 05:30:43 +00:00
} // namespace DataSpec