Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
animation_script.h
Go to the documentation of this file.
1#ifndef ANIMATION_SCRIPT_H
2#define ANIMATION_SCRIPT_H
3
4#include "common.h"
5
6typedef s16 AnimScript[];
7
8enum {
29};
30
31#define _AS_ROUND(x) ((int) (x < 0 ? x - 0.5 : x + 0.5))
32#define AS_F(x) (_AS_ROUND((x) * 32767.0 / 180.0))
33
34#define as_End AS_END,
35#define as_Wait(time) AS_WAIT, time,
36#define as_EndLoop AS_END_LOOP,
37#define as_Restart AS_END_LOOP,
38#define as_Loop AS_LOOP,
39#define as_SetRotation(node, x, y, z) AS_SET_ROTATION, node, AS_F(x), AS_F(y), AS_F(z),
40#define as_SetPos(node, x, y, z) AS_SET_POS, node, x, y, z,
41#define as_SetScale(node, x, y, z) AS_SET_SCALE, node, AS_F(x), AS_F(y), AS_F(z),
42#define as_DisableMirroring AS_OP_19,
43
44#define AS_MODEL_ID(modelID) ((modelID) + 1)
45#define AS_NULL_MODEL 0
46
47// used in entity models
48#define ENTITY_ANIM_NULL (void*)(0xFFFFFFFF)
49#endif
s16 AnimScript[]
@ AS_OP_12
@ AS_CLEAR_NODE_FLAGS
@ AS_SET_FLAGS
@ AS_OP_2
@ AS_SET_NODE_FLAGS
@ AS_SET_POS
@ AS_SET_RENDER_MODE
@ AS_OP_9
@ AS_END_LOOP
@ AS_OP_13
@ AS_OP_7
@ AS_SET_ROTATION
@ AS_OP_4
@ AS_OP_11
@ AS_ADD_ROTATION
@ AS_END
@ AS_SET_SCALE
@ AS_OP_19
@ AS_WAIT
@ AS_LOOP