Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s32 func_80B6E090(BgKin2Bombwall *this, GlobalContext *globalCtx) {
- f32 spF8;
- f32 spF4;
- f32 spF0;
- ? spE4;
- f32 spE0;
- f32 spDC;
- f32 spD8;
- f32 spD4;
- f32 spD0;
- f32 spCC;
- s32 spAC;
- f32 *temp_s5;
- s32 temp_a0;
- s32 temp_s2;
- s32 temp_s3;
- void *temp_s4;
- s32 phi_v0;
- void *phi_s4;
- s32 phi_s3;
- s32 phi_s0;
- ?32 phi_s1;
- s32 phi_s0_2;
- Matrix_RotateY(this->dyna.actor.shape.rot.y, (u8)0U);
- temp_s5 = &spF0;
- phi_v0 = 0;
- phi_s3 = 0;
- loop_1:
- temp_a0 = phi_v0 + 1;
- spAC = temp_a0;
- phi_s4 = &D_80B6E730;
- loop_2:
- temp_s3 = (phi_s3 + 1) & 7;
- spD8 = (f32) ((Rand_Next() >> 0x1C) + *phi_s4);
- spDC = ((Rand_ZeroOne() - 0.5f) * 15.0f) + ((f32) temp_a0 * 15.0f);
- spE0 = (Rand_ZeroOne() * 20.0f) - 10.0f;
- spCC = (2.0f * (Rand_ZeroOne() - 0.5f)) + (spD8 * 0.018461538f);
- spD0 = (Rand_ZeroOne() * 7.0f) + 4.0f;
- spD4 = spE0 * 0.3f;
- SysMatrix_MultiplyVector3fByState((Vec3f *) &spD8, (Vec3f *) temp_s5);
- SysMatrix_MultiplyVector3fByState((Vec3f *) &spCC, (Vec3f *) &spE4);
- spF0 = spF0 + this->dyna.actor.world.pos.x;
- spF4 = spF4 + this->dyna.actor.world.pos.y;
- spF8 = spF8 + this->dyna.actor.world.pos.z;
- if ((Rand_Next() & 3) == 0) {
- phi_s0_2 = 0x20;
- } else {
- phi_s0_2 = 0x40;
- }
- if ((temp_s3 < 2) || (phi_s0 = phi_s0_2, phi_s1 = 0, (Rand_Next() > 0))) {
- temp_s2 = Rand_Next();
- func_800B0E48(globalCtx, temp_s5, &D_801D15B0, &D_80B6E724, &D_80B6E71C, &D_80B6E720, ((u32) temp_s2 >> 0x1B) + 0x46, (Rand_Next() >> 0x1A) + 0x3C);
- phi_s0 = (s32) (s16) (phi_s0_2 | 1);
- phi_s1 = 1;
- }
- EffectSsKakera_Spawn(globalCtx, (Vec3f *) temp_s5, (Vec3f *) &spE4, (Vec3f *) temp_s5, -0x226, phi_s0, 0x1E, 0, 0, (?32) *(&D_80B6E738 + (temp_s3 * 2)), phi_s1, 0, 0x32, -1, 0x1F5, 0x6000128);
- temp_s4 = phi_s4 + 1;
- phi_s4 = temp_s4;
- phi_s3 = temp_s3;
- if (temp_s4 != &D_80B6E735) {
- goto loop_2;
- }
- phi_v0 = spAC;
- phi_s3 = temp_s3;
- if (spAC != 6) {
- goto loop_1;
- }
- return spAC;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement