Commit graph

43 commits

Author SHA1 Message Date
hispidence
21a867e821 Remove 'typedef' from enums and structs. This was required in C, but in C++ all it does is generate thousands of warnings. 2021-07-18 15:22:15 +01:00
MontyTRC89
976ce7a316 Fixed SameZone(); Adding picking to Baddy 1-2; 2021-04-16 10:13:59 +02:00
MontyTRC89
bc84a2bf03 Temporary fixes to AI; Decompiling energy arcs WIP; 2021-04-13 06:08:33 +02:00
asasas9500
d4c6cc4a97 Fix line endings 2020-12-21 13:16:29 -03:00
asasas9500
5bed19f999 Remove W2V_SHIFT, W2V_SCALE, WALL_SHIFT and NODE_SHIFT 2020-10-14 20:53:59 -03:00
Montagna Marco
82af97c8cc Fixed enemy monkey; Added new zone for ID_VON_CROY; Small AI fixes; Added 3 blocks jump; 2020-09-01 07:06:31 +02:00
Montagna Marco
18994dd59e Moving all globals of level under LEVEL struct; Fixed severe performance issue; 2020-07-21 09:56:47 +02:00
Montagna Marco
9f373c691a Pathfinding refactoring 2020-07-11 21:16:04 +02:00
Montagna Marco
439db540e3 New level format: meshes 2020-07-03 07:05:33 +02:00
Nils Gaitzsch
232458472b resolving namespace std conflicts 2020-06-18 15:54:08 +02:00
TokyoSU
a571c397b9 Fix for Crocodile
- Updated ZONE_NULL in case it's not updated to ZONE_BASIC...
2020-06-14 08:45:45 +02:00
TokyoSU
3699a78e34 Implemented Mutant and Locusts
- Added ItemNearTarget().
2020-06-10 21:38:25 +02:00
TokyoSU
5c719db003 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
b19c71fd36 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
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
Montagna Marco
85e462f6a2 First EXE build successfully 2020-04-24 19:15:05 +02: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
b9814aef33 Code cleaning 2020-01-08 18:26:29 +01:00
asasas9500
365fb3ccc7 Add mgLOS() 2019-12-28 15:19:33 -03:00
asasas9500
ee477e356c Fix guard; Add LOS functions 2019-12-27 23:54:40 -03:00
Montagna Marco
1b1b58be44 Fixed references to doors; Added TR3 style pushable blocks; Added InitialiseTightRope; 2019-12-23 23:10:24 +01:00
TokyoSU
177a9c9197 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
082bbebe2a 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
Montagna Marco
a3fc31a61b Decompiled TestBoundsCollide and CreatureCollision 2019-12-07 09:51:50 +01:00
TokyoSU
3670fddc71 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
dc888f2c9c [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
568fedaf58 Add WorkerShotgun
- decompiled CreatureTurn() (experimental)
2019-11-21 11:29:54 +01:00
Montagna Marco
bfcb4a8920 Decompiled SWITCH.CPP; Decompiled DOOR.CPP; Refactoring; Fixed sequences variables; 2019-11-09 09:56:33 +01:00
Montagna Marco
316d945d44 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
Montagna Marco
6e63fc5f4b Tested and fixed CreatureMood, GetCreatureMood, AlertNearbyGUards, AlertAllGuards; 2019-11-03 21:57:57 +01:00
Montagna Marco
a2f19eca1d Fixed and tested CreatureActive, CreatureAIInfo, CreatureCreature, MoveCreature3DPos; 2019-11-03 14:58:26 +01:00
Montagna Marco
d538285f5b Tested and fixed CreatureTilt and CreatureJoint 2019-11-03 08:24:53 +01:00
Montagna Marco
9432b6869d 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