Commit graph

2930 commits

Author SHA1 Message Date
Marcin Kurczewski
5b2460c484
misc: fix formatting issues 2024-08-30 18:18:33 +02:00
Marcin Kurczewski
641824b5b4
lara-hair: simplify pointer usage 2024-08-30 18:09:47 +02:00
Marcin Kurczewski
9ddc3a2433
libtrx: fix ref 2024-08-30 16:24:35 +02:00
Marcin Kurczewski
f0a6fbd630
inventory: fix improper ring shutdown
Resolves #1460.
2024-08-30 16:24:15 +02:00
Marcin Kurczewski
936cd4a8fa
option: fix function naming 2024-08-30 16:24:09 +02:00
Marcin Kurczewski
08a8705a7b
console: fix reporting mismatched items 2024-08-30 16:08:35 +02:00
Marcin Kurczewski
c72a1abff0
console: fix /give command giving duplicate items
Resolves #1463.
2024-08-30 11:00:10 +02:00
Marcin Kurczewski
891236024e
build: add codeowners 2024-08-30 01:02:09 +02:00
Marcin Kurczewski
519de5e7de
vars: remove unused g_InvExtraData 2024-08-27 21:31:20 +02:00
Marcin Kurczewski
21ed7cf06e
config: move option dumping and loading to libtrx 2024-08-25 22:45:45 +02:00
Marcin Kurczewski
504e6d8a3e
config: move option macros to libtrx 2024-08-25 22:45:44 +02:00
Marcin Kurczewski
6d891fa2bd
config: move to libtrx 2024-08-25 22:45:42 +02:00
lahm86
56df86cca8
types: fix camera data signedness (#1454)
Timer and glide values are unsigned in data, they were wrongly
allocated as signed in da2353e.

Resolves #1451.
2024-08-24 18:17:28 +01:00
lahm86
806dba7e73
room: fix invalid walkable detection (#1453)
This avoids testing the floor height for the on walkable check when the
corresponding sector does not have a trigger. This is equivalent to
not finding a walkable object.

Resolves #1452.
2024-08-24 17:55:53 +01:00
Marcin Kurczewski
8f758726a5
gun: fix early hiding of pistol meshes
Resolves #1449.
2024-08-23 22:52:00 +02:00
Marcin Kurczewski
84cc44df0a
picture: move to libtrx 2024-08-23 17:24:25 +02:00
Marcin Kurczewski
9061c915c9
libtrx: report Windows crashes with dwarfstack 2024-08-20 19:12:35 +02:00
Marcin Kurczewski
ef15eafcb3
build: remove silly directory prefix from __FILE__ 2024-08-20 18:58:01 +02:00
Marcin Kurczewski
5383569ba2
tools: improve Dockerfile syntax 2024-08-18 23:02:00 +02:00
Marcin Kurczewski
72ffca9edf
docs: release 4.3 2024-08-15 22:24:37 +02:00
walkawayy
c61471f275
inventory: set any weapon to default on pickup if unarmed (#1445)
Resolves #1443.
2024-08-15 11:24:34 -04:00
Marcin Kurczewski
a1e72ac8ba
gun: fix holsters and back mesh problems
Resolves #1437.
2024-08-14 17:04:58 +02:00
Marcin Kurczewski
826464be6b
gun: make rifle code consistent with pistols 2024-08-13 17:40:33 +02:00
walkawayy
3a4be93f3d
config: fix missing Spanish translation for target lock (#1440)
Resolves #1439.
2024-08-13 09:57:41 -04:00
walkawayy
f2092cd94d
camera: add underwater music behavior options
Resolves #528.
2024-08-13 15:55:34 +02:00
walkawayy
871259d620 pickup: add guns to emtpy holsters on pickup
Resolves #1291.
2024-08-10 14:57:37 -04:00
walkawayy
61a159f558 inventory_func: enforce GAME_OBJECT_ID 2024-08-10 14:57:37 -04:00
walkawayy
a086319359 types: rename O_GUN_AMMO_OPTION to O_PISTOL_AMMO_OPTION 2024-08-10 14:57:37 -04:00
walkawayy
1d83387ece types: rename O_GUN_OPTION to O_PISTOL_OPTION 2024-08-10 14:57:37 -04:00
walkawayy
632d2edb42 rename O_GUN_AMMO_ITEM to O_PISTOL_AMMO_ITEM 2024-08-10 14:57:37 -04:00
walkawayy
a0066a9a4e types: rename O_GUN_ITEM to O_PISTOL_ITEM 2024-08-10 14:57:37 -04:00
walkawayy
d283624109 gun_pistols: use GAME_OBJECT_ID in mesh functions 2024-08-10 14:57:37 -04:00
walkawayy
2dfca21ee8 types: rename O_UZI to O_UZI_ANIM 2024-08-10 14:57:37 -04:00
walkawayy
6cd480b702 types: rename O_MAGNUM to O_MAGNUM_ANIM 2024-08-10 14:57:37 -04:00
walkawayy
a415a01701 types: rename O_SHOTGUN to O_SHOTGUN_ANIM 2024-08-10 14:57:37 -04:00
walkawayy
a782d05f41 types: rename O_GUN_ANIM to O_PISTOL_ANIM 2024-08-10 14:57:37 -04:00
lahm86
03a78a76a7 room: make trigger command parameter generic
Rather than storing redundant camera data in every command, we now
store a void *, which either has the regular int16_t parameter, or the
full additional camera data.
2024-08-10 15:24:41 +01:00
lahm86
2d81fbf206 inject: fix missing null check 2024-08-10 15:24:41 +01:00
lahm86
8b0d66e979 room: delete global trigger index
The global trigger index is no longer required, and as such neither is
the trigger pointer in COLL_INFO.
2024-08-10 15:24:41 +01:00
lahm86
de4921a45b level: store raw floor data temporarily
This eliminates the global floor data array and instead reads it into
the temporary level info; it is released post-parsing.
Injections updated to match, as their total FD injected length is no
longer required.
2024-08-10 15:24:41 +01:00
lahm86
f96220acb5 inject: refactor floor data injection
Floor data injection now uses the common parser in `room.c`. This means
making the sector populator public and passing additional arguments to
allow parsing from index 0.
2024-08-10 15:24:41 +01:00
lahm86
78862ed321 door: set NO_ROOM on blocked wall portals
This is effectively what setting the index was previously doing, the
new approach is now adopted.
2024-08-10 15:24:41 +01:00
lahm86
da2353e05f room: refactor lava and trigger interpretation
This creates an is_death_sector property on sectors and updates the
checks for when this is applicable in terms of collision and trigger
checks.
Triggers are also now directly in sectors, and their list of commands.
Most duplicated FD iterations are now removed; injection logic to
follow suit and use the new approach.
2024-08-10 15:24:41 +01:00
lahm86
3405e8ca80
room: refactor tilt and portal interpretation (#1433)
This introduces a floor data master parser to allow setting all
relevant properties for sectors once. This is applied initially to
floor and ceiling tilts, and horizontal portals. Related refactors
have been undertaken, such as combining all portal values into a struct
in the sector, and simplifying sector traversal.
2024-08-08 19:51:47 +01:00
Marcin Kurczewski
330a57d2b9
libtrx: use new file read/write api 2024-08-07 21:20:58 +02:00
lahm86
83b1f4a4a2
types: refactor sector floor and ceiling properties (#1430)
This introduces a struct in SECTOR_INFO which currently stores the
click height for the floor and ceiling values.
Height values are now stored as int16_t in the sector to avoid shifting
from clicks to world units throughout the codebase.
Object functions that determine floor and ceiling heights have been
renamed.

Part of #941.
2024-08-07 20:07:06 +01:00
walkawayy
99588b28b0 room: fix dangling return condition 2024-08-06 21:02:59 -04:00
walkawayy
6c6752014b
room: fix tilt being disabled when not on a walkable (#1429) 2024-08-06 11:32:16 -04:00
lahm86
0a24856c54
room: rename floor info (#1428)
This renames FLOOR_INFO to SECTOR_INFO to help distinguish it in cases
where floor is used in reference to height. The naming is more in line
with Tomb Editor, the TRosettaStone documentation and so forth.

Part of #941.
2024-08-05 21:34:15 +01:00
walkawayy
0fdb842989
collide: fix collision issues with bridges
Fixed collision issues with drawbridges, trapdoors, and bridges when
stacked over each other, over slopes, and near the ground.

Resolves #606.
2024-08-03 11:03:36 +02:00