Commit graph

82 commits

Author SHA1 Message Date
MontyTRC89
3836ed7a26 Fixed volumes and added debug message 2021-07-15 10:56:03 +02:00
MontyTRC89
c1bfae6bf9 Refactored cameras, sinks and sound sources; Added sound sources playback; 2021-07-10 06:55:37 +02:00
MontyTRC89
4c7110558f Switched audio tracks from int index to string; Added Tracks.lua loading support; 2021-06-26 07:36:54 +02:00
Trxye
35af9b2c92 clean up ring inventory code; fix KillItem(); 2021-05-26 01:58:30 -05:00
asasas9500
43fffd9746 Delete leftover code 2021-02-07 01:20:50 -03:00
asasas9500
d4c6cc4a97 Fix line endings 2020-12-21 13:16:29 -03:00
KrysB4k
8f6b428942 Removed duplicate function GetFloorAndTestTriggers, fix pushblock issues
GetFloorAndItemTriggers() was removed in favor of TestTriggersAtXYZ() from switch.cpp, which does the same. All calls to GetFloorAndItemTriggers were replaced with TestTriggersAtXYZ.

Pushables pulling bug was fixed in TestBlockPull(). PushableBlockControl() now calls ItemNewRoom() to signal change of room membership of pushable.
2020-12-19 23:02:55 +01:00
asasas9500
98e9d953d2 Implement new random system 2020-10-24 01:05:59 -03:00
asasas9500
c06fa6f9e2 Merge branch 'master' into NoShifts 2020-08-25 19:25:28 -03:00
Montagna Marco
f981ba23e4 Decompiled ID_ENEMY_JEEP 2020-08-08 20:31:48 +02:00
asasas9500
3045d1c832 Merge branch 'master' into DiagonalCollisions 2020-08-07 16:37:31 -03:00
Montagna Marco
325b5841d0 Decompiled wraiths; Added outside rooms table; 2020-08-02 19:39:55 +02:00
KrysB4k
b57cc8d5c1 Merge branch 'master' into DiagonalCollisions 2020-07-26 10:51:06 +02:00
Montagna Marco
014aa1baa7 Frames refactoring 2020-07-25 18:02:35 +02:00
asasas9500
b3b4d22476 Move COLL_TYPE, HEIGHT_TYPES, HEADINGS and OCTANTS to control.h 2020-06-06 19:05:54 -03:00
TokyoSU
11b3751851 Finished Moving Function
- Moved Some Function to here respective file (new cpp/h).
- Changed effect_routines to function<void(ITEM_INFO*)>.
- Fixed ActivateCamera() not using ITEM_INFO* Argument for effect_routines[].
- Fixed ActivateKey() not using ITEM_INFO* Argument for effect_routines[].
- Fixed ActivateKey() and ActivateCamera() being defined 2 time.
- Commented the new level loader, for later.
2020-06-04 11:00:08 +02:00
TokyoSU
ee59d27517 (Broken) Deleted Global Folder
- No more enums.h, constants.h, macro.h, etc...
- moved all structure in types.h to there respective file.
2020-05-30 15:55:23 +02:00
TokyoSU
2c5a621cb3 Refactor include and moving some structure to right file
- started moving structure out of types.h.
- fixed ExtraAnim using 0 instead of -1.
- changed void(*)(); to function<> for lara routines.
- changed short(*)() effect to function<> for CreatureEffect/CreatureEffect2.
- renamed guardian to laserhead.
- moved some structure to their right place.
- renamed TYPE_ZONE to ZoneTypeEnum.
- fixed zoneType not using ZoneTypeEnum as variable.
- fixed LOT.zone not using ZoneEnumType.
- changed "variable : 1" to bool in some structure.
- implemented @krys new collision structure and improved it a bit (but commented for "later")
- level need #pragma pack(push, 1) #pragma pack(pop) to work (for structure), else it crash at LoadTexturesInfos().

Co-Authored-By: krys <krys@users.noreply.github.com>
2020-05-28 15:17:34 +02:00
TokyoSU
9045a2206d Partially finished Entity Folder Refactoring
- Less Compile Time
- ObjectInfo now use std::function.
- added isPickup and isPuzzleHole in ObjectInfo.
- Renamed EVIL_LARA to LARA_DOPPELGANGER (DOPPELGANGER in xml)
- Removed TR1 Larson/Pierre and TR1 Raptor.
2020-05-27 19:07:34 +02:00
TokyoSU
9c1c4517d7
New project format (#206)
* Starting Reformat the project

- New Import Method, no more "../../" in import,
- New Entity Folder Structure, less compile time

* Refactoring the Project

- added precompiled header with default import like microsoft or directx.
- fix many double import.
- fix math.h confliting math.h from
microsoft.
- fix effects.h confliting Effects.h from DirectX.
- refactored TR4 entity folder and how it's loaded.

* Update Some Code Before Switching to Master

* Finished the NewProjectFormat Template

- need to finish entity in the master later.

* Added Monty NewFileFormat

* Fixed Monty NewFileFormat Include

* Revert "Fixed Monty NewFileFormat Include"

This reverts commit ebf0afca10.

* Trying to fix conflits for NewFileFormat

* Fixed .filters

* Last Commit in NewProjectFormat
2020-05-27 09:21:20 +02:00
Montagna Marco
9f84bc3458 Added DoProperDetection; Fixed flares; 2020-04-30 06:44:29 +02:00
Montagna Marco
85e462f6a2 First EXE build successfully 2020-04-24 19:15:05 +02:00
Montagna Marco
4cc46789e9 Decompiled input 2020-04-23 19:22:01 +02:00
Montagna Marco
9f05715977 Decompiled level loading functions; Moved lot of vars in DLL; Added Zlib; 2020-04-22 14:12:10 +02:00
Montagna Marco
8cd437a81b Decompiled math functions 4; Code cleaning; Decompiled many functions; 2020-04-15 18:30:34 +02:00
Montagna Marco
4246d8ae46 Decompiled UpdateStorm(); Code cleaning; 2020-04-14 06:11:10 +02:00
Montagna Marco
cae57bda59 Code cleaning and refactoring 2020-04-12 07:25:37 +02:00
Montagna Marco
3f35e4de4f Refactoring 1 2020-04-01 13:09:14 +02:00
Montagna Marco
ecf5772a4e Refactoring of shatters code 2020-04-01 07:24:15 +02:00
Montagna Marco
5c7aada97a Finished ID_RATS, ID_BATS, ID_SPIDERS 2020-02-14 07:42:20 +01:00
Montagna Marco
4ae4da4e69 Fixed ID_HYDRA; Decompiled ID_AUTOGUN; Decompiled is_object_in_room(); Decompiled InterpolateAngle(); 2020-02-10 10:38:00 +01:00
asasas9500
c00c8750cb Replace NormalizeVector() with NormaliseRopeVector(); Fix Lara functions 2020-01-25 23:31:26 -03:00
Montagna Marco
ea39f91f9c Restored FLAME (still badly rendered); Moves items/fx variables to DLL; Increased Effects[] from 24 to 1024; Fixed dynamic lights in rooms; 2020-01-19 08:12:51 +01:00
Montagna Marco
e9b540323d Fixed sparks drawing; Moved boxes, overlaps and zones in DLL; Decompiled missing doors code; Added some code to phd_LookAt; 2020-01-16 19:14:35 +01:00
Montagna Marco
b2f86f4bee Decompiled GetWaterHeight 2020-01-14 13:14:52 +01:00
asasas9500
d6632804f5 Add ExplodeItemNode() and TriggerActive() 2020-01-10 17:06:49 -03:00
Montagna Marco
b9814aef33 Code cleaning 2020-01-08 18:26:29 +01:00
Montagna Marco
3a3da05786 Decompiled RefreshCamera 2020-01-08 17:28:10 +01:00
Montagna Marco
27e83a55ae Decompiled flip map functions, PlaySoundTrack, RumbleScreen, AnimateItem 2020-01-08 17:13:44 +01:00
Montagna Marco
d649d062fe Decompiled AnimateItem() 2020-01-08 13:25:42 +01:00
asasas9500
9a43256544 Merge branch 'master' of https://github.com/MontyTRC89/TR5Main 2020-01-07 18:01:36 -03:00
asasas9500
6e894abf33 Add control functions; Remove duplicated CheckNoColFloorTriangle() 2020-01-07 17:33:13 -03:00
Montagna Marco
5775899142 Decompiled NormalizeVector 2020-01-07 12:17:55 +01:00
Montagna Marco
46d7528c28 Decompiled DoRayBox 2020-01-07 11:06:26 +01:00
Montagna Marco
3810cdc83a Restored GetFloor from DLL 2020-01-06 13:05:56 +01:00
Montagna Marco
0cfea9bfdd Decompiled ID_PULSE_LIGHT, ID_STROBE_LIGHT, ID_BLINKING_LIGHT, ID_COLOR_LIGHT, ID_ELECTRICAL_LIGHT; Fixed issue 111; 2020-01-06 07:38:54 +01:00
asasas9500
ee477e356c Fix guard; Add LOS functions 2019-12-27 23:54:40 -03:00
Montagna Marco
dbf42eaa44 Merge branch 'master' of https://github.com/MontyTRC89/TR5Main 2019-12-22 07:56:44 +01:00
Montagna Marco
d5f6858a01 Decompiled EFFECTS.CPP, EFFECT2.CPP, TOMB4FX.CPP 2019-12-22 00:20:10 +01:00
TokyoSU
4bd18f7f18 Now release mode is compatible 2019-12-15 16:19:01 +01:00