Commit graph

9399 commits

Author SHA1 Message Date
Sezz
abb4c1a76c Improve look-around check 2023-11-15 00:35:24 +11:00
Sezz
59c90ad8d5 Update lara.cpp 2023-11-15 00:20:58 +11:00
Sezz
8402ad2133 Update cheat function 2023-11-15 00:18:29 +11:00
Sezz
c0877af85c Update lara_helpers.cpp 2023-11-14 23:39:28 +11:00
Sezz
e5577a4354 Move fly cheat code to lara_helpers.cpp 2023-11-14 23:39:10 +11:00
Sezz
91cffc1c27 Make Sprint input action increase velocity in fly cheat; minor fly cheat improvements 2023-11-14 23:18:17 +11:00
Sezz
b884c8e69b Separate underwater switch objects 2023-11-14 20:06:52 +11:00
Sezz
15a9c0f76e Update RoomVector object 2023-11-14 19:18:02 +11:00
Sezz
f868a922c8 Minor floordata function formatting 2023-11-14 18:30:51 +11:00
Sezz
0135791354 Remove TR5 level check hack from trapdoor 2023-11-14 16:18:24 +11:00
Lwmte
98d0da2370 Process adjacent volumes flag 2023-11-14 00:23:05 +01:00
Lwmte
8d504d6907 Read adjacent rooms flag for volumes 2023-11-14 00:18:32 +01:00
Lwmte
fbebfe8407 Fix small mistake 2023-11-13 23:43:58 +01:00
Lwmte
0945ea5eed Read volume enabled flag 2023-11-13 23:41:37 +01:00
Sezz
8542e86963 Tabs 2023-11-13 10:50:44 +11:00
Lwmte
80a140e509 Update volume.cpp 2023-11-12 23:25:43 +01:00
Lwmte
b3560043ab Add script functions to enable and disable events 2023-11-12 22:34:05 +01:00
Lwmte
574a8fd802 Fix speedhack for looped event sets 2023-11-12 16:54:03 +01:00
Lwmte
fe4a6263d3 Merge branch 'develop' into event_set_editor_enhancements 2023-11-12 16:31:11 +01:00
Lwmte
0409590ceb Initial commit 2023-11-12 16:26:52 +01:00
Adngel
e22501a646 Update Changes.txt 2023-11-12 14:06:41 +01:00
Adngel
5e61a6613d Update PushableStates.cpp
HACK: Activate the pushable ending only if it's doing the Object pushable animations.

Reason is because the block animations, have a long pause between the pushable movement and the end of the animation.

This fix is temporal and need a better solution for these kind of cases.
2023-11-12 12:29:34 +01:00
Adngel
e2b9103cf4 Update PlayerStateMachine.cpp
Camera restored for the animation of pushable edge slips.
2023-11-12 12:00:37 +01:00
Adngel
71f3e78e8f Update PushableObject.cpp
Corrected the logic initialization of the flag DoCenterAlign
2023-11-12 11:21:04 +01:00
Adngel
c5253f7950
Electric cleaner refactor (#1244)
* Revert "Late electric cleaner formatting"

This reverts commit 4db8e8ca69.

* Update functions names

* Removal of the old functions for pushables

From now on, the EC will relies in the floor Stoppable flag to don't pass through pushables. (As pushables got refactored to manage these better).

* Reformat: Comments and Initialize

* Reformat: From header to static methods

Changed the auxiliar functions to static methods defined uniquely in the source code. And deleted from the header code.

As these functions are unique for the Electric Cleaner and don't need to be known by external codes. So are moved away from the header.

For this, the order of the functions in the source code also has been changed, so now Control and Collide functions are at the bottom.

* Reformat: IsNextSectorValid

- Reformatted code from the IsNextSectorValid function
- Added also the GetCollision overload:

CollisionResult GetCollision(const Vector3i& pos, int roomNumber, const Vector3& dir, float dist);

* Reformat: Minor functions

* Reformat: ControlElectricCleaner

* Update comments

* Minor formatting

* Update Slopes alignments

GetShortestAngle is converting the diferenceof slopeAngle and dirAngle to short type, (What will not take the value 32768 anymore)

Therefore the next if have been modified to check only the forward (angle 0) and backwards (angle 180).

Note: ANGLE (180) and ANGLE (-180) gives both the same result, -32768, Although ANGLE 180 is positive, the short type rounds it back to the negative side. However in the code I think will be easier to read using the positive 180 angle.

* Update ElectricCleaner.cpp

---------

Co-authored-by: Sezz <sezzary@outlook.com>
2023-11-12 20:25:31 +11:00
Lwmte
9aca4187dc Rename GetCursorDisplayPosition 2023-11-12 08:38:37 +01:00
Lwmte
371cc2e033 Fix crashing if title logo is removed from Textures folder 2023-11-12 08:08:32 +01:00
Sezz
26dc407148 Simplify 2023-11-12 17:58:31 +11:00
Sezz
5a9a4c1de9 Simplify switch case 2023-11-12 17:56:30 +11:00
Sezz
ebbeb8b2bb Add "." string 2023-11-12 17:51:21 +11:00
Sezz
79a2300211
Simplify player state machine (#1237)
* Convert loose state function lists to maps

* Simplify

* Shorten names

* Unity functions

* Convert to array

* Update function name

* Remove duplicate include

* Simplify switch case

* Update PlayerStateMachine.cpp

* Add comments

* Use clearer names
2023-11-12 17:43:58 +11:00
Sezz
4f67330b31 Add handy floordata functions 2023-11-12 15:58:31 +11:00
Sezz
ef2dd30d6d Improve crosshair appearance 2023-11-12 15:44:45 +11:00
Sezz
d67b052ece Update InputHandler.cpp 2023-11-12 14:58:34 +11:00
Sezz
9f0d09729f Update internal cursor position getter to C++ naming standards 2023-11-12 14:58:16 +11:00
Sezz
ceb789f899 Rename SCREEN_SPACE_RES to DISPLAY_SPACE_RES for consistency 2023-11-12 14:55:02 +11:00
Kubsy
a788d0291c Update ScriptDisplaySprite.cpp 2023-11-11 17:01:29 +00:00
Kubsy
60d882b564 fix lua doc mistake 2023-11-11 16:25:36 +00:00
Kubsy
d0fe2444ab Update Util.cpp 2023-11-11 16:18:46 +00:00
Sezz
45c3060841
Refactor bridge functions (#1239)
* Refactor bridge functions

* Update Setup.h

* Make comments clearer

* Improve comment clarity

* Add and update comments

* Update comments

* Update tr5_expandingplatform.cpp

* Minor changes

* Remove AlterFloorHeight()
2023-11-11 14:41:33 +00:00
hispidence
e7ffb94d19 Regen docs, increase margin in css file 2023-11-11 12:16:23 +00:00
Sezz
53b29208fe Merge branch 'develop' of https://github.com/MontyTRC89/TombEngine into develop 2023-11-11 00:25:26 +11:00
Sezz
d13490d5b2 Wrap remaining script namespaces 2023-11-11 00:24:55 +11:00
Lwmte
48f89d702e Update ScriptDisplaySprite.cpp 2023-11-10 13:56:35 +01:00
Sezz
ee44b522de Update doc comment 2023-11-10 19:41:23 +11:00
Sezz
8991a4b9be Move DisplaySprite, ScaleModes, and AlignModes to View namespace 2023-11-10 19:23:36 +11:00
Sezz
f0348d90bf Remove "this->" where not needed 2023-11-10 12:56:09 +11:00
Sezz
6e9034c5da Update ActionID names 2023-11-10 12:43:25 +11:00
Lwmte
66bf60c914 Update config.ld 2023-11-10 02:20:25 +01:00
Lwmte
9cf64485d4 Update Changes.txt 2023-11-09 20:23:20 +01:00