Commit Graph
81 Commits
Author SHA1 Message Date
fgsfds 683d083fab port: don't round crosspos itself, round a copy instead 2024-11-23 09:54:43 +01:00
Matthew Coppola bc82328353 Improve crosshair position accuracy by rounding 2024-11-15 03:16:33 -05:00
Matthew Coppola 938223db28 Center Maian and Skedar tri sights 2024-11-15 03:16:32 -05:00
Matthew Coppola 942c966bf2 Replace centered rects with subpixel offsets 2024-11-15 03:16:32 -05:00
Matthew Coppola e0d59345c7 Center-align crosshairs and zoom range 2024-11-15 03:16:32 -05:00
fgsfds f514e25208 port: fix #219, #506 2024-11-15 01:32:21 +01:00
fgsfds 33cc89e8fd Merge pull request #371 from Calinou/add-crosshair-health-option
Add an option to color crosshair according to player health + shield
2024-01-28 18:39:05 +01:00
Hugo Locurcio 02d7efb87f Add an option to color crosshair according to player health + shield
Shield is taken into account and is added to health for the calculation,
as the vast majority of damage types are fully blocked by a shield.

3 modes are available:

- Off (default)
- On (Green): Goes through a red-yellow-green-cyan gradient,
  closer to vanilla.
- On (White): Goes through a red-yellow-white-green gradient,
  closer to games like Xonotic.

When set to either of the On modes, the crosshair color setting
is ignored but the crosshair alpha setting is still used.
2024-01-27 19:21:05 +01:00
Hugo Locurcio 1f4d9c8cdc Always hide crosshair when dead
Previously, the crosshair would show up during the death animation
if Always Show Target is enabled or if aiming just before dying.
2024-01-27 19:19:06 +01:00
fgsfds 81313f0c4e port: ifdef around sight scale changes 2024-01-14 21:21:19 +01:00
fgsfds cf5588478b Merge pull request #332 from Calinou/add-crosshair-size-option
Add a crosshair size option
2024-01-14 21:21:03 +01:00
fgsfds a7ab358b43 port: simplify sight color code a bit 2023-12-22 12:32:13 +01:00
Bobby Lovell 342e186f79 Add option to change crosshair alpha, and could provide fully custom colors. Proof of concept. 2023-12-13 13:06:48 -05:00
fgsfds 03324c0823 port: use correct aspect instead of 4:3 when scaling crosshair 2023-12-07 16:46:32 +01:00
fgsfds aef2463361 port: alternative fix for the classic sight 2023-12-02 14:04:33 +01:00
fgsfds 2b8d5d4f75 port: fix crosshair aspect and make sights centered 4:3 2023-12-02 13:48:24 +01:00
fgsfds da9046f745 port: swap RGBA color literals 2023-08-05 01:57:26 +02:00
Ryan Dwyer 1df5e4dc51 Document propsnd functions 2023-06-03 11:17:22 +10:00
Ryan Dwyer 2e386f7a34 Use ARRAYCOUNT in many more places 2023-05-28 00:48:58 +10:00
Ryan Dwyer 5255f7c346 Use Vtx/Col instead of struct gfxvtx, struct colour and u32 2023-05-27 13:22:14 +10:00
Ryan Dwyer d5a21a8459 Replace gDPSetVerticeArray with gSPVertex, rename gDPSetColorArray to gSPColor and rename gDPTri4 to gSPTri4 2023-05-27 10:27:15 +10:00
Ryan Dwyer 93acca065d Discover more object 2 flags 2023-01-17 20:14:19 +10:00
Ryan Dwyer 0063dcc71c Rename "close" gun function type to "melee" 2022-12-02 22:46:40 +10:00
Ryan Dwyer b159e01edc Improve naming and documentation of inventory data 2022-10-22 18:42:45 +10:00
Ryan Dwyer 2c1c13e666 Give better names to timing variables 2022-10-13 19:43:47 +10:00
Ryan Dwyer 120d0282e4 Decompile sightDrawZoom 2022-09-20 17:40:00 +10:00
Ryan Dwyer bbf52f580b Add support for non-matching ntsc-final builds 2022-09-09 17:19:48 +10:00
Ryan Dwyer 881156147b Decompile sightDrawDefault 2022-08-31 20:24:37 +10:00
Ryan Dwyer e82da009d2 Rename most text functions 2022-07-06 19:22:01 +10:00
Ryan Dwyer a076cd0658 Attempt to decompile sightDrawZoom 2022-06-18 19:28:09 +10:00
Ryan Dwyer 3b8fe34f99 Decompile sightDrawDelayedAimer 2022-06-17 19:47:35 +10:00
Ryan Dwyer e54ed9ad27 Decompile sightDrawAimer 2022-06-17 18:41:09 +10:00
Ryan Dwyer 22a728524d Decompile sightDrawSkedar 2022-06-17 17:17:46 +10:00
Ryan Dwyer 608ee04144 Decompile sightDrawMaian 2022-06-16 18:14:22 +10:00
Ryan Dwyer 9b7b98d61c Improve mismatch of sightDrawDefault 2022-06-16 17:19:05 +10:00
Ryan Dwyer 42d21af4ce Decompile sightDrawTargetBox 2022-06-15 23:24:01 +10:00
Ryan Dwyer 81b304be63 Decompile sightDrawClassic 2022-06-15 21:33:02 +10:00
Ryan Dwyer ae0a2f2b32 Decompile sightDrawSkedarTriangle 2022-06-15 21:22:44 +10:00
Ryan Dwyer 2c01a9a557 Decompile texSelect 2022-04-17 13:48:31 +10:00
Ryan Dwyer 4f87ec054d Decompile objCheckDestroyed 2022-04-08 21:45:04 +10:00
Ryan Dwyer 70375816f1 Rename most remaining game files 2022-03-23 21:22:06 +10:00
Ryan Dwyer e97273fb37 Rename many lifecycle functions to use consistent names and rename many files 2022-03-20 13:27:27 +10:00
Ryan Dwyer f826319637 Decompile sight0f0d715c 2022-03-19 16:11:26 +10:00
Ryan Dwyer 63bdcb30fe Decompile sight0f0d7164 2022-03-19 16:11:01 +10:00
Ryan Dwyer 6d64ed3510 jpn-final: Get ROM fully matching 2022-03-17 17:16:02 +10:00
Ryan Dwyer b6ef09ca20 jpn-final: Get game segment matching excluding pointers 2022-03-16 17:50:25 +10:00
Ryan Dwyer 9f46789551 pal-beta: Replace jal addresses with symbols 2022-03-12 16:06:12 +10:00
Ryan Dwyer 8a1dd76fa4 pal-beta: Get ROM fully matching 2022-03-12 15:47:01 +10:00
Ryan Dwyer f5eb967ee2 pal-beta: Get game segment matching excluding pointers 2022-03-11 21:58:39 +10:00
Ryan Dwyer f9fbf288f8 Rename PALDOWN macro to TICKS 2022-03-10 21:22:05 +10:00