Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
UnkEffect6FFunc.inc.c
Go to the documentation of this file.
1
#include "
battle/battle.h
"
2
#include "
effects.h
"
3
4
API_CALLABLE(N(UnkEffect6FFunc)) {
5
Bytecode
* args = script->ptrReadPos;
6
EffectInstance
* effect;
7
s32 unusedType =
evt_get_variable
(script, *args++);
8
s32 posX =
evt_get_variable
(script, *args++);
9
s32 posY =
evt_get_variable
(script, *args++);
10
s32 posZ =
evt_get_variable
(script, *args++);
11
f32 scale =
evt_get_float_variable
(script, *args++);
12
s32 duration =
evt_get_variable
(script, *args++);
13
s32 r =
evt_get_variable
(script, *args++);
14
s32 g =
evt_get_variable
(script, *args++);
15
s32 b =
evt_get_variable
(script, *args++);
16
17
effect = fx_cold_breath(1, posX, posY, posZ, scale, duration);
18
effect->
data
.
coldBreath
->
primCol
.
r
= r;
19
effect->
data
.
coldBreath
->
primCol
.
g
= g;
20
effect->
data
.
coldBreath
->
primCol
.
b
= b;
21
effect->
data
.
coldBreath
->
envCol
.
r
= 255;
22
effect->
data
.
coldBreath
->
envCol
.
g
= 255;
23
effect->
data
.
coldBreath
->
envCol
.
b
= 255;
24
25
return
ApiStatus_DONE2
;
26
}
Color4i::r
s32 r
Definition
common_structs.h:126
Color4i::g
s32 g
Definition
common_structs.h:127
Color4i::b
s32 b
Definition
common_structs.h:128
effects.h
EffectData::coldBreath
struct ColdBreathFXData * coldBreath
Definition
effects.h:2575
ColdBreathFXData::envCol
Color4i envCol
Definition
effects.h:1991
ColdBreathFXData::primCol
Color4i primCol
Definition
effects.h:1990
EffectInstance::data
EffectData data
Definition
effects.h:2605
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
evt_get_float_variable
f32 evt_get_float_variable(Evt *script, Bytecode var)
Definition
evt.c:1930
battle.h
src
common
UnkEffect6FFunc.inc.c
Generated by
1.10.0