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