summaryrefslogtreecommitdiff
path: root/src/code/z_actor.c
AgeCommit message (Collapse)Author
2024-09-23Document Player Knockback related functions (#1601)mzxrules
* document knockback related functions * rotation -> yRot * implement some changes * Renames and comments * mq bss * format * Intangibility and Invulnerability * bss * .bss * add #pragma increment_block_number to z_en_item00.c * .bss
2024-09-21PLAYER_STATE1_ACTOR_CARRY -> PLAYER_STATE1_CARRYING_ACTOR (#2213)fig02
2024-09-17`PLAYER_STATE1_DEAD` (#2204)fig02
* PLAYER_STATE1_DEAD * change comment * format
2024-09-16Name `PLAYER_STATE1_CHARGING_SPIN_ATTACK` (#2203)fig02
* name charge state flag * format
2024-09-16Document `zTargetActiveTimer` (#2200)fig02
* document zTargetActiveTimer * edit comments * Update src/overlays/actors/ovl_player_actor/z_player.c Co-authored-by: cadmic <cadmic24@gmail.com> * capitalization --------- Co-authored-by: cadmic <cadmic24@gmail.com>
2024-09-13Hostile Lock-On (#2193)fig02
* document flag and functions * format * adjust comment * make the comment more public-facing-friendly
2024-09-12[ntsc-1.2] Match ntsc-1.2 BSS and add to CI (#2187)cadmic
* Match ntsc-1.2 * Add ntsc-1.2 to CI * Apply fixes from Jenkins * Promote ntsc-1.2 to "supported" in Makefile * Declare D_80858AD8 as a u64 array * Tweak wording * Hopefully make ntsc-1.2 bss more stable * Restore segmented_address.h include
2024-09-12Add OOT_PAL_N64 and move other shorthands to versions.h (#2188)cadmic
* Move definitions of OOT_NTSC/OOT_PAL/OOT_MQ to versions.h * Add PAL_N64 shorthand
2024-09-11Cleanup gSPMatrix, rename `Matrix_New` -> `Matrix_Finalize`, add ↵Dragorn421
`MATRIX_FINALIZE_AND_LOAD` (#1983) * clean up gSPMatrix usage * add weird hybrid macro gSPMATRIX_SET_NEW * Matrix_NewMtx, MATRIX_NEW -> Matrix_Finalize, MATRIX_FINALIZE * gSPMATRIX_SET_NEW -> MATRIX_FINALIZE_AND_LOAD * format
2024-09-08Name `PLAYER_STATE1_ACTOR_CARRY` (#2173)fig02
* actor carry flag * format and add comments * comment changes
2024-09-08[headers 9] Add src/libc64/ and new "z64" rand.h (#2164)Dragorn421
* rand.h -> libc64/qrand.h * Add rand.h with z64 rand wrappers * yeet comment * code/rand.c -> libc64/qrand.c * fixup * move libc64 source to src/libc64/ * fix * bss * update file splits disasm metadata
2024-09-08Document `ACTOR_FLAG_SFX_` flags and functions (#2162)Dragorn421
* Document `ACTOR_FLAG_SFX_` flags and functions * format
2024-09-07Document Attention/Lock-on Related Actor Flags (#2161)fig02
* document actor flags 0, 2, 3, and 27 * format * fly -> hover * wodring
2024-09-07Target -> Attention (System Rename) (#2149)fig02
* TargetContext -> Attention * targetCtx -> attention * Target_ -> Attention_ * FindTargetableActor -> FindActor * targetableActorP -> attentionActorP * data vars (and 1 function I missed) * targetMode -> attentionRangeType * attention range enum comments * ATTENTION_RANGE_ * attention range data * TargetColor -> AttentionColor * missed one * fixup color variables * targetArrowOffset -> lockOnArrowOffset * focus pos comment * targetPriority -> attentionPriority * assets * loose-ends * Attention System Description * format * skj range type * enemy bgm
2024-09-06[ntsc-1.2] Match more draw functions (#2145)cadmic
* Match z_vr_box.c * Match TitleCard_Draw * Match z_player_lib.c? * Match Lights_Draw
2024-09-06T() macro 8 (#2142)Dragorn421
* T() macro in fault * T() macro in game.c, gfxprint.c * T() macro in ucode_disas.c * T() macro in z_actor.c * T() macro in z_message.c * push fault key combo T() * z_message T: koko -> "here" * format
2024-09-05Document `Target_ShouldReleaseLockOn` [Target Docs 8/8] (#2135)fig02
* target range and leash docs * format
2024-09-05Update Room Documentation (#2015)mzxrules
* Update Room Documentation * Write more complete documentation, implement suggestions. * Function name changes; minor comment tweaks * nit * Resolve Dragorn fixes * Resolve Fig suggestions, fix comment wording * fix bss, fig suggestion * bss
2024-09-04Target Mode Enum [Target Docs 7/?] (#2133)fig02
* TargetMode Enum * format * add default comment * bss * bss 2 * fix bss 3
2024-09-04istargeted -> islockedon (#2132)fig02
2024-09-05unk_664 -> focusActor [Target Docs 5/?] (#2126)fig02
* unk_664 -> focusActor * capitalization * missed a temp
2024-09-03Rename FaultDrawer_ functions to Fault_ (#2113)cadmic
* Rename FaultDrawer_ functions to Fault_ * Rename FaultDrawer_Init to Fault_InitDrawer
2024-09-03Document Target_Update [Target Docs 4/?] (#2123)fig02
* document Target_Update * add comments * try CLAMP (dbg is ok but ci will check retail)
2024-09-03Target System Docs: Actor Searching [3/?] (#2120)fig02
* document target actor searching * missed something * review * mzx review
2024-09-01Document Target_Draw [Target Docs 2/?] (#2115)fig02
* document Target_Draw Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * fix missed renames * retail fix * another fix --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
2024-08-31Target Docs [1/?] (#2110)fig02
* Target Docs Part 1 Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * review --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
2024-08-28[ntsc-1.2] Decompile fault.c (#2046)Dragorn421
* wip decomp ntsc-1.2 fault.c * more ntsc-1.2 fault.c * decompiled fault_v1.c * name fault_v1 functions, wip * try to clean up build system (two versions of the fault system coexisting) * cleanup * cleanup2 * fix build gc-eu-mq-dbg * match 2 more, ty anon * matched * review * more review * fixup spec * `(uintptr_t)ptr op int` instead of `ptr op (type*)int` * move fault.h out of global headers, properly include fault.h and versions.h * compile all fault_*.c files regardless of version by overriding FAULT_VERSION * n64 FaultMgr.framebuffer s32 -> u16* * FaultMgr.framebuffer -> FaultMgr.fb * make gc FaultMgr.fb u16* (yes, thats everything) * bss * fix Fault_Printf return type * noop FaultDrawer_SetFontColor, FaultDrawer_SetCharPad in fault_n64 * fault_color_ stuff is only for fault_gc * rm empty line in makefile * I guess `D_80105A90_unknown` is `[sg]TotalAllocFailures` * bss * `Fault_WaitInput` -> `Fault_WaitForInput` * use named fault funcs in pointers array * FAULT_OOT{N64,GC} -> FAULT_{N64,GC} * Apply suggestions from code review Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> * review, sync fault_{gc,n64} * Apply `FPCSR_CE` suggestions from code review Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> --------- Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>
2024-08-20Match more ntsc-1.2 overlay draw functions (#2061)cadmic
* Match more overlay draw functions * Review
2024-08-19Allow building the Debug ROM without debug features (#2052)cadmic
* Allow building the Debug ROM without debug features * Fix bss * Add comment * Reword again * Fix bss
2024-08-14[ntsc-1.2] Match z_construct.c, z_draw.c, z_kaleido_setup.c and partially ↵Dragorn421
z_actor.c (#2039) * func_80033C30 * Interface_Init * z_draw.c * KaleidoSetup_Destroy , n64dd.h * z_kaleido_setup.c * add n64dd files to spec according to tools/disasm/ntsc-1.2/files_code.csv , they're between irqmgr.o and fault.o putting them before or after malloc_debug.o in the spec is an arbitrary choice
2024-08-12Add names to all typedef'd structs, unions, and enums (#2028)cadmic
* Add names to all typedef'd structs, unions, and enums * wtf vs code * Use a better regex
2024-08-11[Doc] name function func_8002DBD0 to Actor_WorldToActorCoords (#2029)krm01
* name function Actor_WorldToActorCoords * clean up some misleading usages
2024-08-09Match remaining GC retail versions (#2019)cadmic
* Match the remaining GC retail versions * Fix BSS ordering for existing versions * Disable clang-format for #pragma increment_block_number * sramResetCode -> sSramResetCode * Replace 0xFF3F with or-ing all buttons together * Revert "Disable clang-format for #pragma increment_block_number" This reverts commit 406b6d26c92911c676a7ea9f07a1612211760e11. --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2024-08-08gc-us OK (#2018)cadmic
Match BSS order and delete disassembly data
2024-08-02Automate fixing BSS ordering (#2009)cadmic
* Automate fixing BSS ordering * Typo * Some cleanups * Move pragma check after printing BSS info * Some proofreading * multiprocessing, require version, some colors * Tweak output * Black + mypy * Move logging and sys.exit out of helper functions * Use stdout instead of stderr in fix_bss.py * Add suggestion to conflicting offsets error Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Remove var = list[T]() * Improve error handling Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Add error if no pointers to BSS * Add comment about process_file_worker * Only print updates if stdout is a tty * Use new binary-search-esque candidate generation algorithm Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Add Wikipedia link * More comment tweaks --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2024-08-02`InitVars` -> `Profile` (#2011)fig02
* rename ActorInit * rename actorInit * rename initInfo * EffectSs Profile * _InitVars -> _Profile * format, loose ends * revert tutorial
2024-07-28Match NTSC loose ends (#2004)cadmic
* Match NTSC loose ends * Add comment about giObjectSegment size
2024-06-09Fix LensMode Enum Names (#1954)inspectredc
2024-04-28Rename yDistToWater -> depthInWater (#1950)cadmic
* Rename yDistToWater -> yDistUnderWater * yDistUnderWater -> depthInWater
2024-04-22Player Docs: Control stick buffers (#1945)fig02
* name vars and add enum * name some spin attack stuff * fix right and left * forward/backward * format * fix retail bss * sControlStickWorldYaw
2024-04-14Match retail BSS ordering (#1927)cadmic
* Match retail BSS ordering * Revert moving some global variables to headers * Adjust block numbers after header changes * Fix debug build * Overlay bss ordering * Fix BSS ordering after header changes * gc-eu-mq OK * Implement preprocessor for #pragma increment_block_number * Transfer usage comment from reencode.sh * Use temporary directory instead of temporary file * Move ColChkMassType back
2024-03-24targetActor -> talkActor (#1933)fig02
2024-03-23Document Player's Face and z_actor FaceChange functions (#1928)fig02
* create some enums * gonna try struct instead of array * struct works. add docs too * inline function comments * fix function comment * name faces, move enums * rename textures * outnames * remove comments * change comment slightly * fixup face comments * review * offset comments * add and use PLAYER_FACE_MAX * typo * more comment on blinkDuration * another change to the comment
2024-03-04Colliders: change "touch, bump" to AT and AC (elems) (#1637)Dragorn421
* toucherFlags, bumperFlags -> atElemFlags, acElemFlags * TOUCH_ -> ATELEM_ * BUMP_ -> ACELEM_ * ColliderElementTouch,Bump -> ColliderElementDamageInfoAT,AC * toucher,bumper -> atDmgInfo,acDmgInfo * Update docs and zcolchk funcs names * run formatter * remove the last mentions of "bump" for colliders * Update renamed functions in disasm
2024-02-29Use Romfile in place of vromStart and vromEnd in structs (#1742)Derek Hensley
* KaleidoMgrOverlay * GameStateOverlay * ActorOverlay * EffectSsOverlay * MapMarkDataOverlay * Missed DEFINE_ACTOR_UNSET * ROM_FILE_UNSET * DEFINE_OBJECT_EMPTY * DmaEntry * ACTOR_UNSET * romfile.h * newline * Format
2024-02-01Use IDO_PRINTF_WORKAROUND everywhere (#1685)cadmic
2024-01-31z_view.c gc-eu-mq OK (#1681)Tharo
* z_view.c retail * Replace PERSPECTIVE_EDITOR_ACTIVE, adjust PRINTF selection condition * Macro-ify View_ErrorCheckEyePosition
2024-01-30z_actor retail OK (#1670)engineer124
* actor ok * cleanup * cleanup * cleanup * player * ACTOR_PRINTF * PR Suggestion * gcc * c file * ACTOR_DEBUG_PRINTF * bool * more review * newline
2024-01-30z_collision_check.c OK (#1642)cadmic
* Match z_collision_check.c * Disable function declarations * Remove /* OOT_DEBUG */ * Remove newlines around ifdef * Newlines * Tweak z_actor.c #if to avoid merge conflicts
2024-01-18Small `Math_Vec3f_Yaw` doc (#1433)Dragorn421
* Small `Math_Vec3f_Yaw` doc * remove actor from arg names --------- Co-authored-by: fig02 <fig02srl@gmail.com>