Commit graph

46 commits

Author SHA1 Message Date
TokyoSU
e355827ee5 Fixed Repo, Fixed Savegame Struct Missing 2020-05-30 17:58:09 +02:00
TokyoSU
b615a98c46 (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
cd1d5f5482 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
29f0724693 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
MontyTRC89
fdc3ff9996 Refactored OBJET_INFO to ObjectInfo 2020-04-27 15:28:54 +02:00
MontyTRC89
5f63d6acba Merged LARA_INFO and LaraExtraInfo into LaraInfo 2020-04-27 14:01:00 +02:00
MontyTRC89
6b819c2855 Started math refactoring 2020-04-25 16:23:53 +02:00
MontyTRC89
f3bb956927 First EXE build successfully 2020-04-24 19:15:05 +02:00
MontyTRC89
9a78144600 Decompiled level loading functions; Moved lot of vars in DLL; Added Zlib; 2020-04-22 14:12:10 +02:00
MontyTRC89
7771e8faf1 PHD Math removal 1 2020-04-20 14:17:01 +02:00
MontyTRC89
e6c2205ffc Removed ExplodingDeath define and renamed ExplodingDeath2 => ExplodingDeath 2020-04-17 06:31:51 +02:00
MontyTRC89
cbe9f362b6 Fixed chase camera; Moved Camera in DLL; 2020-04-12 06:50:43 +02:00
MontyTRC89
3cabd868ba Refactoring 1 2020-04-01 13:09:14 +02:00
MontyTRC89
c7b6efe28d Added death states to CHEF and LAGOON_WITCH; Fixed water enemies; 2020-03-31 07:44:40 +02:00
MontyTRC89
d7f2bc18f8 Fixed jumping enemies 2020-03-14 21:43:05 +01:00
MontyTRC89
f4ee436f5d Fixed basic pathfinding for flying enemies 2020-03-14 20:26:53 +01:00
MontyTRC89
826af067b3 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
MontyTRC89
1fda4bd6dd Partially fixed ID_TR5_LARSON 2020-01-09 09:32:52 +01:00
MontyTRC89
c3890b0e68 Merge branch 'master' of https://github.com/MontyTRC89/TR5Main 2020-01-04 09:26:56 +01:00
MontyTRC89
29ff6f9355 Fixing Larson; Fixed ITEM_INFO struct; Fixed some entities; Fixed InitialiseCreature; Fixed ClearItem; 2020-01-04 09:10:24 +01:00
asasas9500
2556a824bf Fix guard; Add LOS functions 2019-12-27 23:54:40 -03:00
MontyTRC89
411f8e434e Fixed references to doors; Added TR3 style pushable blocks; Added InitialiseTightRope; 2019-12-23 23:10:24 +01:00
TokyoSU
6cccd1d28e Changed mgLOS to TR5 instead of using TR3 one
- changed mgLOS from TR3 to TR5.
- changed a bit GetTiltType() that normally return short.
- changed a bit CollideStaticObjects() and LaraBaddieCollision() to use "vector<short>" instead of "array".
- fixed GetCollidedObjects() where "collidedItems[numItems] = NULL" is called before last return.
- created GetRoomList() to get the roomList with vector or array return.
- structured some function.
2019-12-17 17:37:53 +01:00
TokyoSU
4b6ffedf5e Fixed release mode
- updated AlterFloorHeight()
- fixed chunkreader.h that used "ChunkReader::" in this own class.
- fixed ChunkId::FromString() not const for str.
- fixed some renderer wrong return value that caused error.
- fixed the debug mode not using the correct directx library !
- updated project include and libs required in release mode.
- fixed Sound_CheckBASSError() not const for message.
- fixed compileXXShader not const for the path.
- reverted GetFloor() change.
2019-12-14 22:41:38 +01:00
TokyoSU
3296db8dce Added some check, added ENV_FLAG_SWAMP, Fixed some function.
updated:
GetFloor()
CreatureAnimation()
GetAITarget()
FindAITargetObject()
CreatureAIInfo()
GetCreatureMood()
CreatureMood()
CalculateTarget()
- simplified CreatureTurn().
- commented the TR5 decompiled code in CreatureTurn().
- added some check about old entity.
- added waterCreature check in CreatureAnimation, if a entity that are not waterCreature enter the water, he will be killed. (need 2 click in water to be killed)
- added the old way to check AIobject.
- added ENV_FLAG_SWAMP flags.
- fixed XZ_ROOM_SECTOR not using room argument.
- added CHECK_CLICK() macro.
- added ZONE() macro from TR5, TR3 is not correct.
- fixed rcossin_tbl[] size.
2019-12-14 18:24:06 +01:00
TokyoSU
f64e962bc4 Fixed some think, Added zoneType feature
- updated:
CreatureActive()
CreatureCreature()
UpdateBox()
TargetBox()
StalkBox()
ValidBox()
EscapeBox()
InitialiseSlot()
InitialiseObjects()
- updated SearchLOT() and fixed wrong value.
- fixed hitEffect not being initialised.
- fixed some double define.
- moved lara define to constants.h.
- updated script.dat to last version, deleted the one in script folder (not used).
2019-12-13 19:00:59 +01:00
TokyoSU
713c992d76 Added Sophia
- deleted all the __cdecl except for the #define function. because /Gd enable the __cdecl for function by default.

- added the commented code in FireWeapon for TR3 entity (some function is missing)
2019-12-02 14:49:19 +01:00
MontyTRC89
37ac9b77fd Merged branches 2019-12-02 09:11:21 +01:00
TokyoSU
c3555a1fd1 [Update] Project & UPV Prototype
- changed __int32/__int16/__int8 to int/short/char respectivly.
- added UPV (prototype), lara is killed when enter.
2019-11-27 15:12:35 +01:00
TokyoSU
03688ab3c0 Add Worker MachineGun
- possibly changing the range to attack lara since it's pretty small.
2019-11-21 13:14:03 +01:00
TokyoSU
a130f08190 fix room define for creatureturn 2019-11-21 11:39:39 +01:00
TokyoSU
44499dbe1a Add WorkerShotgun
- decompiled CreatureTurn() (experimental)
2019-11-21 11:29:54 +01:00
MontyTRC89
0d342637fb Decompiling Lara 2019-11-21 07:43:34 +01:00
TokyoSU
aafb5d91ab misc fix & adding boat/kayak/snowmobile file 2019-11-20 11:24:36 +01:00
TokyoSU
8d4527a445 Last update, Include Silencer and Yeti Code 2019-11-14 14:09:43 +01:00
MontyTRC89
b388221663 Decompiled SWITCH.CPP; Decompiled DOOR.CPP; Refactoring; Fixed sequences variables; 2019-11-09 09:56:33 +01:00
MontyTRC89
a44f1bdf8c Fixed and tested (some bugs left) CalculateTarget, UpdateLOT, SearchLOT, CreatureFloat, CreatureUnderwater; Fixed serious bug with XZ_GET_SECTOR macro; 2019-11-05 07:52:38 +01:00
MontyTRC89
64fbe0f65d Tested and fixed CreatureMood, GetCreatureMood, AlertNearbyGUards, AlertAllGuards; 2019-11-03 21:57:57 +01:00
MontyTRC89
8c87482d62 Fixed and tested CreatureActive, CreatureAIInfo, CreatureCreature, MoveCreature3DPos; 2019-11-03 14:58:26 +01:00
MontyTRC89
564580873c Tested and fixed CreatureTilt and CreatureJoint 2019-11-03 08:24:53 +01:00
MontyTRC89
4464652bb2 Tested and fixed some decompiled functions 2019-11-03 08:05:48 +01:00
MontyTRC89
ac968b41f9 Decompiled more functions from BOX.CPP, ITEMS.CPP, OBJECTS.CPP; 2019-11-01 08:35:01 +01:00
MontyTRC89
6a834b884d Added fish/piranha from TR3; Added MP with stick from TR3; Almost decompiled BOX.CPP, LOT.CPP and ITEMS.CPP; 2019-10-29 20:05:58 +01:00
MontyTRC89
68410075fd Implemented SAS; Fixed baddy; Fixed Lara arm bug; 2018-09-15 08:20:53 +02:00
MontyTRC89
2524cb8d35 Added CreatureVault; Fixed baddy climbing down; Code refactoring; 2018-09-14 14:56:27 +02:00
MontyTRC89
e6114af969 First commit 2018-08-19 09:46:58 +02:00