Commit graph

8102 commits

Author SHA1 Message Date
Sezz
6cd815ed03 Use vector instead of deque for display pickups 2023-02-21 13:37:28 +11:00
Kubsy
ce0a7feac1 Update Changes.txt 2023-02-20 13:30:36 +00:00
Adngel
302eb9c93b
Electric Cleaner with vectors adngel (#1005)
* Add cleaner code;

* Do smooth turns

* Revert acceleration (not working properly yet)

* Update cleaner.cpp

* Fix AdjustStopperFlag function, modify turn speed

* Move electric cleaner into namespace

* Cleaning cleaner first pass

* Demagic turn tolerance, use bools

* Update ElectricCleaner.cpp

* Revert smooth turns

* Format code according to conventions, rename function

* cleaner update

* Updated

* Updated OCB to flag data.

* Formula simplified

* restored original radius

I had reduced while I was working on it, but that's not needed anymore.

* Update comment

* Temporary Fix: Method to detect pushables.

* Feedback applied

* Revert primitive variable from auto to float

---------

Co-authored-by: Troye <woopstombraider@gmail.com>
Co-authored-by: Lwmte <3331699+Lwmte@users.noreply.github.com>
Co-authored-by: Sezz <sezzary@outlook.com>
Co-authored-by: Kubsy <80340234+Kubsy@users.noreply.github.com>
2023-02-20 13:26:16 +00:00
Kubsy
2a4404effe update changes.txt 2023-02-20 13:06:44 +00:00
Nemoel-Tomo
30565dc041
fixed #995 explodeable headmeshes for TR5 guards (#1008)
* fixed explodeable headsmeshes for TR5 guards

ID_SNIPER
ID_MAFIA
ID_MAFIA2
ID_SWAT
ID_GUARD1
ID_GUARD2
ID_GUARD3

* fixed explosive damage

* hit routine for ID_SCIENTIST

* removed isSolid true for guardian hit effect
2023-02-20 13:03:00 +00:00
Sezz
c220e65a4a Maybe fix wrong vertex order 2023-02-20 21:57:20 +11:00
Sezz
5f892ffd36 Fix NDC conversion 2023-02-20 21:50:40 +11:00
Sezz
7fa41f0f98 Add utility function 2023-02-20 19:15:07 +11:00
Sezz
9b90ad76ec Add comment 2023-02-20 18:56:15 +11:00
Sezz
68b16dba43 Correctly scale screen space sprites according to screen aspect ratio 2023-02-20 18:55:51 +11:00
Sezz
e96d981f7f Convert if-else block to switch case 2023-02-20 14:07:19 +11:00
Sezz
ff8932f08b Prototype sprites in screen space 2023-02-20 13:51:26 +11:00
Lwmte
6ce89eae94 Fix incorrect optional mesh rendering in inventory 2023-02-19 10:52:50 +02:00
Lwmte
572e43b84c Fix merge conflict in changelog 2023-02-18 22:59:52 +02:00
Kubsy
4077b45e0f Merge branch 'test' into develop 2023-02-18 21:52:23 +00:00
Adngel
610b128daa Changes.txt Updated Switch ocb 7 description 2023-02-18 17:28:44 +01:00
Lwmte
d56933bb38 Reformat and do spell checking in changelog 2023-02-18 18:10:03 +02:00
Lwmte
196c710ba4 Fix spark particles not being cleared on level reload 2023-02-18 18:09:02 +02:00
Sezz
1d2cb72c94 Demagic constant 2023-02-18 13:00:32 +11:00
Sezz
18e33522bb Move display pickups offscreen more smoothly 2023-02-18 12:54:21 +11:00
Stranger1992
087115253c
Addition of ID_MINECART_SWITCH (#1007)
* Update README.md

* Update README.md

* Minecart switch addition 1

* Change of placement and fix switch not activating HEAVY trigger

* Removal of duplicate entry.

* Added enum to Lua docs

---------

Co-authored-by: Kubsy <80340234+Kubsy@users.noreply.github.com>
2023-02-17 15:19:23 +00:00
Sezz
3a716b7dd1 Update AlignEntityToSurface() 2023-02-17 13:26:58 +11:00
Lwmte
4ff9d40f61 Add missing moveable effect types to ldoc comments 2023-02-16 22:17:53 +02:00
Sezz
bf659ebb57 Compy formatting 2023-02-16 12:36:37 +11:00
hispidence
b51562d286 Give better errors when the user tries to save an unsupported type in LevelVars or GameVars. 2023-02-15 21:42:47 +00:00
Sezz
828c72f1e0 Fix flares and torches disappearing when collecting pickups in a batch 2023-02-15 21:17:46 +11:00
Kubsy
93c307c1be
Renew TEN discord link 2023-02-14 23:07:00 +00:00
Stranger1992
da37f9464a
Removal of ID_COMPY and rename of ID_SMALL_DINOSAUR (#1009)
ID_COMPY = Removed
ID_SMALL_DINOSAUR -> ID_COMPSOGNATHUS
2023-02-14 13:26:37 +00:00
Kubsy
50fce5bb0f Merge branch 'develop' into test 2023-02-13 18:53:44 +00:00
Nemoel-Tomo
1566fd19e4
Tr3 small dinosaur fix (#1002)
* adding compies, test phase

* formatting

* removed SAS test flag

* added script command EffectID Cadaver

* formatting

* formatting

* limit the item timer to 250

* bugfixing
2023-02-13 18:49:15 +00:00
Adngel
62e2c0abd8 Update Changes.txt
Reorganized and added fixes done in test. So now in order are:

- Lara related features
- Entities related features (fixes and additions) in TR installment order
- Generic entities related features
- Effects and visuals
- lua

Also re-writtent some sentences.
2023-02-13 17:20:37 +01:00
Adngel
21f2b10478 Fix: Baddy1 make him stop ussing the bullet dodge ability.
Only baddy 2 can do bullet dodge ability (and succeed with it). But before this fix, baddy 1 was also doing the dodge animation with his normal sword, although that didn't stop him to keep receiving damage.
2023-02-13 17:03:44 +01:00
Adngel
5074fb3ccf Fix: Small_Spider added system sounds 2023-02-13 16:47:25 +01:00
Adngel
cb74182ac1 Fix: crowbar door position
Moving Lara a bit backwards to avoid she digs in the doors while doing the animation.
2023-02-13 15:43:55 +01:00
Adngel
4ffa604bd3 Fix: Tiger - Lion alignment radius. 2023-02-13 15:39:23 +01:00
Adngel
0a4550de08 Merge branch 'develop' into test 2023-02-13 15:34:33 +01:00
Adngel
4de493d8be Fix - Switches area afecting through flat walls. 2023-02-13 12:43:42 +01:00
TokyoSU
e03c62a78b
Fixed shiva taking damage when in stone (#999)
* Fixed shiva taking damage when in stone

- GetTargetOnLOS() was not using obj->HitRoutine when shooting enemies which was not triggered but drawed.

* Use DefaultItemHit for GetTargetOnLOS()

* Formatting

* Update Shiva.cpp

* Fixed blockable LotType

- Shiva could not step up or step down because LOT.Step and LOT.Drop was not initialised.
- Shiva could not take damage from explosive, which is the case now.

* Update Changes.txt

---------

Co-authored-by: Sezz <sezzary@outlook.com>
2023-02-12 15:42:10 +00:00
Kubsy
65447ead99 add info to changes.txt 2023-02-12 12:37:41 +00:00
Kubsy
9c0baa9b44 fix one mistake in changes.txt 2023-02-12 12:35:43 +00:00
Kubsy
034ef1dd1b Merge branch 'develop' into test 2023-02-12 12:34:17 +00:00
Kubsy
15a3136411 Update Changes.txt 2023-02-12 12:32:06 +00:00
Sezz
67518589a7
HUD revisions (#990)
* Pickup summary and HUD revisions

* Remove unnecessary includes

* Add necessary bool

* Store screen resolution as Vector2i

* Organise

* Update string rendering to take a scale factor

* Add newline

* Add parentheses

* Prepare count string scaling functionality; reorder parameters

* Move conversion

* Add std::string to std::wstring converter function

* Make string converter function names more reflective of what they do

* Rename parameter

* Remove unnecessary utility function

* Pulse count string when incrementing display pickup count

* Adjust string count appearance

* Rename constant

* Add pickups to inventory

* Refine logic

* Update PickupSummary.cpp

* Fix display pickup positioning in all resolutions

* Redefine constants

* Update comment

* Simplify

* Update position and scaling

* Make const static

* Fix logo placement

* Restore scale

* Make simple EulerAngles constructors constexpr

* Reorder conditions

* Update comment

* Use constant

* Use "this->" for security

* Formatting

* Shorten member variable name

* Move comment

* Use "this->" for security

* Update PickupSummary.cpp

* Use correct alpha value for string scalar

* Handle invalid screen space positions

* Add TODO comment

* Fix compile error; add constant; restore camera swivel during pickup animation

* Correctly display pickups picked up offscreen

* Update Renderer11Draw2D.cpp

* Remove unnecessary include and forward decl
2023-02-12 12:29:14 +00:00
Kubsy
e26672b2c2 prevent Lara from grabbing bar whilst equipping a weapon 2023-02-11 14:25:29 +00:00
Kubsy
d74b1feff8
Update README.md 2023-02-10 22:47:28 +00:00
Sezz
2839919623 Merge branch 'develop' into better_look_camera 2023-02-10 14:01:36 +11:00
Kubsy
6d2c06e59d add lara hands busy to bar swing state 2023-02-09 12:17:13 +00:00
Sezz
884c8f4bb1 Merge branch 'develop' into test 2023-02-08 20:35:32 +11:00
Kubsy
c114e49178
Update README.md 2023-02-07 19:35:07 +00:00
Kubsy
738f3d8afd Update Changes.txt 2023-02-07 17:48:31 +00:00