Quake & Distortion Docs (Again) + Math Cleanup (Camera Prep) (#1129)

* more quake docs

* more docs

* more distortion docs

* math cleanup

* fix header

* cleanup

* only partial PR review

* PR Suggestions

* fix master merge

* reverb angle change macros

* more revert

* fix enum
This commit is contained in:
engineer124
2023-05-19 00:29:50 +10:00
committed by GitHub
parent 83ac58d739
commit 180227e7bb
62 changed files with 811 additions and 729 deletions
+23 -23
View File
@@ -373,9 +373,9 @@ asm/non_matchings/code/z_actor/Actor_TestFloorInDirection.s,Actor_TestFloorInDir
asm/non_matchings/code/z_actor/Actor_IsTargeted.s,Actor_IsTargeted,0x800BC5B8,0xD
asm/non_matchings/code/z_actor/Actor_OtherIsTargeted.s,Actor_OtherIsTargeted,0x800BC5EC,0xD
asm/non_matchings/code/z_actor/func_800BC620.s,func_800BC620,0x800BC620,0x54
asm/non_matchings/code/z_actor/Actor_AddQuake.s,Actor_AddQuake,0x800BC770,0x1A
asm/non_matchings/code/z_actor/Actor_AddQuakeWithSpeed.s,Actor_AddQuakeWithSpeed,0x800BC7D8,0x1C
asm/non_matchings/code/z_actor/func_800BC848.s,func_800BC848,0x800BC848,0x1C
asm/non_matchings/code/z_actor/Actor_RequestQuake.s,Actor_RequestQuake,0x800BC770,0x1A
asm/non_matchings/code/z_actor/Actor_RequestQuakeWithSpeed.s,Actor_RequestQuakeWithSpeed,0x800BC7D8,0x1C
asm/non_matchings/code/z_actor/Actor_RequestQuakeAndRumble.s,Actor_RequestQuakeAndRumble,0x800BC848,0x1C
asm/non_matchings/code/z_actor/Actor_DrawDoorLock.s,Actor_DrawDoorLock,0x800BC8B8,0xA6
asm/non_matchings/code/z_actor/Actor_SpawnShieldParticlesMetal.s,Actor_SpawnShieldParticlesMetal,0x800BCB50,0x8
asm/non_matchings/code/z_actor/Actor_SetColorFilter.s,Actor_SetColorFilter,0x800BCB70,0x21
@@ -1586,17 +1586,17 @@ asm/non_matchings/code/z_olib/OLib_ClampMinDist.s,OLib_ClampMinDist,0x8010C304,0
asm/non_matchings/code/z_olib/OLib_ClampMaxDist.s,OLib_ClampMaxDist,0x8010C36C,0x1A
asm/non_matchings/code/z_olib/OLib_Vec3fDistNormalize.s,OLib_Vec3fDistNormalize,0x8010C3D4,0x2C
asm/non_matchings/code/z_olib/OLib_VecSphToVec3f.s,OLib_VecSphToVec3f,0x8010C484,0x2B
asm/non_matchings/code/z_olib/OLib_VecSphGeoToVec3f.s,OLib_VecSphGeoToVec3f,0x8010C530,0x11
asm/non_matchings/code/z_olib/OLib_VecGeoToVec3f.s,OLib_VecGeoToVec3f,0x8010C530,0x11
asm/non_matchings/code/z_olib/OLib_Vec3fToVecSph.s,OLib_Vec3fToVecSph,0x8010C574,0x55
asm/non_matchings/code/z_olib/OLib_Vec3fToVecSphGeo.s,OLib_Vec3fToVecSphGeo,0x8010C6C8,0x12
asm/non_matchings/code/z_olib/OLib_Vec3fToVecGeo.s,OLib_Vec3fToVecGeo,0x8010C6C8,0x12
asm/non_matchings/code/z_olib/OLib_Vec3fDiffToVecSph.s,OLib_Vec3fDiffToVecSph,0x8010C710,0x15
asm/non_matchings/code/z_olib/OLib_Vec3fDiffToVecSphGeo.s,OLib_Vec3fDiffToVecSphGeo,0x8010C764,0x15
asm/non_matchings/code/z_olib/OLib_VecSphAddToVec3f.s,OLib_VecSphAddToVec3f,0x8010C7B8,0x20
asm/non_matchings/code/z_olib/OLib_Vec3fDiffToVecGeo.s,OLib_Vec3fDiffToVecGeo,0x8010C764,0x15
asm/non_matchings/code/z_olib/OLib_AddVecGeoToVec3f.s,OLib_AddVecGeoToVec3f,0x8010C7B8,0x20
asm/non_matchings/code/z_olib/OLib_Vec3fDiffRad.s,OLib_Vec3fDiffRad,0x8010C838,0x24
asm/non_matchings/code/z_olib/OLib_Vec3fDiffDegF.s,OLib_Vec3fDiffDegF,0x8010C8C8,0x1A
asm/non_matchings/code/z_olib/OLib_Vec3fDiffBinAng.s,OLib_Vec3fDiffBinAng,0x8010C930,0x26
asm/non_matchings/code/z_olib/OLib_DbCameraVec3fDiff.s,OLib_DbCameraVec3fDiff,0x8010C9C8,0x36
asm/non_matchings/code/z_olib/OLib_DbCameraVec3fSum.s,OLib_DbCameraVec3fSum,0x8010CAA0,0x34
asm/non_matchings/code/z_olib/OLib_Vec3fDiff.s,OLib_Vec3fDiff,0x8010C9C8,0x36
asm/non_matchings/code/z_olib/OLib_Vec3fAdd.s,OLib_Vec3fAdd,0x8010CAA0,0x34
asm/non_matchings/code/z_parameter/Gfx_DrawTexRectRGBA16.s,Gfx_DrawTexRectRGBA16,0x8010CB80,0x86
asm/non_matchings/code/z_parameter/Gfx_DrawTexRectIA8.s,Gfx_DrawTexRectIA8,0x8010CD98,0x89
asm/non_matchings/code/z_parameter/Gfx_DrawTexRectIA8_DropShadow.s,Gfx_DrawTexRectIA8_DropShadow,0x8010CFBC,0xC6
@@ -1803,28 +1803,28 @@ asm/non_matchings/code/z_quake/Quake_CallbackType3.s,Quake_CallbackType3,0x8012A
asm/non_matchings/code/z_quake/Quake_CallbackType2.s,Quake_CallbackType2,0x8012A4D0,0x1C
asm/non_matchings/code/z_quake/Quake_CallbackType4.s,Quake_CallbackType4,0x8012A540,0x26
asm/non_matchings/code/z_quake/Quake_GetFreeIndex.s,Quake_GetFreeIndex,0x8012A5D8,0x18
asm/non_matchings/code/z_quake/Quake_AddImpl.s,Quake_AddImpl,0x8012A638,0x2E
asm/non_matchings/code/z_quake/Quake_RemoveRequest.s,Quake_RemoveRequest,0x8012A6F0,0xA
asm/non_matchings/code/z_quake/Quake_RequestImpl.s,Quake_RequestImpl,0x8012A638,0x2E
asm/non_matchings/code/z_quake/Quake_Remove.s,Quake_Remove,0x8012A6F0,0xA
asm/non_matchings/code/z_quake/Quake_GetRequest.s,Quake_GetRequest,0x8012A718,0x17
asm/non_matchings/code/z_quake/Quake_SetValue.s,Quake_SetValue,0x8012A774,0x4D
asm/non_matchings/code/z_quake/Quake_SetSpeed.s,Quake_SetSpeed,0x8012A8A8,0x12
asm/non_matchings/code/z_quake/Quake_SetCountdown.s,Quake_SetCountdown,0x8012A8F0,0x14
asm/non_matchings/code/z_quake/Quake_GetCountdown.s,Quake_GetCountdown,0x8012A940,0xE
asm/non_matchings/code/z_quake/Quake_SetQuakeValues.s,Quake_SetQuakeValues,0x8012A978,0x1A
asm/non_matchings/code/z_quake/Quake_SetQuakeValues2.s,Quake_SetQuakeValues2,0x8012A9E0,0x1A
asm/non_matchings/code/z_quake/Quake_SetDuration.s,Quake_SetDuration,0x8012A8F0,0x14
asm/non_matchings/code/z_quake/Quake_GetTimeLeft.s,Quake_GetTimeLeft,0x8012A940,0xE
asm/non_matchings/code/z_quake/Quake_SetPerturbations.s,Quake_SetPerturbations,0x8012A978,0x1A
asm/non_matchings/code/z_quake/Quake_SetOrientation.s,Quake_SetOrientation,0x8012A9E0,0x1A
asm/non_matchings/code/z_quake/Quake_Init.s,Quake_Init,0x8012AA48,0x15
asm/non_matchings/code/z_quake/Quake_Add.s,Quake_Add,0x8012AA9C,0x9
asm/non_matchings/code/z_quake/Quake_Remove.s,Quake_Remove,0x8012AAC0,0x12
asm/non_matchings/code/z_quake/Quake_Calc.s,Quake_Calc,0x8012AB08,0xD8
asm/non_matchings/code/z_quake/Quake_Request.s,Quake_Request,0x8012AA9C,0x9
asm/non_matchings/code/z_quake/Quake_RemoveRequest.s,Quake_RemoveRequest,0x8012AAC0,0x12
asm/non_matchings/code/z_quake/Quake_Update.s,Quake_Update,0x8012AB08,0xD8
asm/non_matchings/code/z_quake/Distortion_Init.s,Distortion_Init,0x8012AE68,0x11
asm/non_matchings/code/z_quake/Distortion_SetCountdown.s,Distortion_SetCountdown,0x8012AEAC,0xA
asm/non_matchings/code/z_quake/Distortion_GetCountdown.s,Distortion_GetCountdown,0x8012AED4,0x4
asm/non_matchings/code/z_quake/Distortion_SetDuration.s,Distortion_SetDuration,0x8012AEAC,0xA
asm/non_matchings/code/z_quake/Distortion_GetTimeLeft.s,Distortion_GetTimeLeft,0x8012AED4,0x4
asm/non_matchings/code/z_quake/Distortion_GetType.s,Distortion_GetType,0x8012AEE4,0x4
asm/non_matchings/code/z_quake/Distortion_SetType.s,Distortion_SetType,0x8012AEF4,0x9
asm/non_matchings/code/z_quake/Distortion_ClearType.s,Distortion_ClearType,0x8012AF18,0x8
asm/non_matchings/code/z_quake/Distortion_Request.s,Distortion_Request,0x8012AEF4,0x9
asm/non_matchings/code/z_quake/Distortion_RemoveRequest.s,Distortion_RemoveRequest,0x8012AF18,0x8
asm/non_matchings/code/z_quake/Distortion_GetUnderwaterCurrentSpeed.s,Distortion_GetUnderwaterCurrentSpeed,0x8012AF38,0x19
asm/non_matchings/code/z_quake/Distortion_Update.s,Distortion_Update,0x8012AF9C,0x313
asm/non_matchings/code/z_quake/Quake_NumActiveQuakes.s,Quake_NumActiveQuakes,0x8012BBE8,0x1A
asm/non_matchings/code/z_quake/Quake_GetNumActiveQuakes.s,Quake_GetNumActiveQuakes,0x8012BBE8,0x1A
asm/non_matchings/code/z_rcp/Gfx_SetFog.s,Gfx_SetFog,0x8012BC50,0x4F
asm/non_matchings/code/z_rcp/Gfx_SetFogWithSync.s,Gfx_SetFogWithSync,0x8012BD8C,0x5F
asm/non_matchings/code/z_rcp/Gfx_SetFog2.s,Gfx_SetFog2,0x8012BF08,0xD
1 asm/non_matchings/code/z_en_a_keep/EnAObj_Init.s EnAObj_Init 0x800A5AC0 0x2B
373 asm/non_matchings/code/z_actor/Actor_IsTargeted.s Actor_IsTargeted 0x800BC5B8 0xD
374 asm/non_matchings/code/z_actor/Actor_OtherIsTargeted.s Actor_OtherIsTargeted 0x800BC5EC 0xD
375 asm/non_matchings/code/z_actor/func_800BC620.s func_800BC620 0x800BC620 0x54
376 asm/non_matchings/code/z_actor/Actor_AddQuake.s asm/non_matchings/code/z_actor/Actor_RequestQuake.s Actor_AddQuake Actor_RequestQuake 0x800BC770 0x1A
377 asm/non_matchings/code/z_actor/Actor_AddQuakeWithSpeed.s asm/non_matchings/code/z_actor/Actor_RequestQuakeWithSpeed.s Actor_AddQuakeWithSpeed Actor_RequestQuakeWithSpeed 0x800BC7D8 0x1C
378 asm/non_matchings/code/z_actor/func_800BC848.s asm/non_matchings/code/z_actor/Actor_RequestQuakeAndRumble.s func_800BC848 Actor_RequestQuakeAndRumble 0x800BC848 0x1C
379 asm/non_matchings/code/z_actor/Actor_DrawDoorLock.s Actor_DrawDoorLock 0x800BC8B8 0xA6
380 asm/non_matchings/code/z_actor/Actor_SpawnShieldParticlesMetal.s Actor_SpawnShieldParticlesMetal 0x800BCB50 0x8
381 asm/non_matchings/code/z_actor/Actor_SetColorFilter.s Actor_SetColorFilter 0x800BCB70 0x21
1586 asm/non_matchings/code/z_olib/OLib_ClampMaxDist.s OLib_ClampMaxDist 0x8010C36C 0x1A
1587 asm/non_matchings/code/z_olib/OLib_Vec3fDistNormalize.s OLib_Vec3fDistNormalize 0x8010C3D4 0x2C
1588 asm/non_matchings/code/z_olib/OLib_VecSphToVec3f.s OLib_VecSphToVec3f 0x8010C484 0x2B
1589 asm/non_matchings/code/z_olib/OLib_VecSphGeoToVec3f.s asm/non_matchings/code/z_olib/OLib_VecGeoToVec3f.s OLib_VecSphGeoToVec3f OLib_VecGeoToVec3f 0x8010C530 0x11
1590 asm/non_matchings/code/z_olib/OLib_Vec3fToVecSph.s OLib_Vec3fToVecSph 0x8010C574 0x55
1591 asm/non_matchings/code/z_olib/OLib_Vec3fToVecSphGeo.s asm/non_matchings/code/z_olib/OLib_Vec3fToVecGeo.s OLib_Vec3fToVecSphGeo OLib_Vec3fToVecGeo 0x8010C6C8 0x12
1592 asm/non_matchings/code/z_olib/OLib_Vec3fDiffToVecSph.s OLib_Vec3fDiffToVecSph 0x8010C710 0x15
1593 asm/non_matchings/code/z_olib/OLib_Vec3fDiffToVecSphGeo.s asm/non_matchings/code/z_olib/OLib_Vec3fDiffToVecGeo.s OLib_Vec3fDiffToVecSphGeo OLib_Vec3fDiffToVecGeo 0x8010C764 0x15
1594 asm/non_matchings/code/z_olib/OLib_VecSphAddToVec3f.s asm/non_matchings/code/z_olib/OLib_AddVecGeoToVec3f.s OLib_VecSphAddToVec3f OLib_AddVecGeoToVec3f 0x8010C7B8 0x20
1595 asm/non_matchings/code/z_olib/OLib_Vec3fDiffRad.s OLib_Vec3fDiffRad 0x8010C838 0x24
1596 asm/non_matchings/code/z_olib/OLib_Vec3fDiffDegF.s OLib_Vec3fDiffDegF 0x8010C8C8 0x1A
1597 asm/non_matchings/code/z_olib/OLib_Vec3fDiffBinAng.s OLib_Vec3fDiffBinAng 0x8010C930 0x26
1598 asm/non_matchings/code/z_olib/OLib_DbCameraVec3fDiff.s asm/non_matchings/code/z_olib/OLib_Vec3fDiff.s OLib_DbCameraVec3fDiff OLib_Vec3fDiff 0x8010C9C8 0x36
1599 asm/non_matchings/code/z_olib/OLib_DbCameraVec3fSum.s asm/non_matchings/code/z_olib/OLib_Vec3fAdd.s OLib_DbCameraVec3fSum OLib_Vec3fAdd 0x8010CAA0 0x34
1600 asm/non_matchings/code/z_parameter/Gfx_DrawTexRectRGBA16.s Gfx_DrawTexRectRGBA16 0x8010CB80 0x86
1601 asm/non_matchings/code/z_parameter/Gfx_DrawTexRectIA8.s Gfx_DrawTexRectIA8 0x8010CD98 0x89
1602 asm/non_matchings/code/z_parameter/Gfx_DrawTexRectIA8_DropShadow.s Gfx_DrawTexRectIA8_DropShadow 0x8010CFBC 0xC6
1803 asm/non_matchings/code/z_quake/Quake_CallbackType2.s Quake_CallbackType2 0x8012A4D0 0x1C
1804 asm/non_matchings/code/z_quake/Quake_CallbackType4.s Quake_CallbackType4 0x8012A540 0x26
1805 asm/non_matchings/code/z_quake/Quake_GetFreeIndex.s Quake_GetFreeIndex 0x8012A5D8 0x18
1806 asm/non_matchings/code/z_quake/Quake_AddImpl.s asm/non_matchings/code/z_quake/Quake_RequestImpl.s Quake_AddImpl Quake_RequestImpl 0x8012A638 0x2E
1807 asm/non_matchings/code/z_quake/Quake_RemoveRequest.s asm/non_matchings/code/z_quake/Quake_Remove.s Quake_RemoveRequest Quake_Remove 0x8012A6F0 0xA
1808 asm/non_matchings/code/z_quake/Quake_GetRequest.s Quake_GetRequest 0x8012A718 0x17
1809 asm/non_matchings/code/z_quake/Quake_SetValue.s Quake_SetValue 0x8012A774 0x4D
1810 asm/non_matchings/code/z_quake/Quake_SetSpeed.s Quake_SetSpeed 0x8012A8A8 0x12
1811 asm/non_matchings/code/z_quake/Quake_SetCountdown.s asm/non_matchings/code/z_quake/Quake_SetDuration.s Quake_SetCountdown Quake_SetDuration 0x8012A8F0 0x14
1812 asm/non_matchings/code/z_quake/Quake_GetCountdown.s asm/non_matchings/code/z_quake/Quake_GetTimeLeft.s Quake_GetCountdown Quake_GetTimeLeft 0x8012A940 0xE
1813 asm/non_matchings/code/z_quake/Quake_SetQuakeValues.s asm/non_matchings/code/z_quake/Quake_SetPerturbations.s Quake_SetQuakeValues Quake_SetPerturbations 0x8012A978 0x1A
1814 asm/non_matchings/code/z_quake/Quake_SetQuakeValues2.s asm/non_matchings/code/z_quake/Quake_SetOrientation.s Quake_SetQuakeValues2 Quake_SetOrientation 0x8012A9E0 0x1A
1815 asm/non_matchings/code/z_quake/Quake_Init.s Quake_Init 0x8012AA48 0x15
1816 asm/non_matchings/code/z_quake/Quake_Add.s asm/non_matchings/code/z_quake/Quake_Request.s Quake_Add Quake_Request 0x8012AA9C 0x9
1817 asm/non_matchings/code/z_quake/Quake_Remove.s asm/non_matchings/code/z_quake/Quake_RemoveRequest.s Quake_Remove Quake_RemoveRequest 0x8012AAC0 0x12
1818 asm/non_matchings/code/z_quake/Quake_Calc.s asm/non_matchings/code/z_quake/Quake_Update.s Quake_Calc Quake_Update 0x8012AB08 0xD8
1819 asm/non_matchings/code/z_quake/Distortion_Init.s Distortion_Init 0x8012AE68 0x11
1820 asm/non_matchings/code/z_quake/Distortion_SetCountdown.s asm/non_matchings/code/z_quake/Distortion_SetDuration.s Distortion_SetCountdown Distortion_SetDuration 0x8012AEAC 0xA
1821 asm/non_matchings/code/z_quake/Distortion_GetCountdown.s asm/non_matchings/code/z_quake/Distortion_GetTimeLeft.s Distortion_GetCountdown Distortion_GetTimeLeft 0x8012AED4 0x4
1822 asm/non_matchings/code/z_quake/Distortion_GetType.s Distortion_GetType 0x8012AEE4 0x4
1823 asm/non_matchings/code/z_quake/Distortion_SetType.s asm/non_matchings/code/z_quake/Distortion_Request.s Distortion_SetType Distortion_Request 0x8012AEF4 0x9
1824 asm/non_matchings/code/z_quake/Distortion_ClearType.s asm/non_matchings/code/z_quake/Distortion_RemoveRequest.s Distortion_ClearType Distortion_RemoveRequest 0x8012AF18 0x8
1825 asm/non_matchings/code/z_quake/Distortion_GetUnderwaterCurrentSpeed.s Distortion_GetUnderwaterCurrentSpeed 0x8012AF38 0x19
1826 asm/non_matchings/code/z_quake/Distortion_Update.s Distortion_Update 0x8012AF9C 0x313
1827 asm/non_matchings/code/z_quake/Quake_NumActiveQuakes.s asm/non_matchings/code/z_quake/Quake_GetNumActiveQuakes.s Quake_NumActiveQuakes Quake_GetNumActiveQuakes 0x8012BBE8 0x1A
1828 asm/non_matchings/code/z_rcp/Gfx_SetFog.s Gfx_SetFog 0x8012BC50 0x4F
1829 asm/non_matchings/code/z_rcp/Gfx_SetFogWithSync.s Gfx_SetFogWithSync 0x8012BD8C 0x5F
1830 asm/non_matchings/code/z_rcp/Gfx_SetFog2.s Gfx_SetFog2 0x8012BF08 0xD