2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-15 07:26:10 +00:00

More CScriptSpecialFunction imps, fix intermittent crash in CAnimTreeTweenBase

This commit is contained in:
2018-11-18 21:00:33 -08:00
parent 22da3a0f89
commit 96f20512bb
11 changed files with 179 additions and 29 deletions

View File

@@ -1,4 +1,5 @@
#include "CBurrower.hpp"
#include "CStateManager.hpp"
namespace urde::MP1
{
@@ -11,4 +12,17 @@ CBurrower::CBurrower(TUniqueId uid, std::string_view name, const CEntityInfo& in
{
}
void CBurrower::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr)
{
CPatterned::AcceptScriptMsg(msg, uid, mgr);
if (msg == EScriptObjectMessage::Registered)
x450_bodyController->Activate(mgr);
else if (msg == EScriptObjectMessage::InitializedInArea)
{
}
else if (msg == EScriptObjectMessage::InvulnDamage)
x6a4_ = 1.f;
}
}