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
4
API_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
}
atan2
#define atan2
Definition
effect_shims.h:57
effects.h
WaterFountainFXData::unk_20
s32 unk_20
Definition
effects.h:1586
EffectData::waterFountain
struct WaterFountainFXData * waterFountain
Definition
effects.h:2556
WaterFountainFXData::unk_1C
s32 unk_1C
Definition
effects.h:1585
WaterFountainFXData::unk_30
s32 unk_30
Definition
effects.h:1590
WaterFountainFXData::unk_28
s32 unk_28
Definition
effects.h:1588
WaterFountainFXData::unk_38
f32 unk_38
Definition
effects.h:1592
WaterFountainFXData::unk_2C
s32 unk_2C
Definition
effects.h:1589
EffectInstance::data
EffectData data
Definition
effects.h:2605
WaterFountainFXData::unk_18
s32 unk_18
Definition
effects.h:1584
EffectInstance
Definition
effects.h:2601
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
Bytecode
s32 Bytecode
Definition
evt.h:7
evt_get_variable
s32 evt_get_variable(Evt *script, Bytecode var)
Definition
evt.c:1690
src
common
SpitInk.inc.c
Generated by
1.10.0