2016-07-22 19:46:30 +00:00
|
|
|
#include "CPlayer.hpp"
|
|
|
|
#include "CActorParameters.hpp"
|
|
|
|
#include "CMorphBall.hpp"
|
2016-11-22 20:43:16 +00:00
|
|
|
#include "Weapon/CPlayerGun.hpp"
|
2016-08-17 20:05:23 +00:00
|
|
|
#include "CStateManager.hpp"
|
2016-09-25 16:45:22 +00:00
|
|
|
#include "CSimplePool.hpp"
|
|
|
|
#include "GameGlobalObjects.hpp"
|
2016-08-17 20:05:23 +00:00
|
|
|
#include "Particle/CGenDescription.hpp"
|
2016-07-22 19:46:30 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
static CModelData MakePlayerAnimRes(ResId resId, const zeus::CVector3f& scale)
|
|
|
|
{
|
2016-09-12 04:53:28 +00:00
|
|
|
return {CAnimRes(resId, 0, scale, 0, true), 1};
|
2016-07-22 19:46:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CPlayer::CPlayer(TUniqueId uid, const zeus::CTransform& xf, const zeus::CAABox& aabb, unsigned int resId,
|
2016-09-01 09:31:18 +00:00
|
|
|
const zeus::CVector3f& playerScale, float mass, float stepUp, float stepDown, float f4,
|
|
|
|
const CMaterialList& ml)
|
2016-12-19 18:27:58 +00:00
|
|
|
: CPhysicsActor(uid, true, "CPlayer", CEntityInfo(kInvalidAreaId, CEntity::NullConnectionList), xf,
|
|
|
|
MakePlayerAnimRes(resId, playerScale), ml, aabb, SMoverData(mass), CActorParameters::None(), stepUp,
|
|
|
|
stepDown)
|
2016-07-22 19:46:30 +00:00
|
|
|
{
|
|
|
|
x768_morphball.reset(new CMorphBall(*this, f4));
|
|
|
|
}
|
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::IsTransparent() const { return x588_alpha < 1.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::Update(float, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
|
|
|
bool CPlayer::IsPlayerDeadEnough() const
|
|
|
|
{
|
2016-09-25 16:45:22 +00:00
|
|
|
if (x2f8_morphTransState == 0)
|
|
|
|
return x9f4_ < 2.5f;
|
|
|
|
else if (x2f8_morphTransState == 1)
|
|
|
|
return x9f4_ < 6.f;
|
|
|
|
|
2016-09-25 18:20:58 +00:00
|
|
|
return false;
|
|
|
|
}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::AsyncLoadSuit(CStateManager& mgr) { x490_gun->AsyncLoadSuit(mgr); }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::LoadAnimationTokens() {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::CanRenderUnsorted(CStateManager& mgr) const { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
const CDamageVulnerability* CPlayer::GetDamageVulnerability(const zeus::CVector3f& v1, const zeus::CVector3f& v2,
|
2016-08-15 01:19:04 +00:00
|
|
|
const CDamageInfo& info) const
|
|
|
|
{
|
2016-08-17 20:05:23 +00:00
|
|
|
return nullptr;
|
2016-08-15 01:19:04 +00:00
|
|
|
}
|
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
const CDamageVulnerability* CPlayer::GetDamageVulnerability() const { return nullptr; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
zeus::CVector3f CPlayer::GetHomingPosition(CStateManager& mgr, float) const { return {}; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
zeus::CVector3f CPlayer::GetAimPosition(CStateManager& mgr, float) const { return {}; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::FluidFXThink(CActor::EFluidState, CScriptWater& water, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
zeus::CVector3f CPlayer::GetDamageLocationWR() const { return {}; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::GetPrevDamageAmount() const { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::GetDamageAmount() const { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::WasDamaged() const { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::TakeDamage(bool, const zeus::CVector3f&, float, EWeaponType, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::Accept(IVisitor& visitor) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
CHealthInfo* CPlayer::HealthInfo(CStateManager& mgr) { return nullptr; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::IsUnderBetaMetroidAttack(CStateManager& mgr) const { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
rstl::optional_object<zeus::CAABox> CPlayer::GetTouchBounds() const { return {}; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::Touch(CActor&, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateScanningState(const CFinalInput& input, CStateManager& mgr, float) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::ValidateScanning(const CFinalInput& input, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::SetScanningState(EPlayerScanState, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::GetExplorationMode() const { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::GetCombatMode() const { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::RenderGun(CStateManager& mgr, const zeus::CVector3f&) const {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::Render(CStateManager& mgr) const {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::RenderReflectedPlayer(CStateManager& mgr) const {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::PreRender(CStateManager& mgr, const zeus::CFrustum&) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::CalculateRenderBounds() {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::AddToRenderer(const zeus::CFrustum&, CStateManager&) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::ComputeFreeLook(const CFinalInput& input) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateFreeLook(float dt) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::GetMaximumPlayerPositiveVerticalVelocity(CStateManager&) const { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::ProcessInput(const CFinalInput&, CStateManager&) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::GetFrozenState() const { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::Think(float, CStateManager&) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-09-25 16:45:22 +00:00
|
|
|
void CPlayer::PreThink(float dt, CStateManager& mgr)
|
2016-08-15 01:19:04 +00:00
|
|
|
{
|
2016-09-25 16:45:22 +00:00
|
|
|
x558_ = false;
|
|
|
|
x55c_ = 0.f;
|
|
|
|
x560_ = 0.f;
|
|
|
|
x564_ = zeus::CVector3f::skZero;
|
|
|
|
xa04_ = dt;
|
2016-08-15 01:19:04 +00:00
|
|
|
}
|
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::SetVisorSteam(float, float, float, u32, bool) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateFootstepBounds(const CFinalInput& input, CStateManager&, float) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
u16 CPlayer::GetMaterialSoundUnderPlayer(CStateManager& mgr, const u16*, int, u16) { return 0; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-26 07:58:44 +00:00
|
|
|
u16 CPlayer::SfxIdFromMaterial(const CMaterialList& mat, const u16* idList, u32 tableLen, u16 defId)
|
|
|
|
{
|
|
|
|
u16 id = defId;
|
|
|
|
for (u32 i = 0 ; i < tableLen; ++i)
|
|
|
|
{
|
|
|
|
if (mat.HasMaterial(EMaterialTypes(i)) && idList[i] != 0xFFFF)
|
|
|
|
id = idList[i];
|
|
|
|
}
|
|
|
|
return id;
|
|
|
|
}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateCrosshairsState(const CFinalInput&) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateVisorTransition(float, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateVisorState(const CFinalInput&, float, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::ForceGunOrientation(const zeus::CTransform&, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateDebugCamera(CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
|
|
|
CFirstPersonCamera& CPlayer::GetFirstPersonCamera(CStateManager& mgr)
|
|
|
|
{
|
2016-08-17 20:05:23 +00:00
|
|
|
return *mgr.GetCameraManager()->GetFirstPersonCamera();
|
2016-08-15 01:19:04 +00:00
|
|
|
}
|
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateGunTransform(const zeus::CVector3f&, float, CStateManager& mgr, bool) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::DrawGun(CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::HolsterGun(CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::GetMorphballTransitionState() const { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateGrappleArmTransform(const zeus::CVector3f&, CStateManager& mgr, float) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::ApplyGrappleForces(const CFinalInput& input, CStateManager& mgr, float) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::ValidateFPPosition(const zeus::CVector3f& pos, CStateManager& mgr) { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateGrappleState(const CFinalInput& input, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::ApplyGrappleJump(CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::BeginGrapple(zeus::CVector3f&, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::BreakGrapple(CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::PreventFallingCameraPitch() {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::OrbitCarcass(CStateManager&) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::OrbitPoint(EPlayerOrbitType, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
zeus::CVector3f CPlayer::GetHUDOrbitTargetPosition() const { return {}; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::SetOrbitState(EPlayerOrbitState, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::SetOrbitTargetId(TUniqueId) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateOrbitPosition(float, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateOrbitZPosition() {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateOrbitFixedPosition() {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::SetOrbitPosition(float, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateAimTarget(CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateAimTargetTimer(float) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::ValidateAimTargetId(TUniqueId, CStateManager& mgr) { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::ValidateObjectForMode(TUniqueId, CStateManager& mgr) const { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
TUniqueId CPlayer::FindAimTargetId(CStateManager& mgr) { return {}; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
TUniqueId CPlayer::CheckEnemiesAgainstOrbitZone(const std::vector<TUniqueId>&, EPlayerZoneInfo, EPlayerZoneType,
|
|
|
|
CStateManager& mgr) const
|
2016-08-15 01:19:04 +00:00
|
|
|
{
|
2016-08-17 20:05:23 +00:00
|
|
|
return {};
|
2016-08-15 01:19:04 +00:00
|
|
|
}
|
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
TUniqueId CPlayer::FindOrbitTargetId(CStateManager& mgr) { return {}; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateOrbitableObjects(CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
|
|
|
TUniqueId CPlayer::FindBestOrbitableObject(const std::vector<TUniqueId>&, EPlayerZoneInfo, CStateManager& mgr) const
|
|
|
|
{
|
2016-08-17 20:05:23 +00:00
|
|
|
return {};
|
2016-08-15 01:19:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CPlayer::FindOrbitableObjects(const std::vector<TUniqueId>&, std::vector<TUniqueId>&, EPlayerZoneInfo,
|
|
|
|
EPlayerZoneType, CStateManager& mgr, bool) const
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::WithinOrbitScreenBox(const zeus::CVector3f&, EPlayerZoneInfo, EPlayerZoneType) const { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::WithinOrbitScreenEllipse(const zeus::CVector3f&, EPlayerZoneInfo) const { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::CheckOrbitDisableSourceList(CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::CheckOrbitDisableSourceList() const {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::RemoveOrbitDisableSource(TUniqueId) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::AddOrbitDisableSource(CStateManager& mgr, TUniqueId) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateOrbitPreventionTimer(float) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateOrbitModeTimer(float) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateOrbitZone(CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateOrbitInput(const CFinalInput& input, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateOrbitSelection(const CFinalInput& input, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateOrbitOrientation(CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::UpdateOrbitTarget(CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::GetOrbitMaxLockDistance(CStateManager& mgr) const { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::GetOrbitMaxTargetDistance(CStateManager& mgr) const { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::ValidateOrbitTargetId(TUniqueId, CStateManager& mgr) const { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::ValidateCurrentOrbitTargetId(CStateManager& mgr) { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::ValidateOrbitTargetIdAndPointer(TUniqueId, CStateManager& mgr) const { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
zeus::CVector3f CPlayer::GetBallPosition() const { return {}; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
zeus::CVector3f CPlayer::GetEyePosition() const { return {}; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::GetEyeHeight() const { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::GetStepUpHeight() const { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::GetStepDownHeight() const { return 0.f; }
|
2016-08-14 21:11:44 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::Teleport(const zeus::CTransform& xf, CStateManager& mgr, bool) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
zeus::CTransform CPlayer::CreateTransformFromMovementDirection() const { return {}; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
const CCollisionPrimitive& CPlayer::GetCollisionPrimitive() const { return CPhysicsActor::GetCollisionPrimitive(); }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
zeus::CTransform CPlayer::GetPrimitiveTransform() const { return {}; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
bool CPlayer::CollidedWith(TUniqueId, const CCollisionInfoList&, CStateManager& mgr) { return false; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::GetActualFirstPersonMaxVelocity() const { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::SetMoveState(EPlayerMovementState, CStateManager& mgr) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::JumpInput(const CFinalInput& input, CStateManager& mgr) { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::TurnInput(const CFinalInput& input) const { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::StrafeInput(const CFinalInput& input) const { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::ForwardInput(const CFinalInput& input, float) const { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::ComputeMovement(const CFinalInput& input, CStateManager& mgr, float) {}
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::GetWeight() const { return 0.f; }
|
2016-08-15 01:19:04 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
float CPlayer::GetDampedClampedVelocityWR() const { return 0.f; }
|
2016-09-25 16:45:22 +00:00
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
void CPlayer::Touch() {}
|
2016-09-25 16:45:22 +00:00
|
|
|
|
|
|
|
void CPlayer::CVisorSteam::SetSteam(float a, float b, float c, ResId d, bool e)
|
|
|
|
{
|
|
|
|
if (x1c_ == -1 || a > x10_)
|
|
|
|
{
|
|
|
|
x10_ = a;
|
|
|
|
x14_ = b;
|
|
|
|
x18_ = c;
|
|
|
|
x1c_ = d;
|
|
|
|
}
|
|
|
|
x28_ = e;
|
|
|
|
}
|
|
|
|
|
2016-12-19 18:27:58 +00:00
|
|
|
ResId CPlayer::CVisorSteam::GetTextureId() const { return xc_; }
|
2016-09-25 16:45:22 +00:00
|
|
|
|
|
|
|
void CPlayer::CVisorSteam::Update(float dt)
|
|
|
|
{
|
|
|
|
if (x1c_ == -1)
|
|
|
|
x0_ = 0.f;
|
|
|
|
else
|
|
|
|
{
|
|
|
|
x0_ = x10_;
|
|
|
|
x4_ = x14_;
|
|
|
|
x8_ = x18_;
|
|
|
|
xc_ = x1c_;
|
|
|
|
}
|
|
|
|
|
|
|
|
x1c_ = -1;
|
|
|
|
if ((x20_ - x0_) < 0.000009999f || std::fabs(x20_) > 0.000009999f)
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (x20_ > x0_)
|
|
|
|
{
|
|
|
|
if (x24_ <= 0.f)
|
|
|
|
{
|
|
|
|
x20_ -= (dt / x8_);
|
|
|
|
x20_ = std::min(x20_, x0_);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
x24_ = x0_ - dt;
|
|
|
|
x24_ = zeus::max(0.f, x24_);
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
CToken tmpTex = g_SimplePool->GetObj({SBIG('TXTR'), xc_});
|
|
|
|
if (!tmpTex)
|
|
|
|
return;
|
|
|
|
|
|
|
|
x20_ += (x20_ + (dt / x4_));
|
|
|
|
if (x20_ > x0_)
|
|
|
|
x20_ = x0_;
|
|
|
|
|
|
|
|
x24_ = 0.1f;
|
|
|
|
}
|
2016-07-22 19:46:30 +00:00
|
|
|
}
|