daNpc_Cb1_c Almost OK (#822)

* daNpc_Cb1_c Almost OK

Down to regswaps/minor instruction issues

* Oops

That inline was fake

* Some Cleanup

- Fill in more inlines
- Reorganize daNpc_Cb1_c inlines
- Use inlines more
- Some naming and typing consistency

* Naming, Consistency Tweaks

- TRUE/FALSE macros for all cases of BOOL, use int -> BOOL sometimes
- Rename HIO to be consistent with other NPCs
- Animation enum

* Some HIO Names

* Clarity Tweaks

- NULL in more asserts
- Squared constants
This commit is contained in:
SuperDude88
2025-07-29 21:04:42 -04:00
committed by GitHub
parent a211d2fd07
commit 4adfd27155
9 changed files with 2998 additions and 350 deletions
+8
View File
@@ -647,6 +647,14 @@ inline s32 fopAcM_seenPlayerAngleY(fopAc_ac_c* actor) {
return fopAcM_seenActorAngleY(actor, (fopAc_ac_c*)dComIfGp_getPlayer(0));
}
inline s32 fopAcM_toActorShapeAngleY(fopAc_ac_c* actor1, fopAc_ac_c* actor2) {
return actor1->shape_angle.y - actor2->shape_angle.y;
}
inline s32 fopAcM_toPlayerShapeAngleY(fopAc_ac_c* actor) {
return fopAcM_toActorShapeAngleY(actor, (fopAc_ac_c*)dComIfGp_getPlayer(0));
}
inline f32 fopAcM_searchPlayerDistanceY(fopAc_ac_c* actor) {
return fopAcM_searchActorDistanceY(actor, (fopAc_ac_c*)dComIfGp_getPlayer(0));
}