Ryan Dwyer
74dd2c240b
Introduce g_BusyWallhits
2022-11-13 00:31:18 +10:00
Ryan Dwyer
f969c3e1fa
Introduce g_AmActive
2022-11-12 23:16:33 +10:00
Ryan Dwyer
848fc2b82e
Refactor autoaimTick
2022-11-12 23:03:57 +10:00
Ryan Dwyer
aeb09b7afa
Merge autoaim X and Y into just autoaim
2022-11-12 21:00:14 +10:00
Ryan Dwyer
c7a85d503f
Fix chrs' inability to remain patient while on a lift
2022-11-12 19:47:44 +10:00
Ryan Dwyer
4054c0747c
Fix stage skip bug
2022-11-12 18:55:09 +10:00
Ryan Dwyer
4111efb420
Don't mess with solo handicaps in resetSomeStageThings
2022-11-12 18:44:36 +10:00
Alexandre-Xavier Labonté-Lamoureux
c3531afe75
Remove declaration for removed function chrGetLateralDistanceToPad
2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux
f314d317e0
Remove declaration for removed function propGetLateralDistanceToProp
2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux
cd3b1f9326
Avoid square root using chrGetSquaredLateralDistanceToCoord
2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux
b98c0a6584
Remove declaration for removed function chrTryRunFromTarget
2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux
cea673a80e
Avoid square root using chrGetSquaredDistanceToCoord
2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux
be755f356b
Avoid square root using chrGetSquaredDistanceToPad
2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux
26b61b1914
Use naming 'sqdist' for variables where distance in squared
2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux
1e24f14104
Avoid sqrtf with constants
2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux
1cd79f6012
nbomb: square root operation is commutative with exponentiation
2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux
a92e1c6fe7
bwalkCalculateNewPositionWithPush: call sqrtf at the last possible moment
2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux
0bc2c5a53e
sky0f122ce8: Remove useless sqrtf as the result tends towards 1.0f
2022-11-12 02:40:49 -05:00
Ryan Dwyer
a914ba4168
Fix and improve active shards logic
2022-11-12 17:25:36 +10:00
Ryan Dwyer
bbc7388e6d
Introduce g_BeamsActive so we can avoid iterating props
2022-11-12 17:03:58 +10:00
Ryan Dwyer
f2645ce428
Remove var80084040
2022-11-12 15:25:24 +10:00
Ryan Dwyer
fe7ddc0aca
Introduce an easier way to do profiling
2022-11-12 13:43:58 +10:00
Ryan Dwyer
fa9272d6f7
Don't call functions that simply return a literal value
2022-11-12 11:09:15 +10:00
Ryan Dwyer
d8c278364a
Remove unused functions
2022-11-12 10:01:28 +10:00
Ryan Dwyer
bfa06b8c3e
Remove const char strings and osSyncPrintf calls
2022-11-11 23:55:48 +10:00
Ryan Dwyer
0fd7673c1b
Don't call no-op functions
2022-11-11 23:44:20 +10:00
Ryan Dwyer
5c21de55e6
Remove stub files
2022-11-11 23:23:38 +10:00
Ryan Dwyer
1f64f59da1
Remove references to g_Vars.fourmeg2player
2022-11-11 23:20:48 +10:00
Ryan Dwyer
40c4dd9130
Remove rmon, crash, fault, videbug and debughud
2022-11-11 23:18:45 +10:00
Ryan Dwyer
64155bcb15
Remove references to IS4MB and IS8MB
2022-11-11 23:09:09 +10:00
Ryan Dwyer
0714f1cb21
Remove VERSION ifdefs from most files
2022-11-11 22:49:55 +10:00
Ryan Dwyer
9a871c7a65
Remove MATCHING ifdefs
2022-11-11 17:42:42 +10:00
Ryan Dwyer
4ac661160c
Remove PIRACYCHECKS ifdefs
2022-11-11 17:35:45 +10:00
Ryan Dwyer
3619bcb2f2
Don't recalculate all solo handicaps on every tick
2022-11-11 17:27:58 +10:00
Ryan Dwyer
73bfbded3d
Remove unreachable g_Jpn code
2022-11-11 17:18:12 +10:00
Ryan Dwyer
0d169c5214
Remove mainOverrideVariable
2022-11-11 17:11:00 +10:00
Ryan Dwyer
02f7077d16
Improve prop tick logic
2022-11-11 08:28:57 +10:00
Ryan Dwyer
cfe4e51df8
Change prop->type to a bitfield and change checks to use a bitmask
2022-11-10 23:33:50 +10:00
Ryan Dwyer
5c9b1b1ac1
Improve prop pickup checks further
2022-11-10 22:21:00 +10:00
Ryan Dwyer
b56b6ab229
Improve order of prop tickup tests
2022-11-10 22:07:34 +10:00
Ryan Dwyer
7d710aa109
Remove magnetattracttime
2022-11-10 21:38:16 +10:00
Ryan Dwyer
3b0066b74e
Remove debug
2022-11-10 21:36:05 +10:00
Ryan Dwyer
44aedd817d
Remove unused object types
2022-11-10 21:24:16 +10:00
Ryan Dwyer
e334bb9101
Fix Mtxf in setupCreateProps
2022-11-10 21:06:17 +10:00
Ryan Dwyer
6a798d769b
Remove support for hats
2022-11-10 21:03:41 +10:00
Ryan Dwyer
b8b183a687
Remove code references to STAGE_TEST_OLD
2022-11-10 20:56:50 +10:00
Ryan Dwyer
4fc36d7d3f
Remove pointless idle-checking code from lvTick
2022-11-10 20:53:38 +10:00
Ryan Dwyer
d5a19238e1
Don't overwrite bss when extracting game segment
2022-11-10 20:48:04 +10:00
Ryan Dwyer
2443e9350f
Align g_SndCache
2022-11-10 20:46:13 +10:00
Ryan Dwyer
ba0eb5b656
Fix Defection programmer
2022-11-06 21:36:29 +10:00
Ryan Dwyer
77c07dd6df
Profiling: Fix AUD figure
2022-11-05 09:17:02 +10:00
Ryan Dwyer
05afabf037
Only calculate lookingatprop when necessary
2022-11-04 08:15:21 +10:00
Ryan Dwyer
30f5d24c15
Disable antialias in render modes
2022-11-03 22:50:05 +10:00
Ryan Dwyer
895215c332
Fix some ailists not running
2022-11-03 21:22:21 +10:00
Ryan Dwyer
4e797820ea
Introduce profiling
2022-11-03 21:14:25 +10:00
Ryan Dwyer
aabec4d103
Allow 1xxx ailists to be completely terminated
2022-11-03 08:28:36 +10:00
Ryan Dwyer
4632c3113f
Improve logic for objectives failed HUD message
...
* Roll up all the objective failed commands into a new "any objective failed" one
* Remove wasteful looping logic from ailist
* Use existing statuses array instead of recalculating every objective on every frame
2022-11-02 21:40:23 +10:00
Ryan Dwyer
6385e137d0
Remove unused global ailists
2022-11-02 21:16:18 +10:00
Ryan Dwyer
2c0b5711c1
Pass ailist pointers around instead of ailist IDs to avoid runtime bisection
2022-11-02 20:38:01 +10:00
Ryan Dwyer
b838521081
Remove truck, heli and aiplayerdeadlist
2022-11-02 17:45:14 +10:00
Ryan Dwyer
7841b59eef
Introduce ai2asm
2022-11-02 17:35:19 +10:00
Ryan Dwyer
a5b4d0017b
Fix portal problem in Skedar Ruins and WAR
2022-10-31 17:34:02 +10:00
Ryan Dwyer
301dfd8df6
Fix crash in disguise training
2022-10-31 17:34:02 +10:00
Ryan Dwyer
3aa6674330
Fix array overflow in chrnum lookup
2022-10-31 17:34:02 +10:00
Ryan Dwyer
1215434097
Replace chrnum bisection with array lookup
2022-10-31 17:34:02 +10:00
Ryan Dwyer
9668be14ba
Create chr_is_deadish AI command
2022-10-31 17:34:02 +10:00
Ryan Dwyer
1f05cfdc2e
Bypass some logic when BG is preloaded
2022-10-31 17:34:02 +10:00
Ryan Dwyer
ac1cde8b0d
Precompute return values for RANDOMFRAC()
2022-10-31 17:34:02 +10:00
Ryan Dwyer
010a6851bf
Fix excessive float usage in sightDrawZoom
2022-10-31 17:34:02 +10:00
Ryan Dwyer
8b19b8a018
Replace individual x/y/z copies with struct copies where possible
2022-10-31 17:34:02 +10:00
Ryan Dwyer
227beacec1
Replace some unnecessary mtc1/swc1 instructions in mtxasm.s
2022-10-31 17:34:02 +10:00
Ryan Dwyer
4ea746b37d
Fix camspy
2022-10-31 17:34:02 +10:00
Ryan Dwyer
38dddf0c4f
Don't calculate lookahead unnecessarily
2022-10-31 17:34:02 +10:00
Ryan Dwyer
f800a69143
Enable preloading for non-weapon inventory items
2022-10-31 17:34:02 +10:00
Ryan Dwyer
3c117b2157
Simplify BG preloading code
2022-10-31 17:34:02 +10:00
Ryan Dwyer
dcf1de3f87
Preload the stage's natural weapons
2022-10-31 17:34:02 +10:00
Ryan Dwyer
15fc4a0a7c
Fix a BG preload bug and make other related improvements
2022-10-31 17:34:02 +10:00
Ryan Dwyer
266163bcfe
Replace BG visibility scripts with C implementation
2022-10-31 17:34:02 +10:00
Ryan Dwyer
0528fe0539
Re-ID AI commands so the most common commands can be identified by the first byte only
2022-10-31 17:34:01 +10:00
Ryan Dwyer
22cd732d8a
Remove another VI mode
2022-10-31 17:34:01 +10:00
Ryan Dwyer
c1cab6e03e
Make AI command handlers able to be inlined
2022-10-31 17:34:01 +10:00
Ryan Dwyer
420d5ee990
Remove unused VI modes
2022-10-31 17:34:01 +10:00
Ryan Dwyer
66f99b50d6
Read pad data directly rather than copying it to the stack
2022-10-31 17:34:01 +10:00
Ryan Dwyer
0b87a5af75
Store pads in their full unpacked format
2022-10-31 17:34:01 +10:00
Ryan Dwyer
0bd58592c4
Change chr AI timers to integers
2022-10-31 17:34:01 +10:00
Ryan Dwyer
04ca114465
Remove excessive reads and writes to g_Vars properties in AI loop
2022-10-31 17:34:01 +10:00
Ryan Dwyer
cb0b99d28a
Preload BG rooms where possible
2022-10-31 17:34:01 +10:00
Ryan Dwyer
e16567742d
Place game segment after bss to make more room for memp
2022-10-31 17:34:01 +10:00
Ryan Dwyer
bef9668e68
Preprocess ailists to convert goto-labels to goto-offsets
2022-10-31 17:34:01 +10:00
Ryan Dwyer
0c948fdce9
Use pointers for aioffsets
2022-10-31 17:34:01 +10:00
Ryan Dwyer
e36d700bad
Remove dprint AI command
2022-10-31 17:34:01 +10:00
Ryan Dwyer
827a2f75ee
Cache the playercount instead of calculating it many times
2022-10-31 17:34:01 +10:00
Ryan Dwyer
6db8be6d14
Remove code relating to 4MB
2022-10-31 17:34:01 +10:00
Ryan Dwyer
c9f4fef2d6
Remove camdraw code
2022-10-31 17:34:01 +10:00
Ryan Dwyer
2995dc4a88
Disable crash and rmon threads
2022-10-31 17:34:01 +10:00
Ryan Dwyer
7c6805c3e2
Make the expansion pak required and disable virtual memory
2022-10-31 17:34:01 +10:00
Ryan Dwyer
4e9d88fab9
Print unused memory to HUD
2022-10-31 17:34:01 +10:00
Ryan Dwyer
d89fef7ea9
Implement frame rate graph
2022-10-31 17:33:44 +10:00
Ryan Dwyer
32d529e9b5
Avoid UB in bondview's var800a41c0
2022-10-31 17:31:02 +10:00
Ryan Dwyer
e3d77e8086
Avoid some potential UB in bgBuildTables
2022-10-31 17:30:51 +10:00
Ryan Dwyer
178a779878
Revert "Simplify tile assets - repo clones may need to run make extract again"
...
This reverts commit 306613e462 .
It turns out we do actually need tiles to be built using the asset
manager :\
2022-10-22 19:06:17 +10:00
Ryan Dwyer
b159e01edc
Improve naming and documentation of inventory data
2022-10-22 18:42:45 +10:00
Ryan Dwyer
4d04f1f282
ntsc-beta: Decompile sndLoadSound
2022-10-21 21:53:10 +10:00
Ryan Dwyer
82d2d500b6
ntsc-beta: Decompile sndLoadSfxCtl
2022-10-21 21:46:14 +10:00
Ryan Dwyer
a7721463bf
ntsc-beta: Decompile joysTick
2022-10-21 19:31:03 +10:00
Ryan Dwyer
306613e462
Simplify tile assets - repo clones may need to run make extract again
2022-10-21 19:21:50 +10:00
Ryan Dwyer
e28b361cb6
ntsc-beta: Decompile joyStopRumble
2022-10-21 00:07:40 +10:00
Ryan Dwyer
43e354a316
ntsc-beta: Decompile botPickupProp
2022-10-20 23:52:15 +10:00
Ryan Dwyer
724aecb04e
ntsc-beta: Decompile bviewDrawHorizonScanner
2022-10-20 22:27:46 +10:00
Ryan Dwyer
f98d64bd6f
ntsc-beta: Decompile bviewDrawIrLens
2022-10-20 22:20:07 +10:00
Ryan Dwyer
8ba2480756
pal-beta and pal-final: Decompile botTickUnpaused
2022-10-20 20:29:15 +10:00
Ryan Dwyer
62c36b6539
ntsc-beta and ntsc-1.0: Decompile pak0f11df94
2022-10-19 20:44:12 +10:00
Ryan Dwyer
0d1a1a4e56
pal-beta and pal-final: Decompile hoverbikeUpdateMovement
2022-10-18 23:16:17 +10:00
Ryan Dwyer
e68822d444
pal-beta and above: Decompile bgun0f0981e8
2022-10-18 22:24:24 +10:00
Ryan Dwyer
32490cd77d
ntsc-beta: Decompile gamefileSave
2022-10-17 17:19:53 +10:00
Ryan Dwyer
4749132bc0
ntsc-beta: Decompile joyGetButtonsReleasedThisFrame
2022-10-16 20:30:50 +10:00
Ryan Dwyer
194ba80480
ntsc-beta: Decompile joy0001509cnb
2022-10-16 20:24:58 +10:00
Ryan Dwyer
8d0d9c0e36
ntsc-beta: Decompile bootCheckStackOverflow
2022-10-16 20:14:09 +10:00
Ryan Dwyer
b91b0f93a5
ntsc-beta: Decompile bootCountUnusedStack
2022-10-16 20:04:36 +10:00
Ryan Dwyer
295ec06b5e
Decompile __osSyncPutChars
2022-10-16 19:26:11 +10:00
Ryan Dwyer
8c7d35da4a
Decompile osGetMemSize
2022-10-16 18:50:22 +10:00
Ryan Dwyer
5ca3b87ad4
Decompile other versions of bviewDrawEyespyMetrics
2022-10-16 17:14:33 +10:00
Ryan Dwyer
b47847fb9d
Improve mismatch of tvscreenRender
2022-10-15 10:04:19 +10:00
Ryan Dwyer
914aaaa0e4
Align g_RdpDramStack and g_RdpYieldData
2022-10-15 10:04:09 +10:00
Ryan Dwyer
678835d997
Align __osContPifRam
2022-10-14 17:19:27 +10:00
Ryan Dwyer
65e365fb08
Decompile func0f0878c8pf
2022-10-13 22:12:10 +10:00
Ryan Dwyer
2c1c13e666
Give better names to timing variables
2022-10-13 19:43:47 +10:00
Ryan Dwyer
eb51ea4550
Introduce ROM_SIZE Makefile option
2022-10-12 23:06:19 +10:00
Ryan Dwyer
17583575e4
Introduce support for gcc
2022-10-12 22:26:19 +10:00
Ryan Dwyer
4b7e93de8a
Rename a heap of collision detection functions
2022-10-06 19:39:18 +10:00
Ryan Dwyer
f09206034d
Improve mismatch of vmInit
2022-10-01 21:43:42 +10:00
Ryan Dwyer
a81560e8f2
Decompile sky0f126384
2022-10-01 13:30:02 +10:00
Ryan Dwyer
6123232e22
Decompile titleRenderPdLogoModel
2022-09-28 20:46:57 +10:00
Ryan Dwyer
e04f2a6114
Decompile func0f14d4f0
2022-09-28 17:13:20 +10:00
Ryan Dwyer
82ea985cbe
Decompile pakConvertFromGbcImage
2022-09-27 23:59:02 +10:00
Ryan Dwyer
21c8c1fd25
Decompile menugfxCreateBlur
2022-09-27 20:13:04 +10:00
Ryan Dwyer
eeb69c7119
Decompile sprintf
2022-09-27 00:30:03 +10:00
Ryan Dwyer
c8e1ea19fc
Decompile cd0002dffc
2022-09-27 00:03:05 +10:00
Ryan Dwyer
2431684b1e
Decompile bgTestHitOnChr
2022-09-26 23:36:24 +10:00
Ryan Dwyer
d5779ef268
Decompile chrTickShoot
2022-09-21 19:12:07 +10:00
Ryan Dwyer
eeea819b2d
Decompile bgTickPortalsXray
2022-09-20 23:58:19 +10:00
Ryan Dwyer
c57dfc36c1
Decompile bgChooseXrayVtxColour
2022-09-20 21:39:12 +10:00
Ryan Dwyer
120d0282e4
Decompile sightDrawZoom
2022-09-20 17:40:00 +10:00
Ryan Dwyer
5b0066926a
Decompile bgunTickEject
2022-09-18 21:19:13 +10:00
Ryan Dwyer
cd14cbb406
Decompile fileGetInflatedSize
2022-09-18 19:34:32 +10:00
Ryan Dwyer
aa4d7a34bd
Decompile camIsPosInFovAndVisibleRoom
2022-09-18 16:46:45 +10:00
Ryan Dwyer
cfc7f3db88
Decompile bgunAutoSwitchWeapon
2022-09-18 15:47:31 +10:00
Ryan Dwyer
f7cb81bac5
Improve mismatch of bgLoadRoom
2022-09-18 14:13:11 +10:00
Ryan Dwyer
52a06d0698
Decompile nbombInflictDamage
2022-09-16 22:55:17 +10:00
Ryan Dwyer
5b691240ef
Decompile nbombRenderOverlay
2022-09-16 21:12:53 +10:00