Go to the source code of this file.
◆ entity_shattering_setupGfx()
void entity_shattering_setupGfx |
( |
s32 | entityIndex | ) |
|
Definition at line 154 of file ShatteringBlock_common.c.
154 {
155 s32 i;
168
172
173 for (i = 0; i < 24; i++) {
174 if (data->
alpha == 255) {
177 } else {
180 }
181
190
195 }
196
198}
BSS s32 PopupMenu_SelectedIndex
#define ENTITY_ADDR(entity, type, data)
Gfx ** fragmentDisplayLists
Entity * get_entity_by_index(s32 index)
DisplayContext * gDisplayContext
Referenced by entity_shattering_init_pieces().
◆ entity_BrickBlock_idle()
◆ entity_shattering_init_pieces()
void entity_shattering_init_pieces |
( |
Entity * | entity, |
|
|
Gfx ** | dlists, |
|
|
Mtx * | matrices ) |
Definition at line 10 of file ShatteringBlock_common.c.
10 {
13 s32 i;
16 s32 rotSpeed;
18
24
28 }
29
32
33 for (i = 0; i < 24; i++) {
40
42 rotSpeed = 20;
43 fallSpeed = 6.4f;
45 } else {
46 rotSpeed = 40;
47 fallSpeed = 8.6f;
49 }
52 if ((i % 2) == 0) {
54 }
55
60 }
61}
void entity_shattering_setupGfx(s32 entityIndex)
f32 fragmentFallSpeed[25]
s32 is_block_on_ground(Entity *block)
Referenced by entity_shattering_block_init().
◆ entity_shattering_idle()
Definition at line 63 of file ShatteringBlock_common.c.
63 {
69 s32 i;
73
74 for (i = 0; i < 24; i++) {
76 case 0:
79 } else {
81 }
84 break;
85 case 1:
89 break;
90 case 2:
94 if (data->
alpha == 0) {
96 }
97 break;
98 case 3:
100 continue;
101 }
102
106 }
108
113
122
127 }
128
137 }
138
141 }
142
147 if (data->
alpha <= 0) {
150 }
151 }
152}
#define npc_raycast_down_sides
@ COLLISION_IGNORE_ENTITIES
b32 npc_test_move_taller_with_slipping(s32, f32 *, f32 *, f32 *, f32, f32, f32, f32)
void exec_entity_commandlist(Entity *entity)
void sin_cos_rad(f32 rad, f32 *outSinTheta, f32 *outCosTheta)
◆ Entity_ShatteringBlock_Script
Initial value:= {
}
void entity_shattering_idle(Entity *entity)
#define es_SetCallback(func, time)
#define es_SetFlags(flags)
@ ENTITY_FLAG_PENDING_INSTANCE_DELETE
@ ENTITY_FLAG_DISABLE_COLLISION
Definition at line 200 of file ShatteringBlock_common.c.