mirror of https://github.com/PrimeDecomp/prime.git
Add CGunMorph::CGunMorph
This commit is contained in:
parent
e25205bd69
commit
7fac18cc48
|
@ -576,7 +576,7 @@ TUniqueId CPlayerGun::GetTargetId(CStateManager& mgr) {
|
||||||
ret = mgr.GetPlayer()->GetOrbitNextTargetId();
|
ret = mgr.GetPlayer()->GetOrbitNextTargetId();
|
||||||
|
|
||||||
if (ret != kInvalidUniqueId) {
|
if (ret != kInvalidUniqueId) {
|
||||||
const CActor* act = TCastToConstPtr<CActor>(mgr.GetObjectById(ret));
|
const CActor* act = TCastToConstPtr< CActor >(mgr.GetObjectById(ret));
|
||||||
if (act != nullptr) {
|
if (act != nullptr) {
|
||||||
if (!act->GetMaterialList().HasMaterial(kMT_Target)) {
|
if (!act->GetMaterialList().HasMaterial(kMT_Target)) {
|
||||||
ret = kInvalidUniqueId;
|
ret = kInvalidUniqueId;
|
||||||
|
@ -585,10 +585,20 @@ TUniqueId CPlayerGun::GetTargetId(CStateManager& mgr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
CPlayerGun::CGunMorph::CGunMorph(float gunTransformTime, float holoHoldTime)
|
CPlayerGun::CGunMorph::CGunMorph(float gunTransformTime, float holoHoldTime)
|
||||||
: x4_gunTransformTime(gunTransformTime), x10_holoHoldTime(fabs(holoHoldTime)) {}
|
: x0_yLerp(0.f)
|
||||||
|
, x4_gunTransformTime(CMath::Sign(gunTransformTime))
|
||||||
|
, x8_remTime(0.f)
|
||||||
|
, xc_speed(0.1f)
|
||||||
|
, x10_holoHoldTime(fabs(holoHoldTime))
|
||||||
|
, x14_remHoldTime(2.f)
|
||||||
|
, x18_transitionFactor(1.f)
|
||||||
|
, x1c_dir(kD_Done)
|
||||||
|
, x20_gunState(kGS_OutWipeDone)
|
||||||
|
, x24_24_morphing(false)
|
||||||
|
, x24_25_weaponChanged(false) {}
|
||||||
|
|
||||||
void CPlayerGun::CGunMorph::StartWipe(CPlayerGun::CGunMorph::EDir) {}
|
void CPlayerGun::CGunMorph::StartWipe(CPlayerGun::CGunMorph::EDir) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue