mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-21 13:36:50 -04:00
E wb documentation + e_rd cleanup (#3125)
* e_rd cleanup * first pass * fix ? * rename * more rename * fix other platform * fix typo * more documentation * more work * fix build * fix * more doc * camera work * more work * cleanup * more work * clean up + fix build * fix build * more work * change mSpeedRate name * change description * more work * fire eff work * fix build * fix match * debug fix ? * update description * rename field
This commit is contained in:
@@ -480,7 +480,7 @@ int daAlink_c::setSyncBoarPos() {
|
||||
|
||||
int daAlink_c::setSyncBoarRunPos() {
|
||||
e_wb_class* boar = (e_wb_class*)mRideAcKeep.getActor();
|
||||
fopAc_ac_c* boar_actor = &boar->mEnemy;
|
||||
fopAc_ac_c* boar_actor = &boar->enemy;
|
||||
|
||||
if (boar == NULL || boar->checkDownDamage()) {
|
||||
boarForceGetOff();
|
||||
|
||||
+748
-725
File diff suppressed because it is too large
Load Diff
@@ -531,7 +531,7 @@ static void e_rdb_end(e_rdb_class* i_this) {
|
||||
anm_init(i_this, e_rdb_class::BCK_RB_ED_DEMO_DOWN, 2.0f, 0, 1.0f);
|
||||
i_this->mMode = 1;
|
||||
if (actor != NULL) {
|
||||
actor->field_0x169e = 60;
|
||||
actor->demo_mode = 60;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -580,12 +580,12 @@ static void e_rdb_end(e_rdb_class* i_this) {
|
||||
break;
|
||||
|
||||
case 10:
|
||||
if ((((actor->mActionID == 102 && actor->mEnemy.speedF > 40.0f) &&
|
||||
if ((((actor->action == 102 && actor->enemy.speedF > 40.0f) &&
|
||||
player->current.pos.x > 1470.0f && player->current.pos.x < 2130.0f)) &&
|
||||
((player->current.pos.z < 200.0f) &&
|
||||
(player->shape_angle.y > 0x7000 || player->shape_angle.y < -0x7000)))
|
||||
{
|
||||
actor->field_0x169e = 80;
|
||||
actor->demo_mode = 80;
|
||||
i_this->mMode = 11;
|
||||
}
|
||||
// [[fallthrough]]
|
||||
|
||||
+2928
-2921
File diff suppressed because it is too large
Load Diff
@@ -918,7 +918,7 @@ BOOL daNpcTheB_c::doEvent() {
|
||||
rv = TRUE;
|
||||
} else {
|
||||
wb_p = (e_wb_class*)fopAcM_SearchByName(fpcNm_E_WB_e);
|
||||
if (wb_p->field_0x169e == 0x60 && wb_p->field_0x16a0 == 1) {
|
||||
if (wb_p->demo_mode == 0x60 && wb_p->demo_timer == 1) {
|
||||
mPersonalCombatAfterFlag = 1;
|
||||
EvCut_PersonalCombatAfter();
|
||||
rv = TRUE;
|
||||
|
||||
@@ -172,10 +172,10 @@ static void* s_obj_sub(void* i_actor, void* i_data) {
|
||||
void daObjCRVFENCE_c::NormalAction() {
|
||||
if (!field_0x5f4) {
|
||||
e_wb_class* wb_p = (e_wb_class*)fpcM_Search(s_obj_sub, this);
|
||||
if (wb_p != NULL && wb_p->mActionID == ACT_PL_RIDE2) {
|
||||
if (wb_p != NULL && wb_p->action == ACT_PL_RIDE2) {
|
||||
fopAcM_OffStatus(this, fopAcStts_CULL_e);
|
||||
fopAcM_seStartCurrent(this, Z2SE_OBJ_SAKU_BREAK, 0);
|
||||
cXyz sp5c(fopAcM_GetPosition(&wb_p->mEnemy));
|
||||
cXyz sp5c(fopAcM_GetPosition(&wb_p->enemy));
|
||||
Mtx mtx;
|
||||
mDoMtx_inverse(field_0x65c->getBaseTRMtx(), mtx);
|
||||
mDoMtx_stack_c::copy(mtx);
|
||||
|
||||
@@ -97,7 +97,7 @@ void daObjCRVLH_DW_c::Obj_Hit() {
|
||||
if (mCyl.ChkCoHit() != 0) {
|
||||
fopAc_ac_c* actor = mCyl.GetCoHitObj()->GetAc();
|
||||
if (fopAcM_GetName(dCc_GetAc(actor)) == fpcNm_E_WB_e &&
|
||||
((e_wb_class*)actor)->mActionID == ACT_PL_RIDE2)
|
||||
((e_wb_class*)actor)->action == ACT_PL_RIDE2)
|
||||
{
|
||||
Break();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user