17u8
D_E00C8718[8] = { 110, 150, 130, 110, 100, 95, 100, 0 };
27 f32 temp_f4, temp_f8, gravity;
40 spinyObject->
unk_00 = arg0;
44 spinyObject->
life = 1000;
46 spinyObject->
life = time + 60;
49 temp_f8 = arg5 - arg2;
51 gravity = (temp_f8 / temp_f4) - (time * -0.10000000149011612);
53 spinyObject->
rgba = 255;
54 spinyObject->
unk_10 = arg1;
55 spinyObject->
unk_14 = arg2;
56 spinyObject->
unk_18 = arg3;
57 spinyObject->
unk_1C = arg4;
58 spinyObject->
unk_20 = arg5;
59 spinyObject->
unk_24 = arg6;
60 spinyObject->
unk_44 = (arg4 - arg1) / temp_f4;
61 spinyObject->
unk_4C = (arg6 - arg3) / temp_f4;
62 spinyObject->
pos.
x = arg1;
63 spinyObject->
pos.
y = arg2;
64 spinyObject->
pos.
z = arg3;
73 spinyObject->
unk_40 = arg7;
79 spinyObject->
state = -1;
80 spinyObject->
xScale = 1.0f;
81 spinyObject->
yScale = 1.0f;
95 effectInstance->
flags &= ~FX_INSTANCE_FLAG_DISMISS;
96 spinyObject->
life = 16;
99 if (spinyObject->
life < 1000) {
105 if (spinyObject->
life < 0) {
111 state = spinyObject->
state;
116 spinyObject->
state += 1;
117 spinyObject->
yaw -= 40.0f;
127 spinyObject->
state = 0;
134 gravity = spinyObject->
gravity;
136 if ((gravity < 0.0f) && (spinyObject->
pos.
y < 100.0 / 7.0)) {
137 spinyObject->
pos.
y = 100.0f / 7.0f;
139 spinyObject->
gravity = gravity - gravity;
149 renderTask.
dist = 10;
164 s32 temp_s5 = data->
rgba;
165 s32 temp_s6 = data->
unk_00;
#define general_heap_malloc
#define queue_render_task
#define create_effect_instance
struct ThrowSpinyFXData * throwSpiny
#define ASSERT(condition)
@ FX_INSTANCE_FLAG_DISMISS
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_CLOUD_NO_ZCMP
#define SPRITE_WORLD_SCALE_D
#define VIRTUAL_TO_PHYSICAL(addr)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)
void(* appendGfx)(void *)
void throw_spiny_update(EffectInstance *effect)
void throw_spiny_init(EffectInstance *effect)
void throw_spiny_appendGfx(void *effect)
EffectInstance * throw_spiny_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3, f32 arg4, f32 arg5, f32 arg6, f32 arg7, s32 time)
void throw_spiny_render(EffectInstance *effect)
DisplayContext * gDisplayContext