45eed680d6
code_8013EC10 and code_80182CE0 (z_rumble and sys_rumble) (#763 )
...
* First pass
* import bss
* cleanup warnings
* PadMgr_ControllerHasRumblePak
* z64rumble.h
* rename file to z_rumble.c
* format
* Update src/code/z_rumble.c
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com >
* Update src/code/z_rumble.c
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com >
* name a temp
* minor cleaning
* bss
* match code_80182CE0
* import data and cleanups
* Rename RumbleManager struct and sys_rumble file
* Rename functions from sys_rumble
* Rename parameter to distSq
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com >
* more notes and a bit of cleaning
* Name Rumble_Add and Rumble_AddForced
* some extra notes
* Rename Rumble_Override and Rumble_Request
* document states
* minor renames
* actorfixer
* format
* very minor docs
* whoops
* remove redundant prevent_bss_reordering
* Update src/overlays/actors/ovl_Bg_Iknin_Susceil/z_bg_iknin_susceil.c
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com >
* Update src/overlays/actors/ovl_Bg_Iknin_Susceil/z_bg_iknin_susceil.c
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com >
* Update src/overlays/actors/ovl_Bg_Iknin_Susceil/z_bg_iknin_susceil.c
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com >
* namefixer
* Update src/code/sys_rumble.c
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com >
* fix
* Elliptic review
Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com >
* minor cleanups
* Update include/z64rumble.h
Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com >
* review
Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com >
* Update src/code/sys_rumble.c
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com >
* Update src/code/z_rumble.c
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com >
* review
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com >
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com >
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com >
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com >
Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com >
Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com >
2022-06-29 22:08:03 +01:00
Tom Overton and GitHub
158d1b26b0
PlayState rename ( #835 )
...
* PlayState rename
* Make this work with the latest master and run format
* Respond to hensldm's review
* Respond to Elliptic's review
* Add Effect_GetPlayState to namefixer.py
* Add missed comma
2022-06-26 11:57:37 -04:00
mzxrules and GitHub
361d8573e9
z_obj_tsubo OK ( #784 )
...
* 4 unattempts left
* z_obj_tsubo OK
* name some functions
* implement suggestions
* implement EllipticEllipsis changes
* implement more suggestions
2022-06-20 20:44:12 +01:00
Alejandro Asenjo and GitHub
c6963e27d0
ovl_Item_Etcetera decompiled ( #849 )
...
* ovl_Item_Etcetera decompiled
* PR review fixes
* PR Review Fixes
* pr review fixes
* pr review fixes
* pr review fixes
* final
* merge
Co-authored-by: SonicDcer <noreply@github.com >
2022-06-20 17:26:48 +01:00
37d3934e2c
Code_800E8EA0 Docs ( #832 )
...
* Start
* Add notes from OOT
* D_801D0D50 -> gDbgCamEnabled
* Rotation Functions
* Text function
* RotateBack -> RotateForward
* Flags functions
* Document rotation func returns
* Remove comment from play
* Rename play function, add notes about Flags, add notes about focus
* Update notes a little
* Update src/code/code_800E8EA0.c
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com >
* Fix apostrophes
* Bring over OoT changes
* TurnTo -> Track in SubS systesm
* format and remove OoT specific comment
* Remove old comments
* namefixer
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com >
2022-06-20 01:16:30 +01:00
Tom Overton and GitHub
6d371502e1
Actor effect cleanup ( #828 )
...
* Change "particle" to "effect" in most actors
* Undo accidental comment change
* Effect count defines
* Make struct names consistent
* Fix minislime
* Change particle to effect in Demo_Kankyo
* Some tiny things I missed
2022-06-20 01:11:47 +01:00
Derek Hensley and GitHub
9682995b04
Controller Macros Update ( #852 )
...
* macros
* Format, I will remember 1 day
2022-06-20 00:57:23 +01:00
d318b1f285
SubS Time Paths (Finale) ( #823 )
...
* Merge in sub_s_models
* Update subs DL names
* Unused Weight pathing
* Function headers for weightpathing
* TimePathing WIP
* Timepathing, still unsure about unk184
* Move subs functions from functions.h to z64subs.h
* Add fake comment
* Some cleanup and renames
* Renames/cleanup of actors that use timepath
* Cleanup
* More cleanup
* Rename unk stuff
* Merge in upstream/master
* TimeElapsed -> elapsedTime
* Fix
* Final cleanup
* Fix waypoint comments
* Review pt. 1
* Add clarifying comment to SubS_TimePathing_FillWeightArray
* format.sh
* Fix order comments
* weightArray -> knots
* Review pt 1
* Review pt 2
* Update src/code/z_sub_s.c
Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com >
* Update src/code/z_sub_s.c
Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com >
Co-authored-by: Maide <34639600+Kelebek1@users.noreply.github.com >
Co-authored-by: Tom Overton <tom-overton@users.noreply.github.com >
Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com >
2022-06-20 00:49:20 +01:00
Alejandro Asenjo and GitHub
67345d9be5
z_bg_astr_bombwall decompiled ( #841 )
...
* z_bg_astr_bombwall decompiled
* review fixes
* formatting
* pr review fixes
* PR review fixes
* PR review fixes
Co-authored-by: SonicDcer <noreply@github.com >
2022-06-19 23:28:48 +01:00
EllipticEllipsis and GitHub
7ca70d496d
Change Rand_Next to u32, document rand.c a bit more ( #819 )
...
* Change Rand_Next to u32, document rand.c a bit more
* Clean up the quotes a bit, add another note
* Format
* — -> -
* Review
* Remove unnecessary casts
* Remove quote, reformat the comments
* Fix new files
* Make docs a bit more consistent and specific
* Format
2022-06-19 04:14:55 +01:00
56c517dc07
Obj_Toge ( #815 )
...
* Obj_Toge
* Wat
* One more thing
* PR
* PR
* a
Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com >
2022-06-19 03:45:09 +01:00
af0123de1e
z_fcurve_data OK, match last function in z_fcurve_data_skelanime, document SkelCurve system (#776 )
...
* Match SkelCurve_Update
Co-authored-by: Kelebek1 <34639600+Kelebek1@users.noreply.github.com >
* Match and document z_fcurve_data
* Begin documenting SkelCurve
* More documentation
* Deformat header
* Pluralise knotCount
* Sort out jointTable
* Rename frameCount
* Format
* More documentation
* Cleanup on DemoEffect
* Remove space on typedef
* Format, couple of fixes in the header
* Review
* Oops
* Fix EnBox, DemoTreLgt, use macros in EnTorch
Co-authored-by: Kelebek1 <34639600+Kelebek1@users.noreply.github.com >
2022-06-19 03:38:10 +01:00
Derek Hensley and GitHub
9bf84176d4
Load OK ( #792 )
...
* Progress
* cleanup
* Fix comment
* progress
* OK
* Review pt1
* Update comments
* update comments some more
* Renamings
* Add headers and some parens cleanup
* Remove zelda64
* PR review
* bss
* Explain each relocation type a bit in the header comment
* Relocate_Addr macro
* Split off into z64load.h
* Adjust comment slightly based on OOT review
* OverlayRelocationType -> MIPSRelocationType
* Last bit of cleanup from OoT
* format
* Split off functions
2022-06-19 03:28:55 +01:00
Maide and GitHub
98ba755751
En_Horse_Link_Child ( #806 )
...
* EnHorseLinkChild
* PR
* PR
2022-06-19 03:23:25 +01:00
Maide and GitHub
dd8221c798
En_Time_Tag ( #810 )
...
* En_Time_Tag
* BSS
* PR
* PR
2022-06-19 03:19:33 +01:00
Derek Hensley and GitHub
271b7c7827
Gfxprint OK ( #826 )
...
* Match last two functions as well as some cleanup
* One more small cleanup
* Reviews
* format
* Move internal GFXP_FLAG defines to c file
* Format
2022-06-19 02:56:10 +01:00
Tom Overton and GitHub
d1b75e4c4b
VisMono OK and documented ( #829 )
...
* VisMono OK and documented
* Add some more parentheses
* Fix functions.h
* Respond to hansldm's review
2022-06-19 02:46:41 +01:00
mzxrules and GitHub
ec43a32c26
z_en_box.c, z_demo_tre_lgt.c OK, some object_box documentation ( #703 )
...
* All functions attempted, 2 NON_MATCHINGs
* z_en_box OK, more documentation
* format
* en_box cleanups, fix GI item table
* z_demo_tre_lgt OK
* format.sh
* pr suggestions 1
* object_box improvements
* Merge remote-tracking branch 'origin/master' into z_en_box
* Revert "Merge remote-tracking branch 'origin/master' into z_en_box"
This reverts commit 5aacdf26e49c91fadc6f50dc2b9e19935a8f3ec4.
* more suggested changes
* fix comment
2022-06-18 10:33:59 -04:00
8049dec339
sys_matrix OK, documented, rename some other mathematics functions (#787 )
...
* Import data and bss, add some name options
* Decomp rest of stack functions,
remove RSPMatrix,
split header
* sys_matrix OK (thanks Tharo)
Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com >
* pragma weaks in sinf and cosf, change documentation
change mcros to use 0x8000
* Rename sinf and cosf
* Correct initialisation of sMtxFClear
* More minor cleanup
* Rename stack functions
* Matrix_InsertMatrix -> Matrix_Mult
* The big transpose rename
* Fix MirRay_DrawReflectedBeam
* Matrix_InsertTranslation -> Matrix_Translate
* Matrix_Insert.Rotation_s -> Matrix_Rotate$1S
+ RotateY -> RotateYS
* Matrix_Insert(.)Rotation_f -> Matrix_Rotate$1F
* Matrix_RotateStateAroundXAxis -> Matrix_RotateXFApply
Matrix_SetStateXRotation -> Matrix_RotateXFNew
* Matrix_MultiplyVector3fByState -> Matrix_MultVec3f
* Matrix_MultiplyVector3fXZByCurrentState -> Matrix_MultVec3fXZ
* Matrix_GetStateTranslation -> Matrix_MultZero
* Matrix_GetStateTranslationAndScaled(.) -> Matrix_MultVec$1
* Matrix_FromRSPMatrix -> Matrix_MtxToMtxF
* Matrix_MultiplyVector3fByMatrix -> Matrix_MultVec3fExt
* Matrix_TransposeXYZ -> Matrix_Transpose
* Matrix_ToRSPMatrix -> Matrix_MtxFToMtx
* Matrix_AppendToPolyOpaDisp -> Matrix_MtxFToNewMtx
and document the conversion functions
* Matrix_NormalizeXYZ -> Matrix_ReplaceRotation
* Matrix_InsertRotationAroundUnitVector_f -> Matrix_RotateAxisF and S
* Matrix_InsertRotation -> Matrix_RotateZYX
* Document the last functions
* Small cleanup
* Matrix_JointPosition -> Matrix_TranslateRotateZYX
* Matrix_SetStateRotationAndTranslation -> Matrix_SetTranslateRotateYXZ
* func_8018219C -> Matrix_MtxFToYXZRot
* func_801822C4 -> Matrix_MtxFToZYXRot
* Fix files
* Format
* Review 1
* Renames
* Fix warning in EnDragon
* Format
* Convert `mode` to an actual enum
* Add enums, typedefs, externs to sys_matrix header
* Review
* One more
* More review
* Fix function names
* Format
* Fix names
* Format
* Review
* engineer's review
* Fix build
* Format
* Fix again
Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com >
2022-05-25 23:24:39 -04:00
Derek Hensley and GitHub
e1477702ca
EffectSsKirakira OK ( #801 )
...
* OK
* cleanup
* KiraKira -> Kirakira
2022-05-25 22:23:27 -04:00
12b995093f
EnNwc OK and three objects documented (object_niw and object_nwc and object_hs) and some Actor docs( EnNiw and EnAttackNiw and EnHg) (#715 )
...
* EnNwc: OK and some Niw Docs
* Update src/overlays/actors/ovl_En_Nwc/z_en_nwc.c
Co-authored-by: Parker Burnett <burnettparker@gmail.com >
* Update src/overlays/actors/ovl_En_Nwc/z_en_nwc.c
Co-authored-by: Parker Burnett <burnettparker@gmail.com >
* Update src/overlays/actors/ovl_En_Nwc/z_en_nwc.c
Co-authored-by: Parker Burnett <burnettparker@gmail.com >
* EnNwc: Overwrite->Override
* EnAttackNiw: fix merges
* AttackNiw and Niw: some docs
* formater pass
* EnNwc: fixed savecontext change
* Niw and Attackniw: more docs
* Apply suggestions from code review
Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com >
* Nwc,Niw: requested doc changes
* Nwc: extracted and marked broken texture
* Apply suggestions from code review
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com >
* EnNwc: more requested changes
* Nwc: more requested changes
* Apply suggestions from code review
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com >
* EnHs: object_hs documented, some ovl_En_Hs docs
* EnHs: animation names
* EnHs: some text docs
* EnHs: fear anim changed to shivering now that we know it was used in OOT
* EnHs: more docs and format pass
* Apply suggestions from code review
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com >
* EnHs: more docs and updates to var name changes
* Niw,Nwc,Hs: added description to object files
* Hs: changed from playerOffset to offset
Co-authored-by: Isghj8 <isghj8@gmail.com >
Co-authored-by: Parker Burnett <burnettparker@gmail.com >
Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com >
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com >
2022-05-25 22:19:38 -04:00
Derek Hensley and GitHub
a6e90d144c
SubS models ( #807 )
...
* Bring model code over
* SubS_UpdateLimb
* SubS_TurnToPoint
* SubS_TurnToPointMultiTarget
* Adjust comment
* Another comment
* Review
* options as structs
* bss
* adj -> step, SubS_TurnToPointMultiTarget -> SubS_TurnToPointStep, various comment cleanups
* Fix SubS_TurnToPointStep header comment
2022-05-25 21:44:09 -04:00
engineer124 and GitHub
c2c7240634
Improve Various Matchings and Cleanup ( #809 )
...
* Improve various matchings and cleanup
* Fix warnings
* Missed 2
* Few hex to dec
* PR Suggestions
* More PR Suggestions
* Document time calculation
* Improved use of macros
* DAY_LENGTH macro
* More cleanup of functions
Co-authored-by: hensldm <https://github.com/hensldm >
* Missing a space
* PR Suggestions
* Use DAY_LENGTH more
2022-05-25 21:36:49 -04:00
e227684d9b
En_Boom ( #813 )
...
* En_Boom
* Match (thanks Anon)
* Update src/overlays/actors/ovl_Arms_Hook/z_arms_hook.c
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com >
Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com >
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com >
2022-05-25 21:04:10 -04:00
Rozelette and GitHub
e67fb5cf16
code_801323D0 (z_schedule) ( #509 )
...
* OK
* Initial documentation pass
* Pass 2. Add script by Tharo
* Renamed source file
* Documentation cleanup
* Update to latest master
* Feedback
* Bad merge
* Permissions
* Clang format
* Feedback
* format
* Use calculation instead of constant
* Rename as per suggestions
* Fix bss ordering and minor merge conflicts (from Maide)
* Update to current codebase and address feedback
* Fixup names to match new enums
* Format
* Fix duplicate include
* BSS shenanigans
2022-05-21 12:08:19 -04:00