Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
Plants1.c File Reference

Go to the source code of this file.

Functions

void entity_SpinningFlower_setupGfx (s32 entityIndex)
 
void func_802BB000_E2D930 (Entity *entity)
 
void func_802BB0A0_E2D9D0 (Entity *entity)
 
void func_802BB228_E2DB58 (Entity *entity)
 
void entity_SpinningFlower_init (Entity *entity)
 
void func_802BB314_E2DC44 (Entity *entity)
 
void func_802BB34C_E2DC7C (Entity *entity)
 
void entity_PinkFlowerLight_setupGfx (s32 entityIndex)
 
void entity_PinkFlower_idle (Entity *entity)
 
void entity_PinkFlower_init (Entity *entity)
 
void entity_PinkFlowerLight_init (Entity *entity)
 
void entity_PinkFlowerLight_idle (Entity *entity)
 
void func_802BB8D4_E2E204 (Entity *entity)
 
void func_802BB98C_E2E2BC (Entity *entity)
 
void entity_CymbalPlant_idle (Entity *entity)
 

Variables

Gfx Entity_RenderNone []
 
AnimScript Entity_CymbalPlant_AnimationIdle
 
AnimScript Entity_CymbalPlant_AnimationGrab
 
AnimScript Entity_PinkFlower_AnimationLightUp
 
StaticAnimatorNodeEntity_CymbalPlant_Mesh []
 
EntityBlueprint Entity_PinkFlowerLight
 
StaticAnimatorNodeEntity_PinkFlower_Mesh []
 
AnimScript Entity_PinkFlower_AnimationIdle
 
Mtx D_0A001098_E9C598
 
Gfx D_0A0013B8_E9C8B8 []
 
Mtx D_0A000B70_E9D470
 
Gfx D_0A000D18_E9D618 []
 
Gfx Entity_SpinningFlower_Render []
 
BSS f32 D_802BCE20
 
BSS Vec3s FlowerGoalPosition
 
EntityScript Entity_SpinningFlower_Script
 
EntityScript Entity_PinkFlower_Script
 
EntityScript Entity_PinkFlowerLight_Script
 
EntityScript Entity_CymbalPlant_Update
 
EntityModelScript Entity_PinkFlowerLight_RenderScript = STANDARD_ENTITY_MODEL_SCRIPT(Entity_RenderNone, RENDER_MODE_SURFACE_XLU_LAYER2)
 
EntityModelScript Entity_SpinningFlower_RenderScript = STANDARD_ENTITY_MODEL_SCRIPT(Entity_SpinningFlower_Render, RENDER_MODE_SURFACE_XLU_LAYER1)
 
DmaEntry Entity_CymbalPlant_dma [] = { ENTITY_ROM(CymbalPlant_gfx), ENTITY_ROM(CymbalPlant_anim) }
 
DmaEntry Entity_PinkFlower_dma [] = { ENTITY_ROM(PinkFlower_gfx), ENTITY_ROM(PinkFlower_anim) }
 
EntityBlueprint Entity_CymbalPlant
 
EntityBlueprint Entity_PinkFlower
 
EntityBlueprint Entity_SpinningFlower
 

Function Documentation

◆ entity_SpinningFlower_setupGfx()

void entity_SpinningFlower_setupGfx ( s32 entityIndex)

Definition at line 26 of file Plants1.c.

26 {
27 Entity* entity = get_entity_by_index(entityIndex);
29 Gfx* gfxPos = gMainGfxPos;
30 Matrix4f sp18;
31 Matrix4f sp58;
32 Matrix4f sp98;
33 Gfx* gfx;
34
35 guMtxL2F(sp18, ENTITY_ADDR(entity, Mtx*, &D_0A000B70_E9D470));
36 guRotateF(sp58, data->rot.x, 1.0f, 0.0f, 0.0f);
37 guRotateF(sp98, data->rot.z, 0.0f, 0.0f, 1.0f);
38 guMtxCatF(sp58, sp98, sp98);
39 guRotateF(sp58, data->rot.y, 0.0f, 1.0f, 0.0f);
40 guMtxCatF(sp98, sp58, sp58);
41 guMtxCatF(sp58, sp18, sp18);
42 guMtxF2L(sp18, &data->unk_30);
44 gSPMatrix(gfxPos++, &gDisplayContext->matrixStack[gMatrixListPos++], G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW);
45 gfx = ENTITY_ADDR(entity, Gfx*, D_0A000D18_E9D618);
46 gSPDisplayList(gfxPos++, gfx);
47 gSPPopMatrix(gfxPos++, G_MTX_MODELVIEW);
48 gMainGfxPos = gfxPos;
49}
Mtx D_0A000B70_E9D470
Gfx D_0A000D18_E9D618[]
Mtx matrixStack[0x200]
f32 Matrix4f[4][4]
struct SpinningFlowerData * spinningFlower
#define guRotateF
#define guMtxF2L
#define guMtxCatF
#define ENTITY_ADDR(entity, type, data)
Definition entity.h:64
Entity * get_entity_by_index(s32 index)
Definition entity.c:530
EntityData dataBuf
Gfx * gMainGfxPos
Definition cam_main.c:15
u16 gMatrixListPos
Definition main_loop.c:45
DisplayContext * gDisplayContext
Definition cam_main.c:16

Referenced by entity_SpinningFlower_init().

◆ func_802BB000_E2D930()

void func_802BB000_E2D930 ( Entity * entity)

Definition at line 51 of file Plants1.c.

51 {
53 PlayerStatus* playerStatus = &gPlayerStatus;
54
56 if (playerStatus->actionState == ACTION_STATE_RIDE) {
58 } else if (playerStatus->actionState != ACTION_STATE_USE_SPINNING_FLOWER) {
63 }
64 }
65}
BSS Vec3s FlowerGoalPosition
Definition Plants1.c:24
@ PA_FLAG_INTERRUPT_USE_PARTNER
forces actions with bow, parakarry, watt, and lakilester to end (sushie not tested)
Definition enums.h:3093
@ ENTITY_COLLISION_PLAYER_TOUCH_FLOOR
Definition enums.h:2648
@ ACTION_STATE_RIDE
Definition enums.h:2461
@ ACTION_STATE_USE_SPINNING_FLOWER
Definition enums.h:2457
s32 is_picking_up_item(void)
void set_action_state(s32 actionState)
Definition 7E9D0.c:209
u8 collisionFlags
PlayerStatus gPlayerStatus
Definition 77480.c:39

Referenced by func_802BB0A0_E2D9D0(), and func_802BB228_E2DB58().

◆ func_802BB0A0_E2D9D0()

void func_802BB0A0_E2D9D0 ( Entity * entity)

Definition at line 67 of file Plants1.c.

67 {
69 PlayerStatus* playerStatus = &gPlayerStatus;
70
72 switch (data->state) {
73 case 0:
74 data->unk_18 = 0;
75 data->unk_00 = 0;
76 data->state = 1;
77 data->rot.x = 0.0f;
78 data->rot.z = 0.0f;
79 break;
80 case 1:
82 data->spinSpeed += 0.02;
83 if (data->spinSpeed > 2.0) {
84 if (data->spinSpeed > 2.0) {
85 data->spinSpeed -= 0.4;
86 }
87 }
88 } else {
89 data->spinSpeed += 0.8;
90 if (data->spinSpeed > 14.0f) {
91 data->spinSpeed = 14.0f;
92 }
93 }
94 break;
95 }
96
97 data->rot.y = clamp_angle(data->rot.y + data->spinSpeed);
98
100 (playerStatus->animFlags & PA_FLAG_SPINNING) &&
101 fabs(dist2D(entity->pos.x, entity->pos.z, playerStatus->pos.x, playerStatus->pos.z)) < 60.0)
102 {
104 }
105}
void func_802BB000_E2D930(Entity *entity)
Definition Plants1.c:51
#define clamp_angle
@ PA_FLAG_SPINNING
Definition enums.h:3107
f64 fabs(f64 f)
f32 dist2D(f32 ax, f32 ay, f32 bx, f32 by)
Definition 43F0.c:670
void exec_entity_commandlist(Entity *entity)
Definition entity.c:313

◆ func_802BB228_E2DB58()

void func_802BB228_E2DB58 ( Entity * entity)

Definition at line 107 of file Plants1.c.

107 {
109
110 func_802BB000_E2D930(entity);
111 data->spinSpeed += 2.0;
112 if (data->spinSpeed > 40.0f) {
113 data->spinSpeed = 40.0f;
114 }
115 data->rot.y = clamp_angle(data->rot.y + data->spinSpeed);
116}

◆ entity_SpinningFlower_init()

void entity_SpinningFlower_init ( Entity * entity)

Definition at line 118 of file Plants1.c.

118 {
120 s32 x, y, z;
121
125 if (!(x | y | z)) {
126 x = entity->pos.x;
127 y = entity->pos.y + 100.0f;
128 z = entity->pos.z;
129 }
130
131 data->goalPos.x = x;
132 data->goalPos.y = y;
133 data->goalPos.z = z;
134 data->state = 0;
136}
void entity_SpinningFlower_setupGfx(s32 entityIndex)
Definition Plants1.c:26
s32 CreateEntityVarArgBuffer[]
Definition entity.c:35
void(* renderSetupFunc)(s32)

◆ func_802BB314_E2DC44()

void func_802BB314_E2DC44 ( Entity * entity)

Definition at line 138 of file Plants1.c.

138 {
140}
#define sfx_play_sound_at_position
@ SOUND_LOOP_SPINNING_FLOWER
Definition enums.h:1687
@ SOUND_SPACE_DEFAULT
Definition enums.h:1737

◆ func_802BB34C_E2DC7C()

void func_802BB34C_E2DC7C ( Entity * entity)

Definition at line 142 of file Plants1.c.

142 {
145}
@ SOUND_ID_TRIGGER_CHANGE_SOUND
Definition enums.h:532
@ SOUND_LRAW_SPINNING_FLOWER
Definition enums.h:1215
void snd_stop_tracking_env_sound_pos(s32 soundID, s32 keepPlaying)
Definition sfx.c:447
void sfx_play_sound(s32 soundID)
Definition sfx.c:517

◆ entity_PinkFlowerLight_setupGfx()

void entity_PinkFlowerLight_setupGfx ( s32 entityIndex)

Definition at line 147 of file Plants1.c.

147 {
148 Entity* entity = get_entity_by_index(entityIndex);
149 PinkFlowerData* data = entity->dataBuf.pinkFlower;
150 Gfx* gfxPos = gMainGfxPos;
151 Matrix4f sp18;
152 Matrix4f sp58;
153 f32 sinAngle, cosAngle;
154
155 guRotateF(sp58, entity->rot.y, 0.0f, 1.0f, 0.0f);
156 guScaleF(sp18, entity->scale.x, entity->scale.x, entity->scale.x);
157 guMtxCatF(sp18, sp58, sp58);
158 guMtxL2F(sp18, ENTITY_ADDR(entity, Mtx*, &D_0A001098_E9C598));
159 sin_cos_rad(DEG_TO_RAD(gCameras[CAM_DEFAULT].curYaw + 180.0f), &sinAngle, &cosAngle);
160 sp18[3][1] += 10.0f;
161 sp18[3][2] -= 10.0f;
162 guMtxCatF(sp58, sp18, sp18);
163 guRotateF(sp58, entity->rot.z, 0.0f, 0.0f, 1.0f);
164 guMtxCatF(sp18, sp58, sp18);
165 guRotateF(sp58, data->initialRotY, 0.0f, 1.0f, 0.0f);
166 guMtxCatF(sp18, sp58, sp18);
167 guTranslateF(sp58, entity->pos.x + 16.0f * sinAngle, entity->pos.y , entity->pos.z - 16.0f * cosAngle);
168 guMtxCatF(sp18, sp58, sp18);
169 gDPSetCombineMode(gfxPos++, PM_CC_01, PM_CC_02);
170 gDPSetPrimColor(gfxPos++, 0, 0, 0, 0, 0, entity->alpha);
172 gSPMatrix(gfxPos++, &gDisplayContext->matrixStack[gMatrixListPos++], G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
173 gSPDisplayList(gfxPos++, D_0A0013B8_E9C8B8);
174 gSPPopMatrix(gfxPos++, G_MTX_MODELVIEW);
175 gMainGfxPos = gfxPos;
176}
Mtx D_0A001098_E9C598
Gfx D_0A0013B8_E9C8B8[]
struct PinkFlowerData * pinkFlower
#define guTranslateF
#define guScaleF
f32 initialRotY
Definition entity.h:354
@ CAM_DEFAULT
Definition enums.h:1800
void sin_cos_rad(f32 rad, f32 *outSinTheta, f32 *outCosTheta)
Definition 43F0.c:706
#define PM_CC_01
Definition macros.h:276
#define DEG_TO_RAD(deg)
Definition macros.h:134
#define PM_CC_02
Definition macros.h:277
Vec3f scale
Camera gCameras[4]
Definition cam_main.c:17

Referenced by entity_PinkFlowerLight_init().

◆ entity_PinkFlower_idle()

void entity_PinkFlower_idle ( Entity * entity)

Definition at line 178 of file Plants1.c.

178 {
179 PinkFlowerData* data = entity->dataBuf.pinkFlower;
180
184 entity->flags &= ~ENTITY_FLAG_SHOWS_INSPECT_PROMPT;
186 if (data->state == 0) {
187 data->state = 1;
190 }
191 }
192 }
193}
AnimScript Entity_PinkFlower_AnimationLightUp
u16 linkedEntityIndex
Definition entity.h:353
@ PA_FLAG_INTERACT_PROMPT_AVAILABLE
! prompt
Definition enums.h:3095
@ ENTITY_COLLISION_PLAYER_HAMMER
Definition enums.h:2654
@ ENTITY_COLLISION_PLAYER_TOUCH_WALL
Definition enums.h:2651
@ ENTITY_FLAG_SHOWS_INSPECT_PROMPT
Definition enums.h:2625
void play_model_animation(s32, s16 *)
Definition animator.c:1101
s16 virtualModelIndex

◆ entity_PinkFlower_init()

void entity_PinkFlower_init ( Entity * entity)

Definition at line 195 of file Plants1.c.

195 {
196 PinkFlowerData* data = entity->dataBuf.pinkFlower;
197 Entity* newEntity;
198 s32 entityIndex;
199
201 entityIndex = create_entity(&Entity_PinkFlowerLight, (s32)entity->pos.x, (s32)entity->pos.y, (s32)entity->pos.z, 0, MAKE_ENTITY_END);
202 data->linkedEntityIndex = entityIndex;
203 newEntity = get_entity_by_index(entityIndex);
204 data = newEntity->dataBuf.pinkFlower;
205 data->linkedEntityIndex = entity->listIndex;
206 data->initialRotY = newEntity->rot.y;
207}
EntityBlueprint Entity_PinkFlowerLight
Definition Plants1.c:405
@ RENDER_MODE_SURFACE_XLU_LAYER1
Definition enums.h:3282
#define MAKE_ENTITY_END
Definition evt.h:107
s32 create_entity(EntityBlueprint *bp,...)
Definition entity.c:1195
ModelAnimator * get_animator_by_index(s32 animModelID)
Definition animator.c:1041

◆ entity_PinkFlowerLight_init()

void entity_PinkFlowerLight_init ( Entity * entity)

Definition at line 209 of file Plants1.c.

209 {
210 entity->scale.x = 0.0f;
212}
void entity_PinkFlowerLight_setupGfx(s32 entityIndex)
Definition Plants1.c:147

◆ entity_PinkFlowerLight_idle()

void entity_PinkFlowerLight_idle ( Entity * entity)

Definition at line 214 of file Plants1.c.

214 {
215 PinkFlowerData* data = entity->dataBuf.pinkFlower;
216
217 switch (data->timer) {
218 case 0:
219 if (data->state != 0) {
220 data->state = 0;
221 data->timer++;
222 entity->rot.z = -25.0f;
223 entity->scale.x = 1.8f;
224 entity->alpha = 255;
225 }
226 break;
227 case 1:
228 entity->rot.z += 1.0f;
229 if (entity->rot.z >= 8.0f) {
230 entity->rot.z = 8.0f;
231 }
232
233 entity->alpha -= 6;
234 if (entity->alpha < 6) {
235 entity->alpha = 6;
236 }
237
238 entity->scale.x -= 0.03;
239 if (entity->scale.x <= 0.1) {
240 data->timer = 0;
241 entity->scale.x = 0.0f;
242 }
243 entity->scale.y = entity->scale.x;
244 entity->scale.z = entity->scale.x;
245 break;
246 }
247
249 entity->rot.y = gCameras[CAM_DEFAULT].curYaw;
250}

◆ func_802BB8D4_E2E204()

void func_802BB8D4_E2E204 ( Entity * entity)

Definition at line 252 of file Plants1.c.

252 {
253 CymbalPlantData* data = entity->dataBuf.cymbalPlant;
254 data->dist = fabs(dist2D(entity->pos.x - 2.0f, entity->pos.z - 2.0f, gPlayerStatus.pos.x, gPlayerStatus.pos.z) * 0.25);
255 data->angle = atan2(gPlayerStatus.pos.x, gPlayerStatus.pos.z, entity->pos.x - 2.0f, entity->pos.z - 2.0f);
256}
struct CymbalPlantData * cymbalPlant
#define atan2

Referenced by entity_CymbalPlant_idle().

◆ func_802BB98C_E2E2BC()

void func_802BB98C_E2E2BC ( Entity * entity)

Definition at line 258 of file Plants1.c.

258 {
259 CymbalPlantData* data = entity->dataBuf.cymbalPlant;
264}
void add_vec2D_polar(f32 *x, f32 *y, f32 r, f32 theta)
Definition 43F0.c:685
Vec3f targetPos

Referenced by entity_CymbalPlant_idle().

◆ entity_CymbalPlant_idle()

void entity_CymbalPlant_idle ( Entity * entity)

Definition at line 266 of file Plants1.c.

266 {
267 CymbalPlantData* data = entity->dataBuf.cymbalPlant;
268 PartnerStatus* partnerStatus = &gPartnerStatus;
269 PlayerStatus* playerStatus = &gPlayerStatus;
270 f32 yaw;
271 f32 targetYaw;
272
273 switch (data->state) {
274 case 0:
276 if (partnerStatus->actingPartner != 0) {
278 }
280 playerStatus->animFlags |= PA_FLAG_INTERRUPT_SPIN;
281 data->timer = 4;
282 data->unk_01++;
283 data->state++;
288 func_802BB8D4_E2E204(entity);
289 } else {
290 data->unk_01 = 0;
291 }
292 break;
293 case 1:
294 playerStatus->animFlags |= PA_FLAG_INTERRUPT_SPIN;
295 if (--data->timer == 0) {
296 start_rumble(128, 10);
297 data->timer = 30;
298 data->state++;
299 yaw = playerStatus->spriteFacingAngle;
300 playerStatus->spriteFacingAngle = 80.0f;
301 playerStatus->flags |= PS_FLAG_ROTATION_LOCKED;
302 D_802BCE20 = yaw;
303 }
304 func_802BB98C_E2E2BC(entity);
305 break;
306 case 2:
307 if (--data->timer == 0) {
308 data->state++;
310 set_player_imgfx_all(ANIM_Mario1_Idle, IMGFX_SET_ANIM, IMGFX_ANIM_CYMBAL_CRUSH, 1, 1, 0, 0);
311 }
312 break;
313 case 3:
314 data->state++;
315 break;
316 case 4:
317 playerStatus->spriteFacingAngle = D_802BCE20;
318 targetYaw = 270.0f;
319 if (D_802BCE20 != 0.0f) {
320 targetYaw = 90.0f;
321 }
322 playerStatus->targetYaw = targetYaw;
323 data->timer = 80;
324 data->state++;
325 break;
326 case 5:
327 if (--data->timer == 0) {
328 data->state++;
331 playerStatus->flags &= ~PS_FLAG_ROTATION_LOCKED;
332 }
333 break;
334 case 6:
336 data->state = 0;
339 }
340 break;
341 }
342}
void func_802BB8D4_E2E204(Entity *entity)
Definition Plants1.c:252
AnimScript Entity_CymbalPlant_AnimationGrab
void func_802BB98C_E2E2BC(Entity *entity)
Definition Plants1.c:258
BSS f32 D_802BCE20
Definition Plants1.c:23
@ IMGFX_CLEAR
Definition enums.h:5117
@ IMGFX_SET_ANIM
Definition enums.h:5122
@ PS_FLAG_ROTATION_LOCKED
Definition enums.h:3065
@ PARTNER_ACTION_NONE
Definition enums.h:2932
@ IMGFX_ANIM_CYMBAL_CRUSH
Definition enums.h:5157
@ PA_FLAG_INTERRUPT_SPIN
Definition enums.h:3110
@ SOUND_PLANTS_CYMBAL_CRASH
Definition enums.h:728
@ ACTION_STATE_IDLE
Definition enums.h:2426
void start_rumble(s32, s32)
Definition rumble.c:15
s32 disable_player_input(void)
Definition 77480.c:990
s32 enable_player_input(void)
Definition 77480.c:998
s32 phys_adjust_cam_on_landing(void)
Definition 7E9D0.c:46
void enable_partner_ai(void)
Definition partners.c:2390
void func_800EF300(void)
Definition partners.c:2382
void set_player_imgfx_all(s32 animID, ImgFXType imgfxType, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6)
Definition sprite.c:995
void set_player_imgfx_comp(s32 spriteIdx, s32 compIdx, ImgFXType imgfx, s32 imgfxArg1, s32 imgfxArg2, s32 imgfxArg3, s32 imgfxArg4, s32 flags)
Definition sprite.c:969
@ PLAYER_SPRITE_MAIN
Definition sprite.h:26
PartnerStatus gPartnerStatus
Definition partners.c:42

Variable Documentation

◆ Entity_RenderNone

Gfx Entity_RenderNone[]
extern

Definition at line 69 of file Shadow.c.

69 {
70 gsSPEndDisplayList(),
71};

◆ Entity_CymbalPlant_AnimationIdle

AnimScript Entity_CymbalPlant_AnimationIdle
extern

Definition at line 347 of file CymbalPlant_anim.c.

347 {
349 as_SetRotation(1, 0.0, 0.0, 0.0)
350 as_SetPos(1, 0, 0, 0)
351 as_SetScale(1, 1.0, 1.0, 1.0)
352 as_SetRotation(2, 0.0, 0.0, 0.0)
353 as_SetPos(2, 0, 0, 0)
354 as_SetScale(2, 1.0, 1.0, 1.0)
355 as_SetRotation(3, 0.0, 0.0, 0.0)
356 as_SetPos(3, -3, 26, 0)
357 as_SetScale(3, 1.0, 1.0, 1.0)
358 as_SetRotation(4, 0.0, 0.0, 0.0)
359 as_SetPos(4, 3, -26, 0)
360 as_SetScale(4, 1.0, 1.0, 1.0)
361 as_SetRotation(5, 0.0, 0.0, 0.0)
362 as_SetPos(5, 3, -26, 0)
363 as_SetScale(5, 1.0, 1.0, 1.0)
364 as_SetRotation(6, 0.0, 0.0, 0.0)
365 as_SetPos(6, 3, -26, 0)
366 as_SetScale(6, 1.0, 1.0, 1.0)
367 as_SetRotation(7, 0.0, 0.0, 0.0)
368 as_SetPos(7, 2, 26, 0)
369 as_SetScale(7, 1.0, 1.0, 1.0)
370 as_SetRotation(8, 0.0, 0.0, 0.0)
371 as_SetPos(8, -2, -26, 0)
372 as_SetScale(8, 1.0, 1.0, 1.0)
373 as_SetRotation(9, 0.0, 0.0, 0.0)
374 as_SetPos(9, -2, -26, 0)
375 as_SetScale(9, 1.0, 1.0, 1.0)
376 as_SetRotation(10, 0.0, 0.0, 0.0)
377 as_SetPos(10, -2, -26, 0)
378 as_SetScale(10, 1.0, 1.0, 1.0)
379 as_SetRotation(11, 0.0, 0.0, 0.0)
380 as_SetPos(11, 0, 0, 0)
381 as_SetScale(11, 1.0, 1.0, 1.0)
382 as_Wait(1)
384 as_End
385};
#define as_Wait(time)
#define as_DisableMirroring
#define as_SetPos(node, x, y, z)
#define as_SetRotation(node, x, y, z)
#define as_SetScale(node, x, y, z)
#define as_End
#define as_Restart

◆ Entity_CymbalPlant_AnimationGrab

AnimScript Entity_CymbalPlant_AnimationGrab
extern

Definition at line 102 of file CymbalPlant_anim.c.

102 {
104 as_SetRotation(1, 0.0, 0.0, 0.0)
105 as_SetPos(1, 0, 0, 0)
106 as_SetScale(1, 1.0, 1.0, 1.0)
107 as_SetRotation(2, 0.0, 0.0, 0.0)
108 as_SetPos(2, 0, 0, 0)
109 as_SetScale(2, 1.0, 1.0, 1.0)
110 as_SetRotation(3, 0.0, 0.0, 0.0)
111 as_SetPos(3, -3, 26, 0)
112 as_SetScale(3, 1.0, 1.0, 1.0)
113 as_SetRotation(4, 0.0, 0.0, 0.0)
114 as_SetPos(4, 3, -26, 0)
115 as_SetScale(4, 1.0, 1.0, 1.0)
116 as_SetRotation(5, 0.0, 0.0, 0.0)
117 as_SetPos(5, 3, -26, 0)
118 as_SetScale(5, 1.0, 1.0, 1.0)
119 as_SetRotation(6, 0.0, 0.0, 0.0)
120 as_SetPos(6, 3, -26, 0)
121 as_SetScale(6, 1.0, 1.0, 1.0)
122 as_SetRotation(7, 0.0, 0.0, 0.0)
123 as_SetPos(7, 2, 26, 0)
124 as_SetScale(7, 1.0, 1.0, 1.0)
125 as_SetRotation(8, 0.0, 0.0, 0.0)
126 as_SetPos(8, -2, -26, 0)
127 as_SetScale(8, 1.0, 1.0, 1.0)
128 as_SetRotation(9, 0.0, 0.0, 0.0)
129 as_SetPos(9, -2, -26, 0)
130 as_SetScale(9, 1.0, 1.0, 1.0)
131 as_SetRotation(10, 0.0, 0.0, 0.0)
132 as_SetPos(10, -2, -26, 0)
133 as_SetScale(10, 1.0, 1.0, 1.0)
134 as_SetRotation(11, 0.0, 0.0, 0.0)
135 as_SetPos(11, 0, 0, 0)
136 as_SetScale(11, 1.0, 1.0, 1.0)
137 as_Wait(1)
138 as_SetRotation(3, 0.0, 0.0, -9.36)
139 as_SetRotation(7, 0.0, 0.0, 9.355)
140 as_SetRotation(11, 0.0, 0.0, -0.225)
141 as_Wait(1)
142 as_SetRotation(3, 0.0, 0.0, -31.685)
143 as_SetRotation(7, 0.0, 0.0, 31.68)
144 as_SetRotation(11, 0.0, 0.0, -0.68)
145 as_Wait(1)
146 as_SetRotation(3, 0.0, 0.0, -58.33)
147 as_SetRotation(7, 0.0, 0.0, 58.315)
148 as_SetRotation(11, 0.0, 0.0, -1.025)
149 as_Wait(1)
150 as_SetRotation(3, 0.0, 0.0, -80.64)
151 as_SetRotation(7, 0.0, 0.0, 80.635)
152 as_SetRotation(11, 0.0, 0.0, -0.91)
153 as_Wait(1)
154 as_SetRotation(3, 0.0, 0.0, -89.995)
155 as_SetRotation(7, 0.0, 0.0, 89.995)
156 as_SetRotation(11, 0.0, 0.0, 0.0)
157 as_Wait(1)
158 as_SetRotation(3, 0.0, 0.0, -84.995)
159 as_SetRotation(7, 0.0, 0.0, 85.0)
160 as_SetRotation(11, 0.0, 0.0, 5.67)
161 as_Wait(1)
162 as_SetRotation(3, 0.0, 0.0, -80.0)
163 as_SetRotation(7, 0.0, 0.0, 80.0)
164 as_SetRotation(11, 0.0, 0.0, 10.0)
165 as_Wait(1)
166 as_SetRotation(3, 0.0, 0.0, -84.985)
167 as_SetRotation(7, 0.0, 0.0, 85.0)
168 as_SetRotation(11, 0.0, 0.0, 2.435)
169 as_Wait(1)
170 as_SetRotation(3, 0.0, 0.0, -89.995)
171 as_SetRotation(7, 0.0, 0.0, 89.995)
172 as_SetRotation(11, 0.0, 0.0, -5.0)
173 as_Wait(1)
174 as_SetRotation(3, 0.0, 0.0, -87.51)
175 as_SetRotation(7, 0.0, 0.0, 87.5)
176 as_SetRotation(11, 0.0, 0.0, -2.93)
177 as_Wait(1)
178 as_SetRotation(3, 0.0, 0.0, -85.0)
179 as_SetRotation(7, 0.0, 0.0, 85.0)
180 as_SetRotation(11, 0.0, 0.0, 2.02)
181 as_Wait(1)
182 as_SetRotation(3, 0.0, 0.0, -87.49)
183 as_SetRotation(7, 0.0, 0.0, 87.5)
184 as_SetRotation(11, 0.0, 0.0, 5.0)
185 as_Wait(1)
186 as_SetRotation(3, 0.0, 0.0, -89.995)
187 as_SetRotation(7, 0.0, 0.0, 89.995)
188 as_SetRotation(11, 0.0, 0.0, 4.075)
189 as_Wait(1)
190 as_SetRotation(3, 0.0, 0.0, -88.75)
191 as_SetRotation(7, 0.0, 0.0, 88.745)
192 as_SetRotation(11, 0.0, 0.0, 1.565)
193 as_Wait(1)
194 as_SetRotation(3, 0.0, 0.0, -87.5)
195 as_SetRotation(7, 0.0, 0.0, 87.5)
196 as_SetRotation(11, 0.0, 0.0, -1.105)
197 as_Wait(1)
198 as_SetRotation(3, 0.0, 0.0, -88.75)
199 as_SetRotation(7, 0.0, 0.0, 88.745)
200 as_SetRotation(11, 0.0, 0.0, -2.5)
201 as_Wait(1)
202 as_SetRotation(3, 0.0, 0.0, -89.995)
203 as_SetRotation(7, 0.0, 0.0, 89.995)
204 as_SetRotation(11, 0.0, 0.0, -2.175)
205 as_Wait(1)
206 as_SetRotation(3, 0.0, 0.0, -89.985)
207 as_SetRotation(7, 0.0, 0.0, 90.015)
208 as_SetRotation(11, 0.0, 0.0, -0.995)
209 as_Wait(1)
210 as_SetRotation(3, 0.0, 0.0, -89.975)
211 as_SetRotation(7, 0.0, 0.0, 90.025)
212 as_SetRotation(11, 0.0, 0.0, 0.52)
213 as_Wait(1)
214 as_SetRotation(3, 0.0, 0.0, -89.97)
215 as_SetRotation(7, 0.0, 0.0, 90.03)
216 as_SetRotation(11, 0.0, 0.0, 1.86)
217 as_Wait(1)
218 as_SetRotation(3, 0.0, 0.0, -89.965)
219 as_SetRotation(7, 0.0, 0.0, 90.025)
220 as_SetRotation(11, 0.0, 0.0, 2.5)
221 as_Wait(1)
222 as_SetRotation(3, 0.0, 0.0, -89.96)
223 as_SetRotation(7, 0.0, 0.0, 90.015)
224 as_SetRotation(11, 0.0, 0.0, 2.315)
225 as_Wait(1)
226 as_SetRotation(7, 0.0, 0.0, 90.005)
227 as_SetRotation(11, 0.0, 0.0, 1.67)
228 as_Wait(1)
229 as_SetRotation(7, 0.0, 0.0, 89.99)
230 as_SetRotation(11, 0.0, 0.0, 0.78)
231 as_Wait(1)
232 as_SetRotation(3, 0.0, 0.0, -89.965)
233 as_SetRotation(7, 0.0, 0.0, 89.975)
234 as_SetRotation(11, 0.0, 0.0, -0.135)
235 as_Wait(1)
236 as_SetRotation(7, 0.0, 0.0, 89.96)
237 as_SetRotation(11, 0.0, 0.0, -0.885)
238 as_Wait(1)
239 as_SetRotation(3, 0.0, 0.0, -89.97)
240 as_SetRotation(7, 0.0, 0.0, 89.94)
241 as_SetRotation(11, 0.0, 0.0, -1.245)
242 as_Wait(1)
243 as_SetRotation(7, 0.0, 0.0, 89.925)
244 as_SetRotation(11, 0.0, 0.0, -1.19)
245 as_Wait(1)
246 as_SetRotation(3, 0.0, 0.0, -89.975)
247 as_SetRotation(7, 0.0, 0.0, 89.92)
248 as_SetRotation(11, 0.0, 0.0, -0.885)
249 as_Wait(1)
250 as_SetRotation(3, 0.0, 0.0, -89.98)
251 as_SetRotation(7, 0.0, 0.0, 89.915)
252 as_SetRotation(11, 0.0, 0.0, -0.415)
253 as_Wait(1)
254 as_SetRotation(3, 0.0, 0.0, -89.985)
255 as_SetRotation(11, 0.0, 0.0, 0.11)
256 as_Wait(1)
257 as_SetRotation(3, 0.0, 0.0, -89.99)
258 as_SetRotation(7, 0.0, 0.0, 89.92)
259 as_SetRotation(11, 0.0, 0.0, 0.625)
260 as_Wait(1)
261 as_SetRotation(7, 0.0, 0.0, 89.935)
262 as_SetRotation(11, 0.0, 0.0, 1.04)
263 as_Wait(1)
264 as_SetRotation(3, 0.0, 0.0, -89.995)
265 as_SetRotation(7, 0.0, 0.0, 89.965)
266 as_SetRotation(11, 0.0, 0.0, 1.245)
267 as_Wait(1)
268 as_SetRotation(7, 0.0, 0.0, 89.995)
269 as_SetRotation(11, 0.0, 0.0, 1.26)
270 as_Wait(1)
271 as_SetRotation(3, 0.0, 0.0, -84.58)
272 as_SetRotation(7, 0.0, 0.0, 84.61)
273 as_SetRotation(11, 0.0, 0.0, 1.15)
274 as_Wait(1)
275 as_SetRotation(3, 0.0, 0.0, -70.665)
276 as_SetRotation(7, 0.0, 0.0, 70.7)
277 as_SetRotation(11, 0.0, 0.0, 0.95)
278 as_Wait(1)
279 as_SetRotation(3, 0.0, 0.0, -51.745)
280 as_SetRotation(7, 0.0, 0.0, 51.78)
281 as_SetRotation(11, 0.0, 0.0, 0.705)
282 as_Wait(1)
283 as_SetRotation(3, 0.0, 0.0, -31.33)
284 as_SetRotation(7, 0.0, 0.0, 31.35)
285 as_SetRotation(11, 0.0, 0.0, 0.45)
286 as_Wait(1)
287 as_SetRotation(3, 0.0, 0.0, -12.915)
288 as_SetRotation(7, 0.0, 0.0, 12.92)
289 as_SetRotation(11, 0.0, 0.0, 0.225)
290 as_Wait(1)
291 as_SetRotation(3, 0.0, 0.0, 0.0)
292 as_SetRotation(7, 0.0, 0.0, 0.0)
293 as_SetRotation(11, 0.0, 0.0, 0.06)
294 as_Wait(1)
295 as_SetRotation(3, 0.0, 0.0, 5.06)
296 as_SetRotation(7, 0.0, 0.0, -5.06)
297 as_SetRotation(11, 0.0, 0.0, 0.0)
298 as_Wait(1)
299 as_SetRotation(3, 0.0, 0.0, 4.5)
300 as_SetRotation(7, 0.0, 0.0, -4.5)
301 as_Wait(1)
302 as_SetRotation(3, 0.0, 0.0, 1.685)
303 as_SetRotation(7, 0.0, 0.0, -1.685)
304 as_Wait(1)
305 as_SetRotation(3, 0.0, 0.0, 0.0)
306 as_SetRotation(7, 0.0, 0.0, 0.0)
307 as_Wait(1)
308 as_Loop
309 as_SetRotation(1, 0.0, 0.0, 0.0)
310 as_SetPos(1, 0, 0, 0)
311 as_SetScale(1, 1.0, 1.0, 1.0)
312 as_SetRotation(2, 0.0, 0.0, 0.0)
313 as_SetPos(2, 0, 0, 0)
314 as_SetScale(2, 1.0, 1.0, 1.0)
315 as_SetRotation(3, 0.0, 0.0, 0.0)
316 as_SetPos(3, -3, 26, 0)
317 as_SetScale(3, 1.0, 1.0, 1.0)
318 as_SetRotation(4, 0.0, 0.0, 0.0)
319 as_SetPos(4, 3, -26, 0)
320 as_SetScale(4, 1.0, 1.0, 1.0)
321 as_SetRotation(5, 0.0, 0.0, 0.0)
322 as_SetPos(5, 3, -26, 0)
323 as_SetScale(5, 1.0, 1.0, 1.0)
324 as_SetRotation(6, 0.0, 0.0, 0.0)
325 as_SetPos(6, 3, -26, 0)
326 as_SetScale(6, 1.0, 1.0, 1.0)
327 as_SetRotation(7, 0.0, 0.0, 0.0)
328 as_SetPos(7, 2, 26, 0)
329 as_SetScale(7, 1.0, 1.0, 1.0)
330 as_SetRotation(8, 0.0, 0.0, 0.0)
331 as_SetPos(8, -2, -26, 0)
332 as_SetScale(8, 1.0, 1.0, 1.0)
333 as_SetRotation(9, 0.0, 0.0, 0.0)
334 as_SetPos(9, -2, -26, 0)
335 as_SetScale(9, 1.0, 1.0, 1.0)
336 as_SetRotation(10, 0.0, 0.0, 0.0)
337 as_SetPos(10, -2, -26, 0)
338 as_SetScale(10, 1.0, 1.0, 1.0)
339 as_SetRotation(11, 0.0, 0.0, 0.0)
340 as_SetPos(11, 0, 0, 0)
341 as_SetScale(11, 1.0, 1.0, 1.0)
342 as_Wait(1)
344 as_End
345};
#define as_Loop

Referenced by entity_CymbalPlant_idle().

◆ Entity_PinkFlower_AnimationLightUp

AnimScript Entity_PinkFlower_AnimationLightUp
extern

Definition at line 50 of file PinkFlower_anim.c.

50 {
52 as_SetRotation(1, 0.0, 0.0, 0.0)
53 as_SetPos(1, 0, 0, 0)
54 as_SetScale(1, 1.0, 1.0, 1.0)
55 as_SetRotation(2, 0.0, 0.0, 0.0)
56 as_SetPos(2, 0, 0, 0)
57 as_SetScale(2, 1.0, 1.0, 1.0)
58 as_SetRotation(3, 0.0, 0.0, 0.0)
59 as_SetPos(3, 0, 0, 0)
60 as_SetScale(3, 1.0, 1.0, 1.0)
61 as_SetRotation(4, 0.0, 0.0, 0.0)
62 as_SetPos(4, 0, 30, 0)
63 as_SetScale(4, 1.0, 1.0, 1.0)
64 as_SetRotation(5, 0.0, 0.0, 0.0)
65 as_SetPos(5, 0, -30, 0)
66 as_SetScale(5, 1.2, 1.2, 1.2)
67 as_Wait(1)
68 as_SetRotation(1, 0.0, 0.0, -14.995)
69 as_SetRotation(2, 0.0, 0.0, -30.0)
70 as_SetRotation(3, 0.0, 0.0, 30.0)
71 as_SetRotation(4, 0.0, 0.0, -30.0)
72 as_SetScale(4, 1.245, 1.245, 1.245)
73 as_Wait(1)
74 as_SetRotation(1, 0.0, 0.0, -15.3)
75 as_SetRotation(2, 0.0, 0.0, -23.75)
76 as_SetRotation(3, 0.0, 0.0, 23.75)
77 as_SetRotation(4, 0.0, 0.0, -40.495)
78 as_SetScale(4, 0.98, 0.98, 0.98)
79 as_Wait(1)
80 as_SetRotation(1, 0.0, 0.0, -15.355)
81 as_SetRotation(2, 0.0, 0.0, -14.995)
82 as_SetRotation(3, 0.0, 0.0, 14.995)
83 as_SetRotation(4, 0.0, 0.0, -44.995)
84 as_SetScale(4, 0.745, 0.745, 0.745)
85 as_Wait(1)
86 as_SetRotation(1, 0.0, 0.0, -15.19)
87 as_SetRotation(2, 0.0, 0.0, -18.725)
88 as_SetRotation(3, 0.0, 0.0, 18.725)
89 as_SetRotation(4, 0.0, 0.0, -46.33)
90 as_SetScale(4, 0.875, 0.875, 0.875)
91 as_Wait(1)
92 as_SetRotation(1, 0.0, 0.0, -14.825)
93 as_SetRotation(2, 0.0, 0.0, -25.79)
94 as_SetRotation(3, 0.0, 0.0, 25.79)
95 as_SetRotation(4, 0.0, 0.0, -45.665)
96 as_SetScale(4, 1.11, 1.11, 1.11)
97 as_Wait(1)
98 as_SetRotation(1, 0.0, 0.0, -14.285)
99 as_SetRotation(2, 0.0, 0.0, -30.0)
100 as_SetRotation(3, 0.0, 0.0, 30.0)
101 as_SetRotation(4, 0.0, 0.0, -44.995)
102 as_SetScale(4, 1.245, 1.245, 1.245)
103 as_Wait(1)
104 as_SetRotation(1, 0.0, 0.0, -13.585)
105 as_SetRotation(2, 0.0, 0.0, -30.675)
106 as_SetRotation(3, 0.0, 0.0, 30.675)
107 as_SetRotation(4, 0.0, 0.0, -45.13)
108 as_SetScale(4, 1.25, 1.25, 1.25)
109 as_Wait(1)
110 as_SetRotation(1, 0.0, 0.0, -12.745)
111 as_SetRotation(2, 0.0, 0.0, -31.285)
112 as_SetRotation(3, 0.0, 0.0, 31.285)
113 as_SetRotation(4, 0.0, 0.0, -45.44)
114 as_SetScale(4, 1.235, 1.235, 1.235)
115 as_Wait(1)
116 as_SetRotation(1, 0.0, 0.0, -11.79)
117 as_SetRotation(2, 0.0, 0.0, -31.81)
118 as_SetRotation(3, 0.0, 0.0, 31.81)
119 as_SetRotation(4, 0.0, 0.0, -45.83)
120 as_SetScale(4, 1.2, 1.2, 1.2)
121 as_Wait(1)
122 as_SetRotation(1, 0.0, 0.0, -10.74)
123 as_SetRotation(2, 0.0, 0.0, -32.275)
124 as_SetRotation(3, 0.0, 0.0, 32.275)
125 as_SetRotation(4, 0.0, 0.0, -46.18)
126 as_SetScale(4, 1.155, 1.155, 1.155)
127 as_Wait(1)
128 as_SetRotation(1, 0.0, 0.0, -9.62)
129 as_SetRotation(2, 0.0, 0.0, -32.65)
130 as_SetRotation(3, 0.0, 0.0, 32.65)
131 as_SetRotation(4, 0.0, 0.0, -46.385)
132 as_SetScale(4, 1.1, 1.1, 1.1)
133 as_Wait(1)
134 as_SetRotation(1, 0.0, 0.0, -8.45)
135 as_SetRotation(2, 0.0, 0.0, -32.955)
136 as_SetRotation(3, 0.0, 0.0, 32.955)
137 as_SetRotation(4, 0.0, 0.0, -46.33)
138 as_SetScale(4, 1.055, 1.055, 1.055)
139 as_Wait(1)
140 as_SetRotation(1, 0.0, 0.0, -7.24)
141 as_SetRotation(2, 0.0, 0.0, -33.18)
142 as_SetRotation(3, 0.0, 0.0, 33.18)
143 as_SetRotation(4, 0.0, 0.0, -45.9)
144 as_SetScale(4, 1.015, 1.015, 1.015)
145 as_Wait(1)
146 as_SetRotation(1, 0.0, 0.0, -6.025)
147 as_SetRotation(2, 0.0, 0.0, -33.325)
148 as_SetRotation(3, 0.0, 0.0, 33.325)
149 as_SetRotation(4, 0.0, 0.0, -44.995)
150 as_SetScale(4, 1.0, 1.0, 1.0)
151 as_Wait(1)
152 as_SetRotation(1, 0.0, 0.0, -4.825)
153 as_SetRotation(2, 0.0, 0.0, -33.385)
154 as_SetRotation(3, 0.0, 0.0, 33.385)
155 as_SetRotation(4, 0.0, 0.0, -43.745)
156 as_SetScale(4, 0.99, 0.99, 0.99)
157 as_Wait(1)
158 as_SetRotation(1, 0.0, 0.0, -3.655)
159 as_SetRotation(2, 0.0, 0.0, -33.355)
160 as_SetRotation(3, 0.0, 0.0, 33.355)
161 as_SetRotation(4, 0.0, 0.0, -42.36)
162 as_SetScale(4, 0.985, 0.985, 0.985)
163 as_Wait(1)
164 as_SetRotation(1, 0.0, 0.0, -2.53)
165 as_SetRotation(2, 0.0, 0.0, -33.25)
166 as_SetRotation(3, 0.0, 0.0, 33.25)
167 as_SetRotation(4, 0.0, 0.0, -40.86)
168 as_Wait(1)
169 as_SetRotation(1, 0.0, 0.0, -1.495)
170 as_SetRotation(2, 0.0, 0.0, -33.055)
171 as_SetRotation(3, 0.0, 0.0, 33.055)
172 as_SetRotation(4, 0.0, 0.0, -39.255)
173 as_SetScale(4, 0.98, 0.98, 0.98)
174 as_Wait(1)
175 as_SetRotation(1, 0.0, 0.0, -0.545)
176 as_SetRotation(2, 0.0, 0.0, -32.775)
177 as_SetRotation(3, 0.0, 0.0, 32.775)
178 as_SetRotation(4, 0.0, 0.0, -37.55)
179 as_SetScale(4, 0.97, 0.97, 0.97)
180 as_Wait(1)
181 as_SetRotation(1, 0.0, 0.0, 0.275)
182 as_SetRotation(2, 0.0, 0.0, -32.4)
183 as_SetRotation(3, 0.0, 0.0, 32.4)
184 as_SetRotation(4, 0.0, 0.0, -35.775)
185 as_Wait(1)
186 as_SetRotation(1, 0.0, 0.0, 0.965)
187 as_SetRotation(2, 0.0, 0.0, -31.94)
188 as_SetRotation(3, 0.0, 0.0, 31.94)
189 as_SetRotation(4, 0.0, 0.0, -33.915)
190 as_Wait(1)
191 as_SetRotation(1, 0.0, 0.0, 1.5)
192 as_SetRotation(2, 0.0, 0.0, -31.385)
193 as_SetRotation(3, 0.0, 0.0, 31.385)
194 as_SetRotation(4, 0.0, 0.0, -32.01)
195 as_SetScale(4, 0.965, 0.965, 0.965)
196 as_Wait(1)
197 as_SetRotation(1, 0.0, 0.0, 1.85)
198 as_SetRotation(2, 0.0, 0.0, -30.74)
199 as_SetRotation(3, 0.0, 0.0, 30.74)
200 as_SetRotation(4, 0.0, 0.0, -30.055)
201 as_Wait(1)
202 as_SetRotation(1, 0.0, 0.0, 2.0)
203 as_SetRotation(2, 0.0, 0.0, -30.0)
204 as_SetRotation(3, 0.0, 0.0, 30.0)
205 as_SetRotation(4, 0.0, 0.0, -28.065)
206 as_Wait(1)
207 as_SetRotation(1, 0.0, 0.0, 2.02)
208 as_SetRotation(2, 0.0, 0.0, -29.065)
209 as_SetRotation(3, 0.0, 0.0, 29.065)
210 as_SetRotation(4, 0.0, 0.0, -26.06)
211 as_Wait(1)
212 as_SetRotation(1, 0.0, 0.0, 2.005)
213 as_SetRotation(2, 0.0, 0.0, -27.88)
214 as_SetRotation(3, 0.0, 0.0, 27.88)
215 as_SetRotation(4, 0.0, 0.0, -24.04)
216 as_Wait(1)
217 as_SetRotation(1, 0.0, 0.0, 1.96)
218 as_SetRotation(2, 0.0, 0.0, -26.46)
219 as_SetRotation(3, 0.0, 0.0, 26.46)
220 as_SetRotation(4, 0.0, 0.0, -22.03)
221 as_SetScale(4, 0.965, 0.97, 0.97)
222 as_Wait(1)
223 as_SetRotation(1, 0.0, 0.0, 1.895)
224 as_SetRotation(2, 0.0, 0.0, -24.855)
225 as_SetRotation(3, 0.0, 0.0, 24.855)
226 as_SetRotation(4, 0.0, 0.0, -20.03)
227 as_SetScale(4, 0.97, 0.97, 0.97)
228 as_Wait(1)
229 as_SetRotation(1, 0.0, 0.0, 1.795)
230 as_SetRotation(2, 0.0, 0.0, -23.09)
231 as_SetRotation(3, 0.0, 0.0, 23.09)
232 as_SetRotation(4, 0.0, 0.0, -18.055)
233 as_Wait(1)
234 as_SetRotation(1, 0.0, 0.0, 1.685)
235 as_SetRotation(2, 0.0, 0.0, -21.2)
236 as_SetRotation(3, 0.0, 0.0, 21.2)
237 as_SetRotation(4, 0.0, 0.0, -16.125)
238 as_Wait(1)
239 as_SetRotation(1, 0.0, 0.0, 1.555)
240 as_SetRotation(2, 0.0, 0.0, -19.21)
241 as_SetRotation(3, 0.0, 0.0, 19.21)
242 as_SetRotation(4, 0.0, 0.0, -14.245)
243 as_SetScale(4, 0.98, 0.98, 0.98)
244 as_Wait(1)
245 as_SetRotation(1, 0.0, 0.0, 1.41)
246 as_SetRotation(2, 0.0, 0.0, -17.16)
247 as_SetRotation(3, 0.0, 0.0, 17.16)
248 as_SetRotation(4, 0.0, 0.0, -12.425)
249 as_Wait(1)
250 as_SetRotation(1, 0.0, 0.0, 1.26)
251 as_SetRotation(2, 0.0, 0.0, -15.09)
252 as_SetRotation(3, 0.0, 0.0, 15.09)
253 as_SetRotation(4, 0.0, 0.0, -10.685)
254 as_Wait(1)
255 as_SetRotation(1, 0.0, 0.0, 1.1)
256 as_SetRotation(2, 0.0, 0.0, -13.025)
257 as_SetRotation(3, 0.0, 0.0, 13.025)
258 as_SetRotation(4, 0.0, 0.0, -9.03)
259 as_SetScale(4, 0.985, 0.985, 0.985)
260 as_Wait(1)
261 as_SetRotation(1, 0.0, 0.0, 0.94)
262 as_SetRotation(2, 0.0, 0.0, -11.0)
263 as_SetRotation(3, 0.0, 0.0, 11.0)
264 as_SetRotation(4, 0.0, 0.0, -7.475)
265 as_Wait(1)
266 as_SetRotation(1, 0.0, 0.0, 0.78)
267 as_SetRotation(2, 0.0, 0.0, -9.04)
268 as_SetRotation(3, 0.0, 0.0, 9.04)
269 as_SetRotation(4, 0.0, 0.0, -6.035)
270 as_SetScale(4, 0.99, 0.99, 0.99)
271 as_Wait(1)
272 as_SetRotation(1, 0.0, 0.0, 0.625)
273 as_SetRotation(2, 0.0, 0.0, -7.19)
274 as_SetRotation(3, 0.0, 0.0, 7.19)
275 as_SetRotation(4, 0.0, 0.0, -4.72)
276 as_Wait(1)
277 as_SetRotation(1, 0.0, 0.0, 0.48)
278 as_SetRotation(2, 0.0, 0.0, -5.48)
279 as_SetRotation(3, 0.0, 0.0, 5.48)
280 as_SetRotation(4, 0.0, 0.0, -3.54)
281 as_Wait(1)
282 as_SetRotation(1, 0.0, 0.0, 0.345)
283 as_SetRotation(2, 0.0, 0.0, -3.945)
284 as_SetRotation(3, 0.0, 0.0, 3.945)
285 as_SetRotation(4, 0.0, 0.0, -2.51)
286 as_SetScale(4, 0.995, 0.995, 0.995)
287 as_Wait(1)
288 as_SetRotation(1, 0.0, 0.0, 0.23)
289 as_SetRotation(2, 0.0, 0.0, -2.61)
290 as_SetRotation(3, 0.0, 0.0, 2.61)
291 as_SetRotation(4, 0.0, 0.0, -1.635)
292 as_Wait(1)
293 as_SetRotation(1, 0.0, 0.0, 0.13)
294 as_SetRotation(2, 0.0, 0.0, -1.515)
295 as_SetRotation(3, 0.0, 0.0, 1.515)
296 as_SetRotation(4, 0.0, 0.0, -0.94)
297 as_Wait(1)
298 as_SetRotation(1, 0.0, 0.0, 0.06)
299 as_SetRotation(2, 0.0, 0.0, -0.7)
300 as_SetRotation(3, 0.0, 0.0, 0.7)
301 as_SetRotation(4, 0.0, 0.0, -0.425)
302 as_Wait(1)
303 as_SetRotation(1, 0.0, 0.0, 0.01)
304 as_SetRotation(2, 0.0, 0.0, -0.175)
305 as_SetRotation(3, 0.0, 0.0, 0.175)
306 as_SetRotation(4, 0.0, 0.0, -0.105)
307 as_SetScale(4, 0.995, 1.0, 1.0)
308 as_Wait(1)
309 as_SetRotation(1, 0.0, 0.0, 0.0)
310 as_SetRotation(2, 0.0, 0.0, 0.0)
311 as_SetRotation(3, 0.0, 0.0, 0.0)
312 as_SetRotation(4, 0.0, 0.0, 0.0)
313 as_SetScale(4, 1.0, 1.0, 1.0)
314 as_Wait(1)
315 as_Loop
316 as_SetRotation(1, 0.0, 0.0, 0.0)
317 as_SetPos(1, 0, 0, 0)
318 as_SetScale(1, 1.0, 1.0, 1.0)
319 as_SetRotation(2, 0.0, 0.0, 0.0)
320 as_SetPos(2, 0, 0, 0)
321 as_SetScale(2, 1.0, 1.0, 1.0)
322 as_SetRotation(3, 0.0, 0.0, 0.0)
323 as_SetPos(3, 0, 0, 0)
324 as_SetScale(3, 1.0, 1.0, 1.0)
325 as_SetRotation(4, 0.0, 0.0, 0.0)
326 as_SetPos(4, 0, 30, 0)
327 as_SetScale(4, 1.0, 1.0, 1.0)
328 as_SetRotation(5, 0.0, 0.0, 0.0)
329 as_SetPos(5, 0, -30, 0)
330 as_SetScale(5, 1.2, 1.2, 1.2)
331 as_Wait(1)
333 as_End
334};

Referenced by entity_PinkFlower_idle().

◆ Entity_CymbalPlant_Mesh

StaticAnimatorNode* Entity_CymbalPlant_Mesh[]
extern

Definition at line 87 of file CymbalPlant_anim.c.

87 {
100};
StaticAnimatorNode Entity_CymbalPlant_Node2
StaticAnimatorNode Entity_CymbalPlant_Node4
StaticAnimatorNode Entity_CymbalPlant_NodeParent
StaticAnimatorNode Entity_CymbalPlant_Node8
StaticAnimatorNode Entity_CymbalPlant_Node10
StaticAnimatorNode Entity_CymbalPlant_Node7
StaticAnimatorNode Entity_CymbalPlant_Node9
StaticAnimatorNode Entity_CymbalPlant_Node6
StaticAnimatorNode Entity_CymbalPlant_Node1
StaticAnimatorNode Entity_CymbalPlant_Node5
StaticAnimatorNode Entity_CymbalPlant_Node3
#define ENTITY_ANIM_NULL

◆ Entity_PinkFlowerLight

EntityBlueprint Entity_PinkFlowerLight
Initial value:
= {
.typeDataSize = sizeof(PinkFlowerData),
.modelAnimationNodes = 0,
.updateEntityScript = Entity_PinkFlowerLight_Script,
.fpHandleCollision = NULL,
{ .dma = ENTITY_ROM(PinkFlower_gfx) },
.entityType = ENTITY_TYPE_PINK_FLOWER,
.aabbSize = { 44, 100, 25 }
}
void entity_PinkFlowerLight_init(Entity *entity)
Definition Plants1.c:209
EntityModelScript Entity_PinkFlowerLight_RenderScript
Definition Plants1.c:373
EntityScript Entity_PinkFlowerLight_Script
Definition Plants1.c:362
#define ENTITY_ROM(name)
Definition entity.h:65
@ ENTITY_TYPE_PINK_FLOWER
Definition enums.h:2594
@ ENTITY_FLAG_DISABLE_COLLISION
Definition enums.h:2618

Definition at line 405 of file Plants1.c.

405 {
407 .typeDataSize = sizeof(PinkFlowerData),
408 .renderCommandList = Entity_PinkFlowerLight_RenderScript,
409 .modelAnimationNodes = 0,
411 .updateEntityScript = Entity_PinkFlowerLight_Script,
412 .fpHandleCollision = NULL,
413 { .dma = ENTITY_ROM(PinkFlower_gfx) },
414 .entityType = ENTITY_TYPE_PINK_FLOWER,
415 .aabbSize = { 44, 100, 25 }
416};

Referenced by entity_PinkFlower_init().

◆ Entity_PinkFlower_Mesh

StaticAnimatorNode* Entity_PinkFlower_Mesh[]
extern

Definition at line 41 of file PinkFlower_anim.c.

41 {
48};
StaticAnimatorNode Entity_PinkFlower_Node4
StaticAnimatorNode Entity_PinkFlower_Node3
StaticAnimatorNode Entity_PinkFlower_Node2
StaticAnimatorNode Entity_PinkFlower_Node1
StaticAnimatorNode Entity_PinkFlower_Node5

◆ Entity_PinkFlower_AnimationIdle

AnimScript Entity_PinkFlower_AnimationIdle
extern

Definition at line 336 of file PinkFlower_anim.c.

336 {
338 as_SetRotation(1, 0.0, 0.0, 0.0)
339 as_SetPos(1, 0, 0, 0)
340 as_SetScale(1, 1.0, 1.0, 1.0)
341 as_SetRotation(2, 0.0, 0.0, 0.0)
342 as_SetPos(2, 0, 0, 0)
343 as_SetScale(2, 1.0, 1.0, 1.0)
344 as_SetRotation(3, 0.0, 0.0, 0.0)
345 as_SetPos(3, 0, 0, 0)
346 as_SetScale(3, 1.0, 1.0, 1.0)
347 as_SetRotation(4, 0.0, 0.0, 0.0)
348 as_SetPos(4, 0, 30, 0)
349 as_SetScale(4, 1.0, 1.0, 1.0)
350 as_SetRotation(5, 0.0, 0.0, 0.0)
351 as_SetPos(5, 0, -30, 0)
352 as_SetScale(5, 1.2, 1.2, 1.2)
353 as_Wait(1)
355 as_End
356};

◆ D_0A001098_E9C598

Mtx D_0A001098_E9C598
extern

Definition at line 35 of file PinkFlower_gfx.c.

Referenced by entity_PinkFlowerLight_setupGfx().

◆ D_0A0013B8_E9C8B8

Gfx D_0A0013B8_E9C8B8[]
extern

Definition at line 146 of file PinkFlower_gfx.c.

146 {
147 gsDPPipeSync(),
148 gsDPSetCycleType(G_CYC_1CYCLE),
149 gsDPSetRenderMode(G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2),
150 gsSPDisplayList(D_0A0007B0_E9BCB0),
151 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING),
152 gsSPSetGeometryMode(G_SHADING_SMOOTH),
153 gsSPVertex(D_0A000000_E9B500, 4, 0),
154 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
155 gsSPEndDisplayList(),
156};
Gfx D_0A0007B0_E9BCB0[]

Referenced by entity_PinkFlowerLight_setupGfx().

◆ D_0A000B70_E9D470

Mtx D_0A000B70_E9D470
extern

Definition at line 35 of file SpinningFlower.c.

Referenced by entity_SpinningFlower_setupGfx().

◆ D_0A000D18_E9D618

Gfx D_0A000D18_E9D618[]
extern

Definition at line 102 of file SpinningFlower.c.

102 {
103 gsSPDisplayList(D_0A000CC8_E9D5C8),
104 gsSPDisplayList(D_0A000C78_E9D578),
105 gsSPEndDisplayList(),
106};
Gfx D_0A000CC8_E9D5C8[]
Gfx D_0A000C78_E9D578[]

Referenced by entity_SpinningFlower_setupGfx().

◆ Entity_SpinningFlower_Render

Gfx Entity_SpinningFlower_Render[]
extern

Definition at line 113 of file SpinningFlower.c.

113 {
114 gsSPDisplayList(D_0A000D30_E9D630),
115 gsSPEndDisplayList(),
116};
Gfx D_0A000D30_E9D630[]

◆ D_802BCE20

BSS f32 D_802BCE20

Definition at line 23 of file Plants1.c.

Referenced by entity_CymbalPlant_idle().

◆ FlowerGoalPosition

BSS Vec3s FlowerGoalPosition

Definition at line 24 of file Plants1.c.

Referenced by action_update_use_spinning_flower(), and func_802BB000_E2D930().

◆ Entity_SpinningFlower_Script

EntityScript Entity_SpinningFlower_Script
Initial value:
= {
}
void func_802BB228_E2DB58(Entity *entity)
Definition Plants1.c:107
void func_802BB0A0_E2D9D0(Entity *entity)
Definition Plants1.c:67
void func_802BB314_E2DC44(Entity *entity)
Definition Plants1.c:138
void func_802BB34C_E2DC7C(Entity *entity)
Definition Plants1.c:142
#define es_Call(func)
Definition entity.h:37
#define es_Restart
Definition entity.h:40
#define es_SetCallback(func, time)
Definition entity.h:38
#define es_End
Definition entity.h:35

Definition at line 344 of file Plants1.c.

◆ Entity_PinkFlower_Script

EntityScript Entity_PinkFlower_Script
Initial value:
= {
es_SetCallback(NULL, 50)
}
void entity_PinkFlower_idle(Entity *entity)
Definition Plants1.c:178
#define es_SetFlags(flags)
Definition entity.h:43
#define es_PlaySound(soundId)
Definition entity.h:45
@ SOUND_PLANTS_LIGHT_UP
Definition enums.h:730

Definition at line 353 of file Plants1.c.

◆ Entity_PinkFlowerLight_Script

EntityScript Entity_PinkFlowerLight_Script
Initial value:
= {
}
void entity_PinkFlowerLight_idle(Entity *entity)
Definition Plants1.c:214

Definition at line 362 of file Plants1.c.

◆ Entity_CymbalPlant_Update

EntityScript Entity_CymbalPlant_Update
Initial value:
= {
}
void entity_CymbalPlant_idle(Entity *entity)
Definition Plants1.c:266

Definition at line 368 of file Plants1.c.

◆ Entity_PinkFlowerLight_RenderScript

Definition at line 373 of file Plants1.c.

◆ Entity_SpinningFlower_RenderScript

◆ Entity_CymbalPlant_dma

DmaEntry Entity_CymbalPlant_dma[] = { ENTITY_ROM(CymbalPlant_gfx), ENTITY_ROM(CymbalPlant_anim) }

Definition at line 376 of file Plants1.c.

376{ ENTITY_ROM(CymbalPlant_gfx), ENTITY_ROM(CymbalPlant_anim) };

◆ Entity_PinkFlower_dma

DmaEntry Entity_PinkFlower_dma[] = { ENTITY_ROM(PinkFlower_gfx), ENTITY_ROM(PinkFlower_anim) }

Definition at line 377 of file Plants1.c.

377{ ENTITY_ROM(PinkFlower_gfx), ENTITY_ROM(PinkFlower_anim) };

◆ Entity_CymbalPlant

EntityBlueprint Entity_CymbalPlant
Initial value:
= {
.typeDataSize = sizeof(CymbalPlantData),
.renderCommandList = Entity_CymbalPlant_AnimationIdle,
.modelAnimationNodes = Entity_CymbalPlant_Mesh,
.fpInit = NULL,
.updateEntityScript = Entity_CymbalPlant_Update,
.fpHandleCollision = NULL,
{ .dmaList = Entity_CymbalPlant_dma },
.entityType = ENTITY_TYPE_CYMBAL_PLANT,
.aabbSize = { 103, 30, 24 }
}
AnimScript Entity_CymbalPlant_AnimationIdle
EntityScript Entity_CymbalPlant_Update
Definition Plants1.c:368
DmaEntry Entity_CymbalPlant_dma[]
Definition Plants1.c:376
StaticAnimatorNode * Entity_CymbalPlant_Mesh[]
@ ENTITY_TYPE_CYMBAL_PLANT
Definition enums.h:2593
@ ENTITY_FLAG_HAS_ANIMATED_MODEL
Definition enums.h:2616
@ ENTITY_FLAG_400
Definition enums.h:2623
@ ENTITY_FLAG_FIXED_SHADOW_SIZE
Definition enums.h:2622
@ ENTITY_FLAG_CIRCULAR_SHADOW
Definition enums.h:2624

Definition at line 379 of file Plants1.c.

379 {
381 .typeDataSize = sizeof(CymbalPlantData),
382 .renderCommandList = Entity_CymbalPlant_AnimationIdle,
383 .modelAnimationNodes = Entity_CymbalPlant_Mesh,
384 .fpInit = NULL,
385 .updateEntityScript = Entity_CymbalPlant_Update,
386 .fpHandleCollision = NULL,
387 { .dmaList = Entity_CymbalPlant_dma },
388 .entityType = ENTITY_TYPE_CYMBAL_PLANT,
389 .aabbSize = { 103, 30, 24 }
390};

◆ Entity_PinkFlower

EntityBlueprint Entity_PinkFlower
Initial value:
= {
.typeDataSize = sizeof(PinkFlowerData),
.renderCommandList = Entity_PinkFlower_AnimationIdle,
.modelAnimationNodes = Entity_PinkFlower_Mesh,
.updateEntityScript = Entity_PinkFlower_Script,
.fpHandleCollision = NULL,
{ .dmaList = Entity_PinkFlower_dma },
.entityType = ENTITY_TYPE_PINK_FLOWER,
.aabbSize = { 44, 100, 25 }
}
StaticAnimatorNode * Entity_PinkFlower_Mesh[]
DmaEntry Entity_PinkFlower_dma[]
Definition Plants1.c:377
EntityScript Entity_PinkFlower_Script
Definition Plants1.c:353
void entity_PinkFlower_init(Entity *entity)
Definition Plants1.c:195
AnimScript Entity_PinkFlower_AnimationIdle

Definition at line 392 of file Plants1.c.

392 {
394 .typeDataSize = sizeof(PinkFlowerData),
395 .renderCommandList = Entity_PinkFlower_AnimationIdle,
396 .modelAnimationNodes = Entity_PinkFlower_Mesh,
397 .fpInit = entity_PinkFlower_init,
398 .updateEntityScript = Entity_PinkFlower_Script,
399 .fpHandleCollision = NULL,
400 { .dmaList = Entity_PinkFlower_dma },
401 .entityType = ENTITY_TYPE_PINK_FLOWER,
402 .aabbSize = { 44, 100, 25 }
403};

◆ Entity_SpinningFlower

EntityBlueprint Entity_SpinningFlower
Initial value:
= {
.flags = 0,
.typeDataSize = sizeof(SpinningFlowerData),
.renderCommandList = Entity_SpinningFlower_RenderScript,
.modelAnimationNodes = 0,
.updateEntityScript = Entity_SpinningFlower_Script,
.fpHandleCollision = NULL,
{ .dma = ENTITY_ROM(SpinningFlower) },
.aabbSize = { 45, 22, 42 }
}
EntityScript Entity_SpinningFlower_Script
Definition Plants1.c:344
void entity_SpinningFlower_init(Entity *entity)
Definition Plants1.c:118
EntityModelScript Entity_SpinningFlower_RenderScript
Definition Plants1.c:374
@ ENTITY_TYPE_SPINNING_FLOWER
Definition enums.h:2595

Definition at line 418 of file Plants1.c.

418 {
419 .flags = 0,
420 .typeDataSize = sizeof(SpinningFlowerData),
421 .renderCommandList = Entity_SpinningFlower_RenderScript,
422 .modelAnimationNodes = 0,
424 .updateEntityScript = Entity_SpinningFlower_Script,
425 .fpHandleCollision = NULL,
426 { .dma = ENTITY_ROM(SpinningFlower) },
427 .entityType = ENTITY_TYPE_SPINNING_FLOWER,
428 .aabbSize = { 45, 22, 42 }
429};