Commit graph

9375 commits

Author SHA1 Message Date
Lwmte
13bad20803 Fixed #1514, #1515, #1516 2024-12-21 00:31:10 +01:00
Lwmte
64c1777023 Use level time for volume timestamps, as using GlobalCounter may be inconsistent 2024-12-19 22:34:02 +01:00
Lwmte
625131fbb7 Use O1 optimizations 2024-12-19 01:26:39 +01:00
Lwmte
078a2ab07b Remove unsafe reference usage 2024-12-19 00:58:48 +01:00
Lwmte
88bbe48621 Fixed infinite loop if bridges with zero thickness exist in level 2024-12-17 01:39:11 +01:00
Lwmte
dad63f98c5 Fixed climbable pushables clipping Lara under the bridges when pulled 2024-12-17 01:17:02 +01:00
Lwmte
db717658fc Added references to Type module 2024-12-16 21:33:37 +01:00
davidmarr
e9f057eb64
Add Type module (#1506)
* Update VolumeObject.cpp

fixed Volume:GetActive() method

* Update CHANGELOG.md

* function description LevelFuncs.OnUseItem

* Revert "function description LevelFuncs.OnUseItem"

This reverts commit 2478afca68.

* Add Type module

Allows to check the data type of a variable

* Update Type.lua

update description

* Update Type.lua

* Update Type.lua

* Update Type.lua

* Update Type.lua

* Update Type.lua
2024-12-16 22:25:17 +02:00
Lwmte
0bf151b8cf Update CHANGELOG.md 2024-12-16 21:30:04 +01:00
Lwmte
86161f0922 Update Time.cpp 2024-12-16 21:23:26 +01:00
Lwmte
5ba92095f6 Fixed secrets display 2024-12-16 20:56:10 +01:00
Lwmte
ae79247979 Update docs 2024-12-16 08:10:26 +01:00
Lwmte
117a4962b3 Update WeaponTypes.h 2024-12-16 08:09:55 +01:00
Lwmte
f0ec62b888 Don't pollute native game enum with script-only entries 2024-12-16 07:48:27 +01:00
Sezz
be820cac3d Some cleanup 2024-12-16 15:14:42 +11:00
Lwmte
0abb8981ba Add separate binoculars/lasersight camera types, correct default gunflash ranges 2024-12-16 01:11:33 +01:00
Lwmte
51a6b741db Update CHANGELOG.md 2024-12-16 00:08:07 +01:00
Lwmte
8d08a9feb5 Move statistics back to TEN classes 2024-12-15 23:59:31 +01:00
Lwmte
63a5464d00 Clarify documentation 2024-12-15 23:50:41 +01:00
Lwmte
773c5bb7bb Remove obsolete mirror class, more cleanups in documentation 2024-12-15 23:47:59 +01:00
Lwmte
becadbf046 Fixed time reference 2024-12-15 23:40:58 +01:00
Lwmte
f97d257fd1 Add optics camera type, big enum cleanup and doc formatting 2024-12-15 23:34:33 +01:00
Lwmte
4f66f24bbd Return flyby camera type, if flyby is active 2024-12-15 21:21:55 +01:00
Lwmte
f8dc369ccb Update savegame.cpp 2024-12-15 19:49:10 +01:00
Lwmte
050142d3b6 Save time variables in savegames 2024-12-15 19:45:13 +01:00
Lwmte
f4763bd4a2
Customize global hardcoded parameters (#1495)
* Initial commit

* Update CHANGELOG.md

* Tint flare smoke

* Expose GetCustomizations

* Added lensflare and flicker customization options for flare

* Update LensFlare.cpp

* Remove unnecessary code

* Update lara_flare.cpp

* Massive refactor to merge animations, settings and customizations

* Add HUD customization options

* Customize weapons

* Fixed flare, renamed recoil to interval, fixed lensflare default

* Occlude flare lensflares

* Update Settings.cpp

* Use alternate damage for lasersight mode

* Added hair cust

* Fix comment

* Fix another comment

* Fix link

* Fix placeholder table names

* Reorganize types

* Add missing initializers for hair settings

* Added physics cust

* Clarify description

* Update settings.lua

* Update CHANGELOG.md

* Add gun smoke, gun shells and ammo pickup counts

* Fix naming ambiguity

* Remove missing features from documentation

* Fix comment

* Fix parameter name, change default settings file

* Fixed pitch black

* Rollback DoDistanceFogForVertex

* Add camera cust

* Change binocular/lasersight toggle to color

* Update lara_basic.cpp

* Add time and statistics classes and script API for it

* Fix comment

* Use DoDamage on Lara helpers to register with statistics

* Update Time.cpp

* Fix documentation

* Fix default flare timeout

* Update Settings.lua

* Add flare muzzle offset customization

* Remove young Lara limitations

* Fix lasersight color

* Push full settings.lua

* Update RendererCompatibility.cpp

* Allow to customize root meshes, decopypaste hair and joint init code

* Added sol Time operator overloads

* Some changes to docs, add meaningful error for unknown fields

* Use existing new index template, add gunflash color settings, add shotgun muzzle

* Remove excessive usage of GetSettings()

* Cleanups

* Update Settings.lua

* Clarify parameter name

* Fix InitializeWeaponInfo

* PR review code tidying

* Fix bad merge

* Update FlowHandler.cpp

* Remove tabs for LDoc comments

* Use different comment style to preserve formatting

* Update lara_fire.cpp

* Some cleanups

* Fixed GetTimeUnits

* Fix typo

* Update Time.cpp

---------

Co-authored-by: Sezz <sezzary@outlook.com>
2024-12-15 18:24:49 +02:00
Sezz
ab7e25aa7a Pass position reference instead of copy when collecting lights 2024-12-15 00:19:57 +11:00
Lwmte
19528ea3bd Fix hair vertices linking incorrectly in some cases 2024-12-14 12:25:50 +01:00
Lwmte
2f6114deba Disable camera interpolation when going from/to binoculars 2024-12-13 09:08:09 +01:00
Lwmte
6198975bea Don't unroll float loops, as they slow down game launch 2024-12-12 01:31:10 +01:00
Lwmte
bddc52f632 Optimize debris drawing 2024-12-11 19:04:41 +01:00
Lwmte
4fe20b2a92 Fix moving bridges again without breaking bridge tilts 2024-12-11 16:50:37 +01:00
Lwmte
e674b85268 Add puzzle/key items in DOZY mode only if shift is held 2024-12-11 01:34:54 +01:00
Lwmte
3e5a3609cc Fix #1508 2024-12-11 01:06:31 +01:00
Lwmte
c7a1440131 Adjust room lighting influence 2024-12-10 22:53:31 +01:00
Lwmte
11d9661d6b
Renderer enhancements (#1507)
* Implement light masking, merge shadow functions, precalculate radians for spotlights

* Update CHANGELOG.md

* Fixed spotlight shadow calculation

* Disable shadow pass if it is disabled in settings

* Move all step functions into appropriate mask blocks
2024-12-10 23:11:53 +02:00
Lwmte
0a2d82ab11 Revert "Less frequent updates to CalculateBounce"
This reverts commit 8d20d6f1ca.
2024-12-10 03:01:23 +01:00
Lwmte
8d20d6f1ca Less frequent updates to CalculateBounce 2024-12-09 09:40:57 +01:00
Lwmte
45f515c444 Update savegame.cpp 2024-12-09 02:59:39 +01:00
Lwmte
a71cf7bced Prevent loading of incorrect savegames 2024-12-09 02:46:26 +01:00
Lwmte
8da4d36b54 Update CHANGELOG.md 2024-12-09 01:37:06 +01:00
Lwmte
5df743ac9b Allow camera bounce during flybys 2024-12-09 01:36:50 +01:00
Lwmte
b582601abf Fixed original issue with weapon hotkeys available in binoculars or lasersight mode 2024-12-08 22:40:34 +01:00
Lwmte
9a241dbc80 Fix issues with timer 2024-12-08 19:15:26 +01:00
Lwmte
59ebbc9e11 Debranch vertex effects 2024-12-07 22:44:26 +01:00
Lwmte
d90c98cc60 Rollback DoDistanceFogForVertex 2024-12-07 21:59:23 +01:00
Lwmte
5d293cc75a Fix compile errors with latest VS 2024-12-07 13:09:12 +01:00
Lwmte
d96bf4ba8c Debranch fog calculations 2024-12-06 21:53:45 +01:00
Lwmte
15aee1c5b0 Don't collect shadow casting lights of unsupported types 2024-12-06 21:04:53 +01:00
Lwmte
87373b4c78 Fixed black rooms in case brightest light is not point or spot 2024-12-06 20:36:46 +01:00