Mario Kart 64
Loading...
Searching...
No Matches
update.inc.c
Go to the documentation of this file.
1#include <actors.h>
2
10 if ((arg0->flags & 0x800) == 0) {
11 if ((arg0->flags & 0x400) != 0) {
12 arg0->pos[1] += 4.0f;
13 if (arg0->pos[1] > 800.0f) {
14 arg0->flags |= 0x800;
15 }
16 } else {
17 // This has to be an unrolled loop
18 if (arg0->visibilityStates[0] == 1) {
19 arg0->timers[0]++;
20 if (arg0->timers[0] > 60) {
21 arg0->timers[0] = 6;
22 }
23 } else {
24 arg0->timers[0] = 0;
25 }
26 if (arg0->visibilityStates[1] == 1) {
27 arg0->timers[1]++;
28 if (arg0->timers[1] > 60) {
29 arg0->timers[1] = 6;
30 }
31 } else {
32 arg0->timers[1] = 0;
33 }
34 if (arg0->visibilityStates[2] == 1) {
35 arg0->timers[2]++;
36 if (arg0->timers[2] > 60) {
37 arg0->timers[2] = 6;
38 }
39 } else {
40 arg0->timers[2] = 0;
41 }
42 if (arg0->visibilityStates[3] == 1) {
43 arg0->timers[3]++;
44 if (arg0->timers[3] > 60) {
45 arg0->timers[3] = 6;
46 }
47 } else {
48 arg0->timers[3] = 0;
49 }
50 }
51 }
52}
void update_actor_piranha_plant(struct PiranhaPlant *arg0)
Updates the piranha plant actor. Actor used in Mario Raceway and Royal Raceway.
Definition update.inc.c:9
Definition actor_types.h:262
Vec4s visibilityStates
Definition actor_types.h:265
Vec4s timers
Definition actor_types.h:269
s16 flags
Definition actor_types.h:264
Vec3f pos
Definition actor_types.h:268