mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-27 22:48:59 -04:00
This commit is contained in:
+20
-20
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @file d_a_obj_kag.cpp
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include "d/dolzel_rel.h" // IWYU pragma: keep
|
||||
@@ -223,7 +223,7 @@ void daObjKAG_c::fly() {
|
||||
if (field_0x85a == 0) {
|
||||
if (flamePos != NULL && current.pos.absXZ(*flamePos) < 1800.0f) {
|
||||
field_0x84e = cLib_targetAngleY(¤t.pos, flamePos) + cM_rndFX(8192.0f);
|
||||
|
||||
|
||||
if (current.pos.absXZ(*flamePos) < 200.0f) {
|
||||
field_0x85a = cM_rndF(4.0f) + 4.0f;
|
||||
} else {
|
||||
@@ -381,7 +381,7 @@ void daObjKAG_c::walk() {
|
||||
void daObjKAG_c::bin_wait() {
|
||||
if (field_0x83c == 0) {
|
||||
mpModelMorf->setAnm((J3DAnmTransform*)dComIfG_getObjectRes("I_Kag", BCK_KAG_FLY), J3DFrameCtrl::EMode_LOOP, 5.0f, 0.0f, 0.0f, -1.0f);
|
||||
fopAcM_OnStatus(this, fopAcM_STATUS_UNK_0x4000);
|
||||
fopAcM_OnStatus(this, fopAcStts_UNK_0x4000_e);
|
||||
mDraw = false;
|
||||
gravity = 0.0f;
|
||||
maxFallSpeed = 0.0f;
|
||||
@@ -448,7 +448,7 @@ void daObjKAG_c::hook() {
|
||||
kag_setParticle();
|
||||
}
|
||||
|
||||
if (!fopAcM_CheckStatus(this, fopAcM_STATUS_HOOK_CARRY_NOW)) {
|
||||
if (!fopAcM_CheckStatus(this, fopAcStts_HOOK_CARRY_NOW_e)) {
|
||||
setAction(&daObjKAG_c::fly);
|
||||
}
|
||||
|
||||
@@ -459,7 +459,7 @@ void daObjKAG_c::hook() {
|
||||
if (dComIfG_Bgsp().LineCross(&lin_chk)) {
|
||||
cM3dGPla plane;
|
||||
cXyz spbc;
|
||||
|
||||
|
||||
dComIfG_Bgsp().GetTriPla(lin_chk, &plane);
|
||||
cXyz* pcVar1 = plane.GetNP();
|
||||
spbc = lin_chk.GetCross();
|
||||
@@ -648,7 +648,7 @@ cPhs_Step daObjKAG_c::create() {
|
||||
cPhs_Step phase = dComIfG_resLoad(&mPhase, "I_Kag");
|
||||
if (phase == cPhs_COMPLEATE_e) {
|
||||
OS_REPORT("KAG PARAM %x\n", fopAcM_GetParam(this));
|
||||
|
||||
|
||||
field_0x85e = fopAcM_GetParam(this) & 3;
|
||||
if (field_0x85e == 3) {
|
||||
field_0x85e = 0;
|
||||
@@ -769,18 +769,18 @@ static actor_method_class l_daObjKAG_Method = {
|
||||
};
|
||||
|
||||
actor_process_profile_definition g_profile_Obj_Kag = {
|
||||
fpcLy_CURRENT_e, // mLayerID
|
||||
7, // mListID
|
||||
fpcPi_CURRENT_e, // mListPrio
|
||||
PROC_Obj_Kag, // mProcName
|
||||
&g_fpcLf_Method.base, // sub_method
|
||||
sizeof(daObjKAG_c), // mSize
|
||||
0, // mSizeOther
|
||||
0, // mParameters
|
||||
&g_fopAc_Method.base, // sub_method
|
||||
485, // mPriority
|
||||
&l_daObjKAG_Method, // sub_method
|
||||
0x000C0100, // mStatus
|
||||
fopAc_ENV_e, // mActorType
|
||||
fopAc_CULLBOX_CUSTOM_e, // cullType
|
||||
/* Layer ID */ fpcLy_CURRENT_e,
|
||||
/* List ID */ 7,
|
||||
/* List Prio */ fpcPi_CURRENT_e,
|
||||
/* Proc Name */ fpcNm_Obj_Kag_e,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(daObjKAG_c),
|
||||
/* Size Other */ 0,
|
||||
/* Parameters */ 0,
|
||||
/* Leaf SubMtd */ &g_fopAc_Method.base,
|
||||
/* Draw Prio */ fpcDwPi_Obj_Kag_e,
|
||||
/* Actor SubMtd */ &l_daObjKAG_Method,
|
||||
/* Status */ fopAcStts_UNK_0x80000_e | fopAcStts_UNK_0x40000_e | fopAcStts_CULL_e,
|
||||
/* Group */ fopAc_ENV_e,
|
||||
/* Cull Type */ fopAc_CULLBOX_CUSTOM_e,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user