Commit graph

8102 commits

Author SHA1 Message Date
Adngel
5236dd59d1 Fix underwater pushables in small gaps
Now the pushables won't do the floating effect if they are in small gaps (like a 4 clicks pushable in a 4 click gap).
2023-08-27 16:25:23 +02:00
Adngel
a07b9751c3 Fix Raising block on water pushables states 2023-08-27 15:39:39 +02:00
Adngel
e69169f36c WIP Pushables Edge Interpolation 2023-08-27 14:46:17 +02:00
Sezz
0d73301950 Fix thumbstick camera axis swap 2023-08-27 17:51:39 +10:00
Jakub
491e43aa2d
renderer fix and bilinear filtering (#1193)
* Fixed wrong spotlight specula attenuation;
* Fixed possible bug with spotlghts;
* Attempt to fix the saturate problem of lights
* Restored old saturate in rooms shader
* Removed commented code
* Added experimental point filer set by gameflow
* Fixed compilation error
* Fix includes, change defaults, update Changes.txt

---------

Co-authored-by: MontyTRC89 <montyhammet@hotmail.it>
Co-authored-by: Lwmte <3331699+Lwmte@users.noreply.github.com>
2023-08-27 10:05:08 +03:00
Lwmte
f26c556529 Fix includes, change defaults, update Changes.txt 2023-08-26 19:24:03 +02:00
Lwmte
6953948f72 Merge branch 'develop' into renderer 2023-08-26 19:12:44 +02:00
Lwmte
743ac1738b Merge branch 'develop' into flipmap_fixes 2023-08-26 19:06:37 +02:00
Lwmte
28d582f92c Fix #1012 2023-08-26 19:05:01 +02:00
Lwmte
bcccfc86a3 Fix #1043 2023-08-26 13:43:16 +02:00
Lwmte
b3b346c448 Fix issues with wrong room switch on Moveable::SetPos() 2023-08-26 12:08:36 +02:00
Lwmte
ce447f3d0b Fix volume change in settings not affecting voice track 2023-08-26 09:58:52 +02:00
Lwmte
7fa185b730 Update Changes.txt 2023-08-26 09:34:44 +02:00
Lwmte
d7ccf2aaf1 Fix lua moveable constructor forcing animation and HP to certain values 2023-08-25 01:30:02 +02:00
Adngel
2493d1d448 Update Changes.txt 2023-08-24 23:34:38 +02:00
Adngel
9dd2df2d33
Adngel - Implement Swinging Blade (#1190)
* Implementation Swinging Blade

* Rename files

* Update

---------

Co-authored-by: Sezz <sezzary@outlook.com>
2023-08-24 20:16:57 +01:00
Adngel
12a4e3721b
Adngel enemies Peru fixes (#1196)
* Wolf Fix

- Fixed the condition to can hurt Lara while is doing the close bite attack.

* Bear fixes and polishments.

- Renamed the states, animations and constants to make code clearer.
- Fixed logical errors: Now bear won't get stuck during the high stance states. Also when it gets in Escape mood, now the bear will run away instead of walk.
- Fixed error that caused the bear getting stuck in low rooms when it goes to high stance
- Added floor alignment.

* Added floor alignment to wolf.

* Dehardcode various TR1 wolf values

* Bear stuff

* Switch case tabulation

* Update bear enums and constants

* Update wolf anim enum

* Small revision.

---------

Co-authored-by: Sezz <sezzary@outlook.com>
2023-08-24 20:16:34 +01:00
Adngel
f50e2447b2
Adngel lua weapons functions (#1199)
* LaraAmmoType and GetAmmoType.

Added the Lua function GetAmmoType
Added the enumerator LaraAmmoType for the engine uses.
Added the enumerator AMMO_TYPE_IDS for the Lua api.

* Added security checks to AddCallback.

AddCallback now will print information in the log if the function is already added, to avoid duplication.

* Added security check to RemoveCallback function.

* Ortographic mistake

* Fix SetAction function

The function now will accept compound values, for example:

ItemAction.USE | ItemAction.COMBINABLE

* Fix in GetAmmoType

Now it collect correctly the data from the special ammo weapons.

* Formatting

* Formatting

* Formatting

---------

Co-authored-by: Sezz <sezzary@outlook.com>
Co-authored-by: Stranger1992 <84292688+Stranger1992@users.noreply.github.com>
2023-08-24 20:16:14 +01:00
Lwmte
10789b450b Add lua functions to handle controls locking 2023-08-24 09:27:05 +02:00
Lwmte
4d4ef416ad Fix Lara not being affected by explosive projectiles when hitting moveables 2023-08-24 08:57:58 +02:00
MontyTRC89
a773675e3d Fixed compilation error 2023-08-23 15:01:18 +02:00
MontyTRC89
d96405245e Merge branch 'develop' into renderer 2023-08-23 09:11:50 +02:00
MontyTRC89
38eb55cbfd Added experimental point filer set by gameflow 2023-08-23 09:08:29 +02:00
MontyTRC89
d5c489c389 Removed commented code 2023-08-23 05:18:44 +02:00
Adngel
9c7498be7e Temptative fix: Sound issue. 2023-08-22 18:02:04 +02:00
Adngel
12c899c9a6 Update: TR4 Hammer to detect climbable pushables. 2023-08-22 14:24:33 +02:00
Adngel
52cfb49a91 Fix Deactivate bridge collider if item is deactivated. 2023-08-22 14:18:06 +02:00
Adngel
04bdf3f9b8 Merge branch 'develop' into Adngel-pushables-remake 2023-08-22 14:10:44 +02:00
Adngel
6d1ed497bf Added Bubbles Effect 2023-08-22 14:10:12 +02:00
Sezz
3d076e06da Fix turn bug when switching targets 2023-08-22 18:14:37 +10:00
Sezz
a189fb1343 Update optics input 2023-08-22 17:44:41 +10:00
Sezz
74161c917f Remove WaterStatus::None and HandStatus::None 2023-08-22 17:41:45 +10:00
Adngel
6faa505c15 Polishment, climbing water to bridge collider
Some changes to reduce the number of times where Lara fails to climb on a bridge collider from the water surface.
2023-08-21 20:28:27 +02:00
Adngel
e77d7c56d1 Fixed Water Surface scan. 2023-08-21 20:18:48 +02:00
Adngel
5f7790043f Fix Errors
- Error related to action key, that was affecting the Pushables behaviour. (Added a check in Control)

- Errors related the collision scans due to the bridge colliders.
2023-08-21 19:40:07 +02:00
Adngel
f7c247e2cb Fix error with the collision detection. 2023-08-21 19:04:19 +02:00
Adngel
3af6982d3f Removed unused function 2023-08-21 18:50:50 +02:00
Adngel
f9073207f0 Refactor Pushable Physic States
- Extracted the room collision check into its own function, re-written the state functions to use this new one (resulting in switch structures with their enumerators).

- Extracted the effects codes into their own functions and placed in the new file PushableObjects_Effect class.
2023-08-21 18:45:44 +02:00
Adngel
9128f6250c Fix Bridge Collider detection in shallow waters 2023-08-20 21:51:02 +02:00
Adngel
698fd26750 Added New Oscilation function
Added New Oscilation function for the climbable pushables, this one only moves the pushables slightly up and down, to give some dynamism when these are in water, but without disrupt too much the bridge collider, what will allow Lara to walk over it more easily.
2023-08-20 21:22:56 +02:00
Adngel
a25d455146 Feature: Climb out from water to bridge collider. 2023-08-20 20:25:59 +02:00
Adngel
393f0014f5 Added water ripples effect on shallow waters 2023-08-20 17:16:04 +02:00
Adngel
6768ffc555 Fix: Shallow waters detection
Now, when pushables are thrown in shallow waters (water rooms blocks with or 1 or 2 click height), they will keep being useable like when they were in no-water rooms.
2023-08-20 16:58:59 +02:00
Adngel
bb051898d2 Fix: Added missing trigger checks
Now the pushable also will check triggers when it reaches the ground in falling and sinking states.
2023-08-20 16:15:49 +02:00
Adngel
8481a9a9ff Fix Enable dynamic colliders on water surface. 2023-08-20 15:48:15 +02:00
Sezz
a9bf9f24d3 revert 2023-08-18 19:45:54 +10:00
Lwmte
d1ecc2aa33 Fix explosive projectiles shattering on moveables 2023-08-17 22:04:01 +02:00
Lwmte
cd7ae1027a Fix projectiles flying through moveables and harpoon doing insane damage 2023-08-17 09:20:29 +02:00
Sezz
081013dcfb Fix X orientation of camera for targets of interest 2023-08-15 13:35:52 +10:00
Sezz
4e781f764a Fix GUI select input when using Action 2023-08-15 13:23:05 +10:00