Match initAfterPlacement

This commit is contained in:
Headpenguin 2023-06-28 13:22:38 -04:00
parent 6584b3be30
commit 900ebb1b4c
2 changed files with 21 additions and 1 deletions

View File

@ -171,7 +171,7 @@ __ct__10MarioActorFPCc,MarioActor.o,Player.a,false
__dt__10MarioActorFv,MarioActor.o,Player.a,false
init__10MarioActorFRC12JMapInfoIter,MarioActor.o,Player.a,true
init2__10MarioActorFRCQ29JGeometry8TVec3<f>RCQ29JGeometry8TVec3<f>l,MarioActor.o,Player.a,false
initAfterPlacement__10MarioActorFv,MarioActor.o,Player.a,false
initAfterPlacement__10MarioActorFv,MarioActor.o,Player.a,true
initAfterOpeningDemo__10MarioActorFv,MarioActor.o,Player.a,false
calcBaseFrontVec__10MarioActorFRCQ29JGeometry8TVec3<f>,MarioActor.o,Player.a,false
playSound__10MarioActorFPCcl,MarioActor.o,Player.a,false

1 Symbol Name Object File Library Archive Matching
171 __dt__10MarioActorFv MarioActor.o Player.a false
172 init__10MarioActorFRC12JMapInfoIter MarioActor.o Player.a true
173 init2__10MarioActorFRCQ29JGeometry8TVec3<f>RCQ29JGeometry8TVec3<f>l MarioActor.o Player.a false
174 initAfterPlacement__10MarioActorFv MarioActor.o Player.a false true
175 initAfterOpeningDemo__10MarioActorFv MarioActor.o Player.a false
176 calcBaseFrontVec__10MarioActorFRCQ29JGeometry8TVec3<f> MarioActor.o Player.a false
177 playSound__10MarioActorFPCcl MarioActor.o Player.a false

View File

@ -35,3 +35,23 @@ void MarioActor::init(const JMapInfoIter &rInfo) {
}
init2(stack_24, stack_18, stack_8);
}
void MarioActor::initAfterPlacement() {
updateGravityVector(true, true);
_230 -> _1D8 = _240;
_230 -> _1F0 = -_240;
_230 -> _1FC = -_240;
_300 = _230 -> _1F0;
_2d0 = _300;
/*TVec3f stack_14 = _240;
stack_14.scale(-70f);
_2c4 = stack_14;*/
_2c4 = _240 % -70f;
calcCenterPos();
MR::updateHitSensorsAll(this);
_360 = getGravityVector();
_1c0 = 1;
_9f4 = getGravityVector();
updateCameraInfo();
calcBaseFrontVec(-_240);
}