Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
SpitInk.inc.c
Go to the documentation of this file.
1#include "common.h"
2#include "effects.h"
3
4API_CALLABLE(N(SpitInk)) {
5 Bytecode* args = script->ptrReadPos;
6 EffectInstance* effect;
7 f32 temp_f28;
8 f32 temp_f26;
9 f32 temp_f20;
10 f32 temp_f22;
11 f32 temp_f24;
12 f32 temp_f20_2;
13
14 temp_f28 = evt_get_variable(script, *args++);
15 temp_f26 = evt_get_variable(script, *args++);
16 evt_get_variable(script, *args++);
17 temp_f20 = evt_get_variable(script, *args++);
18 temp_f22 = evt_get_variable(script, *args++);
19 temp_f24 = evt_get_variable(script, *args++);
20 temp_f20_2 = atan2(temp_f28, temp_f26, temp_f20, temp_f22 + 40.0f);
21
22 effect = fx_water_fountain(0, temp_f20 - 10.0f, temp_f22 + 60.0f, temp_f24 + 20.0f, 2.5f, 40);
23 effect->data.waterFountain->unk_38 = temp_f20_2;
24 effect->data.waterFountain->unk_18 = 2;
25 effect->data.waterFountain->unk_1C = 2;
26 effect->data.waterFountain->unk_20 = 2;
27 effect->data.waterFountain->unk_28 = 80;
28 effect->data.waterFountain->unk_2C = 80;
29 effect->data.waterFountain->unk_30 = 80;
30 return ApiStatus_DONE2;
31}
#define atan2
struct WaterFountainFXData * waterFountain
Definition effects.h:2556
EffectData data
Definition effects.h:2605
#define ApiStatus_DONE2
Definition evt.h:118
s32 Bytecode
Definition evt.h:7
s32 evt_get_variable(Evt *script, Bytecode var)
Definition evt.c:1690