Go to the source code of this file.
◆ entity_Padlock_setupGfx()
void entity_Padlock_setupGfx |
( |
s32 | entityIndex | ) |
|
◆ entity_Padlock_push_player()
void entity_Padlock_push_player |
( |
Entity * | entity | ) |
|
Definition at line 51 of file Padlock.c.
51 {
54 f32 deltaX, deltaZ;
55
58 } else {
59 entity->
flags &= ~ENTITY_FLAG_DISABLE_COLLISION;
60 }
61
65 }
66
68
71 }
72
75
76 playerStatus->
pos.
x += deltaX;
77 playerStatus->
pos.
z -= deltaZ;
78 } else {
80 }
81}
@ ENTITY_COLLISION_PLAYER_TOUCH_FLOOR
@ ENTITY_FLAG_DISABLE_COLLISION
void suggest_player_anim_allow_backward(AnimID anim)
PlayerStatus gPlayerStatus
Referenced by entity_Padlock_idle().
◆ entity_Padlock_idle()
void entity_Padlock_idle |
( |
Entity * | entity | ) |
|
Definition at line 83 of file Padlock.c.
83 {
85
86 switch (data->
state) {
87 case 0:
92 }
93 break;
94 case 1:
99 entity->
rot.
z += 12.0;
102 }
103 break;
104 case 2:
107
110
118 }
119 break;
120 case 3:
123
126
134 }
135 break;
136 case 4:
137 if (--data->
timer <= 0) {
139 }
140 break;
141 case 5:
145 }
147 if (entity->
rot.
x >= 90.0) {
148 entity->
rot.
x = 90.0f;
152 }
153 break;
154 case 6:
158 }
160 if (entity->
rot.
x >= 90.0) {
161 entity->
rot.
x = 90.0f;
165 }
166 break;
167 case 7:
168 if (--data->
timer <= 0) {
172 }
173 break;
174 case 8:
175 if (--data->
timer <= 0) {
179 }
180 break;
181 }
182
187 } else {
188 entity->
flags &= ~ENTITY_FLAG_HIDDEN;
189 }
190 }
191}
void entity_Padlock_push_player(Entity *entity)
s32 entity_start_script(Entity *entity)
void exec_entity_commandlist(Entity *entity)
void sfx_play_sound(s32 soundID)
◆ entity_Padlock_init()
void entity_Padlock_init |
( |
Entity * | entity | ) |
|
Definition at line 193 of file Padlock.c.
193 {
195
200}
Gfx Entity_Padlock_RenderShackle[]
void entity_Padlock_setupGfx(s32 entityIndex)
Mtx Entity_Padlock_mtxShackle
#define ENTITY_ADDR(entity, type, data)
void(* renderSetupFunc)(s32)
◆ entity_PadlockRedFrame_init()
void entity_PadlockRedFrame_init |
( |
Entity * | entity | ) |
|
Definition at line 202 of file Padlock.c.
202 {
204
209}
Gfx Entity_PadlockRedFrame_RenderShackle[]
Mtx Entity_PadlockRedFrame_mtxShackle
◆ entity_PadlockRedFace_init()
void entity_PadlockRedFace_init |
( |
Entity * | entity | ) |
|
Definition at line 211 of file Padlock.c.
211 {
213
218}
Gfx Entity_PadlockRedFace_RenderShackle[]
Mtx Entity_PadlockRedFace_mtxShackle
◆ entity_PadlockBlueFace_init()
void entity_PadlockBlueFace_init |
( |
Entity * | entity | ) |
|
Definition at line 220 of file Padlock.c.
220 {
222
227}
Gfx Entity_PadlockBlueFace_RenderShackle[]
Mtx Entity_PadlockBlueFace_mtxShackle
◆ Entity_Padlock_Render
Gfx Entity_Padlock_Render[] |
|
extern |
Definition at line 167 of file Padlock.c.
167 {
171 gsSPEndDisplayList(),
172};
Gfx Entity_Padlock_RenderFace[]
Gfx Entity_Padlock_RenderKeyhole[]
Gfx Entity_Padlock_RenderBody[]
◆ Entity_Padlock_RenderShackle
Gfx Entity_Padlock_RenderShackle[] |
|
extern |
◆ Entity_Padlock_mtxShackle
Mtx Entity_Padlock_mtxShackle |
|
extern |
◆ Entity_PadlockRedFrame_Render
Gfx Entity_PadlockRedFrame_Render[] |
|
extern |
Definition at line 152 of file PadlockRedFrame.c.
152 {
155 gsSPEndDisplayList(),
156};
Gfx Entity_PadlockRedFrame_RenderShackle[]
Gfx Entity_PadlockRedFrame_RenderMain[]
◆ Entity_PadlockRedFrame_RenderShackle
Gfx Entity_PadlockRedFrame_RenderShackle[] |
|
extern |
◆ Entity_PadlockRedFrame_mtxShackle
Mtx Entity_PadlockRedFrame_mtxShackle |
|
extern |
◆ Entity_PadlockRedFace_Render
Gfx Entity_PadlockRedFace_Render[] |
|
extern |
Definition at line 172 of file PadlockRedFace.c.
172 {
175 gsSPEndDisplayList(),
176};
Gfx Entity_PadlockRedFace_RenderShackle[]
Gfx Entity_PadlockRedFace_RenderMain[]
◆ Entity_PadlockRedFace_RenderShackle
Gfx Entity_PadlockRedFace_RenderShackle[] |
|
extern |
◆ Entity_PadlockRedFace_mtxShackle
Mtx Entity_PadlockRedFace_mtxShackle |
|
extern |
◆ Entity_PadlockBlueFace_Render
Gfx Entity_PadlockBlueFace_Render[] |
|
extern |
Definition at line 172 of file PadlockBlueFace.c.
172 {
175 gsSPEndDisplayList(),
176};
Gfx Entity_PadlockBlueFace_RenderShackle[]
Gfx Entity_PadlockBlueFace_RenderMain[]
◆ Entity_PadlockBlueFace_RenderShackle
Gfx Entity_PadlockBlueFace_RenderShackle[] |
|
extern |
◆ Entity_PadlockBlueFace_mtxShackle
Mtx Entity_PadlockBlueFace_mtxShackle |
|
extern |
◆ Entity_Padlock_Script
Initial value:= {
}
void entity_Padlock_idle(Entity *entity)
#define es_SetCallback(func, time)
#define es_SetFlags(flags)
@ ENTITY_FLAG_PENDING_INSTANCE_DELETE
Definition at line 229 of file Padlock.c.
◆ Entity_Padlock_RenderScript
◆ Entity_PadlockRedFrame_RenderScript
◆ Entity_PadlockRedFace_RenderScript
◆ Entity_PadlockBlueFace_RenderScript
◆ Entity_Padlock
Initial value:= {
.modelAnimationNodes = 0,
.fpHandleCollision = NULL,
.aabbSize = { 30, 175, 10 }
}
EntityScript Entity_Padlock_Script
EntityModelScript Entity_Padlock_RenderScript
void entity_Padlock_init(Entity *entity)
@ ENTITY_FLAG_SHOWS_INSPECT_PROMPT
Definition at line 240 of file Padlock.c.
240 {
244 .modelAnimationNodes = 0,
247 .fpHandleCollision = NULL,
250 .aabbSize = { 30, 175, 10 }
251};
◆ Entity_PadlockRedFrame
Initial value:= {
.modelAnimationNodes = 0,
.fpHandleCollision = NULL,
.aabbSize = { 30, 175, 10 }
}
EntityModelScript Entity_PadlockRedFrame_RenderScript
void entity_PadlockRedFrame_init(Entity *entity)
@ ENTITY_TYPE_PADLOCK_RED_FRAME
Definition at line 253 of file Padlock.c.
253 {
257 .modelAnimationNodes = 0,
260 .fpHandleCollision = NULL,
263 .aabbSize = { 30, 175, 10 }
264};
◆ Entity_PadlockRedFace
Initial value:= {
.modelAnimationNodes = 0,
.fpHandleCollision = NULL,
.aabbSize = { 30, 175, 10 }
}
void entity_PadlockRedFace_init(Entity *entity)
EntityModelScript Entity_PadlockRedFace_RenderScript
@ ENTITY_TYPE_PADLOCK_RED_FACE
Definition at line 266 of file Padlock.c.
266 {
270 .modelAnimationNodes = 0,
273 .fpHandleCollision = NULL,
276 .aabbSize = { 30, 175, 10 }
277 };
◆ Entity_PadlockBlueFace
Initial value:= {
.modelAnimationNodes = 0,
.fpHandleCollision = NULL,
.aabbSize = { 30, 175, 10 }
}
void entity_PadlockBlueFace_init(Entity *entity)
EntityModelScript Entity_PadlockBlueFace_RenderScript
@ ENTITY_TYPE_PADLOCK_BLUE_FACE
Definition at line 279 of file Padlock.c.
279 {
283 .modelAnimationNodes = 0,
286 .fpHandleCollision = NULL,
289 .aabbSize = { 30, 175, 10 }
290};