Commit graph

37 commits

Author SHA1 Message Date
MontyTRC89
83bba01a99 Moving all globals of level under LEVEL struct; Fixed severe performance issue; 2020-07-21 09:56:47 +02:00
MontyTRC89
9867a6d24c Pathfinding refactoring 2020-07-11 21:16:04 +02:00
MontyTRC89
7ff7397fa7 New level format: meshes 2020-07-03 07:05:33 +02:00
Raildex
2b4d1ca2e8 resolving namespace std conflicts 2020-06-18 15:54:08 +02:00
TokyoSU
fce86a8072 Fix for Crocodile
- Updated ZONE_NULL in case it's not updated to ZONE_BASIC...
2020-06-14 08:45:45 +02:00
TokyoSU
2b2a58d44c Implemented Mutant and Locusts
- Added ItemNearTarget().
2020-06-10 21:38:25 +02:00
TokyoSU
dd69b5c53b Fixed crocodile flying when exiting water
- Fixed the transition time for the animation (water to land).
2020-06-08 13:11:10 +02:00
TokyoSU
85e6941568 Refactored Bat
- Latest bat code from TR4Main.
- Fixed Semi-Always Not Attacking Lara (Collision).
- Fixed Escape Mood (Bat can fly without attacking lara and can be killed easy like this !)
2020-06-06 14:38:43 +02:00
TokyoSU
0ccf99dcd4 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
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
MontyTRC89
f3bb956927 First EXE build successfully 2020-04-24 19:15:05 +02: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
33d3f4cf65 Code cleaning 2020-01-08 18:26:29 +01:00
asasas9500
5386c04d5d Add mgLOS() 2019-12-28 15:19:33 -03: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
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
MontyTRC89
9540cdab3e Decompiled TestBoundsCollide and CreatureCollision 2019-12-07 09:51:50 +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
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
44499dbe1a Add WorkerShotgun
- decompiled CreatureTurn() (experimental)
2019-11-21 11:29:54 +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
72710cb993 Decompiled guide 2018-11-30 20:18:17 +01:00
MontyTRC89
153bbda34c Decompiled lot of code about weapons, need to fix and test; Implementing harpoon gun, grenade launcher, rocket launcher; 2018-11-01 22:45:59 +01:00
MontyTRC89
2524cb8d35 Added CreatureVault; Fixed baddy climbing down; Code refactoring; 2018-09-14 14:56:27 +02:00
MontyTRC89
6365a64c8f Implemented basic baddy 1 & 2 2018-09-12 20:37:37 +02:00
MontyTRC89
6a9b90c0a8 Started implementing new enemies; Fixed bones in shader; Added small scorpion and wild boar from TR4; 2018-09-08 18:44:18 +02:00
MontyTRC89
e6114af969 First commit 2018-08-19 09:46:58 +02:00