2017-02-21 03:29:28 +00:00
|
|
|
#include "World/CScriptPlayerActor.hpp"
|
|
|
|
#include "World/CActorParameters.hpp"
|
|
|
|
#include "World/CLightParameters.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
2017-11-13 06:19:18 +00:00
|
|
|
CScriptPlayerActor::CScriptPlayerActor(TUniqueId uid, std::string_view name, const CEntityInfo& info,
|
2017-02-21 03:29:28 +00:00
|
|
|
const zeus::CTransform& xf, const CAnimRes& animRes, CModelData&& mData,
|
|
|
|
const zeus::CAABox& aabox, bool b1, const CMaterialList& list, float mass,
|
|
|
|
float zMomentum, const CHealthInfo& hInfo, const CDamageVulnerability& dVuln,
|
|
|
|
const CActorParameters& aParams, bool loop, bool active, u32 w1, u32 w2)
|
|
|
|
: CScriptActor(uid, name, info, xf, std::move(mData), aabox, mass, zMomentum, list, hInfo, dVuln, aParams, loop, active,
|
|
|
|
0, 1.f, false, false, false, false)
|
|
|
|
, x2e8_(animRes)
|
|
|
|
, x304_(w2)
|
|
|
|
, x350_(w1)
|
|
|
|
{
|
|
|
|
x354_24_ = b1;
|
|
|
|
x354_29_ = true;
|
|
|
|
x354_30_ = true;
|
|
|
|
CMaterialList exclude = GetMaterialFilter().GetExcludeList();
|
|
|
|
CMaterialList include = GetMaterialFilter().GetIncludeList();
|
|
|
|
include.Add(EMaterialTypes::Player);
|
|
|
|
SetMaterialFilter(CMaterialFilter::MakeIncludeExclude(include, exclude));
|
|
|
|
|
|
|
|
SetActorLights(aParams.GetLightParameters().MakeActorLights());
|
|
|
|
}
|
|
|
|
|
|
|
|
void CScriptPlayerActor::Think(float, CStateManager&)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void CScriptPlayerActor::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CScriptPlayerActor::SetActive(bool active)
|
|
|
|
{
|
|
|
|
CActor::SetActive(active);
|
|
|
|
xe7_29_ = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CScriptPlayerActor::PreRender(CStateManager&, const zeus::CFrustum&)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void CScriptPlayerActor::AddToRenderer(const zeus::CFrustum&, const CStateManager&) const
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void CScriptPlayerActor::Render(const CStateManager& mgr) const
|
|
|
|
{
|
|
|
|
|
2017-03-26 05:53:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CScriptPlayerActor::TouchModels()
|
|
|
|
{
|
|
|
|
|
2017-02-21 03:29:28 +00:00
|
|
|
}
|
|
|
|
}
|