Commit graph

8102 commits

Author SHA1 Message Date
Adngel
3399d65b64 Fix: Crumbling platforms activation with DOZY.
- Added the condition to avoid activate the crumbling platforms when Lara passes flying over them with DOZY.

- Change the Wade by TreadWater. (Platform may break while Lara walks in low waters, but it shouldn't break when Lara passes swimming).
2023-08-13 12:47:59 +02:00
Sezz
a663cfc64e Fix camera target for objects of interest 2023-08-13 20:17:27 +10:00
Sezz
21082afb61 Merge branch 'develop' of https://github.com/MontyTRC89/TombEngine into develop 2023-08-13 19:32:53 +10:00
Sezz
ad6e3021d4 Organise bridge code 2023-08-13 19:32:27 +10:00
Jakub
6ce3d1e090
Update Changes.txt 2023-08-13 10:28:58 +01:00
Sezz
c793abfc62 Update crumbling floor 2023-08-13 18:46:49 +10:00
Sezz
b944b0536d
Update Changes.txt 2023-08-13 15:05:43 +10:00
Sezz
c8e75ea717
Vec2 scripting object refactor (#1167)
* Vec2i and Vec2 for scripting

* Update converter

* Add arithmetic methods; add ToVec2() and ToVec2i() converters

* Fix typo

* Convert to switch case

* Update savegame.cpp

* Formatting

* Update objects

* Formatting

* Maybe fix Vec2 load

* Remove Vec2i

* Update Vec2.cpp
2023-08-13 14:59:49 +10:00
Sezz
d80d8332f8 Allow crumbling floors to be oriented dynamically 2023-08-13 13:22:20 +10:00
Sezz
e7db09c8bf Rename constants 2023-08-13 12:47:50 +10:00
Sezz
abc67acacd Fix conventions 2023-08-13 12:46:07 +10:00
Stranger1992
a66478e751 Update Changes.txt 2023-08-12 17:34:22 +01:00
Jakub
82e87bb199
Update Changes.txt 2023-08-12 16:45:09 +01:00
Jakub
765871c201
Update Changes.txt 2023-08-12 16:44:40 +01:00
Jakub
ccd2b558c2
Merge pull request #1183 from MontyTRC89/Adngel_crumbling_floor
Adngel crumbling platform
2023-08-12 16:32:48 +01:00
Adngel
9a94d08a44 Fix: Control of WaterStatus states.
So Lara won't activate the platforms if she is swimming over them.
2023-08-12 15:54:00 +02:00
Sezz
d12f2d03a0 Change IsEnabled back to Enabled 2023-08-12 17:04:07 +10:00
Adngel
074d63c9d7 Added DOZY condition check.
So platforms won't trigger when Lara flies over them with DOZY.
2023-08-11 22:30:21 +02:00
Jakub
57a9d64bee
Merge pull request #1185 from SaracenOne/knife_thrower_fix
Knife thrower fix
2023-08-11 20:12:33 +01:00
Saracen
3c07620da9 Fix knife thrower AI 2023-08-11 20:01:10 +01:00
Jakub
2661c116d8
Merge pull request #1186 from SaracenOne/train_death_log
Add fix about train animation in log.
2023-08-11 19:51:47 +01:00
Saracen
c46c4bcaac Add fix about train animation in log. 2023-08-11 19:49:33 +01:00
Sezz
9434faac8a Update crumblingPlatform.cpp 2023-08-12 03:35:48 +10:00
Sezz
65164a6215 Project floor height 2023-08-12 03:31:43 +10:00
Sezz
1581124634 Update crumblingPlatform.cpp 2023-08-12 03:15:32 +10:00
Sezz
698be0c0c1 Fix comment 2023-08-12 03:14:02 +10:00
Sezz
86cfd9cee6 Formatting; use more accurate method to check for standing player 2023-08-12 03:07:18 +10:00
Sezz
1c43ed1c19 Move into namespace 2023-08-12 02:23:12 +10:00
Sezz
eee817db64 Rename file 2023-08-12 02:22:09 +10:00
MontyTRC89
b69833751d Restored old saturate in rooms shader 2023-08-11 06:06:07 +02:00
Sezz
9532a9a65e Organise volume code 2023-08-11 14:02:53 +10:00
Adngel
88c5cb8500 Fix wrong RoomNumber in Climbable pushables
Many files edited, but in short:

- There is a new function in _BridgeCol to activate/deactivate the bridge colliders of the stack.
- That function is called before and after the Collision detector for the roomNumber
- A flag to keep control of the bridge collision status has been added.
- Savegame data has been edited to include this new flag.

Is not a perfect solution, but is better than mine the code with precision collision scans. Unless until collision system get refactored.
2023-08-10 17:05:39 +02:00
MontyTRC89
90363a7a93 Attempt to fix the saturate problem of lights 2023-08-10 14:43:08 +02:00
Adngel
cde131c588 Temptative fix, wrong displacement
There is a random bug when Lara pulls from climbable pushables, sometimes, she slides two sectors while pull from a pushable. I can't find the issue in the code logic nor any mistaken value.

I'm testing disable Lara's collision in this way to see if that bug stops happening. At the moment it has not happened to me again. So did it work?

Lara didn't use the collider in these pull/push animations, so there shouldn't be any consequence for she not having collision during these actions.
2023-08-10 02:19:08 +02:00
Adngel
26ec09190f Enhacement Random time init. for floatings 2023-08-09 23:52:42 +02:00
Adngel
273bc20d13 Fix UnderWater Idle Collision 2023-08-09 22:29:35 +02:00
MontyTRC89
91af49aac6 Fixed wrong spotlight specula attenuation;
Fixed possible bug with spotlghts;
2023-08-09 06:22:42 +02:00
Adngel
f68e41bc15 Fix velocity reset
Water states uses the animation velocity Y as temporal variable for the gravity and oscilation period.

This fix add a couple more of resets to ensure they were ready for use by normal pushable movements.

Additionally, it moved a verification line into the bridge colliders function, what reduced deuplication in the Physics code.
2023-08-09 00:18:03 +02:00
Adngel
7b45b448bb Fix Added tolerance for ceiling scan.
In order to use a climbable pushable that connects a ladder, it needs to be a bit higher than the ceiling, so it needs the tolerance to can keep working with the rest of the system.
2023-08-09 00:01:52 +02:00
Adngel
3aed55bddc WIP Clean up
Changed the default DELAY to 35 because that's the length of the crumbling animation. Still gives time to gross it with simple running.
2023-08-08 17:42:52 +02:00
Adngel
565e0ca02b Fix negative OCB (Activation by trigger) 2023-08-08 17:36:46 +02:00
Adngel
dac3e64bd0 Small Fixes 2023-08-08 17:17:02 +02:00
Adngel
a577769f27 Fix landing and align it to floor 2023-08-08 16:31:02 +02:00
Adngel
99881916ad WIP Crumbling Platform 2023-08-08 16:17:35 +02:00
Sezz
b4729a08d6 Revert "Maybe fix collision blips for statics with 0-size bounds"
This reverts commit 7c48d9982b.
2023-08-08 01:33:36 +10:00
Saracen
0bdc3c95d2
Use OIS ParamList since default behaviour blocks the WIN key. (#1179) 2023-08-07 18:24:03 +10:00
Sezz
47540cc27b Merge branch 'develop' of https://github.com/MontyTRC89/TombEngine into develop 2023-08-07 17:46:23 +10:00
Sezz
7c48d9982b Maybe fix collision blips for statics with 0-size bounds 2023-08-07 17:45:57 +10:00
Saracen
196bf44733
Fix animation when Lara's killed by TR3 train. (#1180) 2023-08-07 17:08:20 +10:00
Sezz
007085424a Fix signs 2023-08-07 14:09:54 +10:00