Commit graph

52 commits

Author SHA1 Message Date
TokyoSU
9cf30f3546 Fix potential collision override
- Fixed "COLL_INFO coll" global that can collide with internal coll info in lara animation or other object.
2020-06-04 11:03:30 +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
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
46f2db3481 Merged LARA_INFO and LaraExtraInfo into LaraInfo 2020-04-27 14:01:00 +02:00
Montagna Marco
7293b0e203 Refactored math code and spheres 2020-04-27 06:33:42 +02:00
Montagna Marco
8a02a323b1 Partially fixed spheres; Fixed swap meshes; partially fixed Lara firing; 2020-04-26 10:55:33 +02:00
Montagna Marco
20bd242052 Started math refactoring 2020-04-25 16:23:53 +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
32bafa9893 PHD Math removal 1 2020-04-20 14:17:01 +02:00
Montagna Marco
6ec5f2c97b Fixed last commit; Rewritten phd_RotBoundingBoxNoPersp(); 2020-04-17 07:00:47 +02:00
Montagna Marco
1ebf4a5229 Fixed chase camera; Moved Camera in DLL; 2020-04-12 06:50:43 +02:00
Montagna Marco
3f35e4de4f Refactoring 1 2020-04-01 13:09:14 +02:00
asasas9500
ed12194a59 Uncomment ExplodeItemNode(); Remove duplicated GetClimbTrigger(); Fix LaraHangLeftCornerTest(), LaraHangRightCornerTest() and TestLaraVault(); Correct ANIM_FRAME struct definition 2020-03-27 19:27:21 -03:00
Montagna Marco
b466684cd3 Decompiled missile functions; Moved Meshes[] to DLL; Refactoring; 2020-03-16 12:36:29 +01:00
Montagna Marco
bd199af075 Refactoring; Added all sounds from all TR; Removed trash legacy functions for skinning and meshes processing; New skinning procedure, without fixed arrays; Code cleaning; Decompiled LoadSamples; Dynamic size sound map; 2020-03-02 09:49:11 +01:00
asasas9500
68daee7d6a Place function markers; Remove collision from ID_ANIMATING13, ID_ANIMATING14, ID_ANIMATING15 and ID_ANIMATING16 2020-01-27 00:13:39 -03:00
asasas9500
c00c8750cb Replace NormalizeVector() with NormaliseRopeVector(); Fix Lara functions 2020-01-25 23:31:26 -03:00
asasas9500
1688dd9290 Improve the fly cheat again 2020-01-24 19:16:38 -03:00
asasas9500
afed8b84e7 Improve the fly cheat 2020-01-22 13:24:41 -03:00
asasas9500
92b95f0072 Add GetLaraDeadlyBounds(); Place function markers 2020-01-21 19:27:35 -03:00
asasas9500
8930887f8a Move CurrentPendulum, ApplyVelocityToRope() and SetPendulumVelocity() to rope.cpp; Fix InitialiseRope(), PrepareRope() and NormaliseRopeVector(); Add rope functions 2020-01-21 12:22:52 -03:00
asasas9500
5e6a2278e4 Fix ropes 2020-01-15 22:26:49 -03:00
TokyoSU
3f3136f5c6 Updated Lara, Fixed Flycheat Speed
- updated GetFloorHeight() a bit.
2020-01-14 14:25:37 +01:00
TokyoSU
cd6f239e1b Update Lot and ExtraAnims 2020-01-13 13:18:55 +01:00
Montagna Marco
aa0f99cc54 Fixed flags in TrapObjects 2020-01-13 10:02:10 +01:00
Montagna Marco
ba0eaa74b7 Swapped condition for pistols and HK default weapon selection 2020-01-13 07:43:00 +01:00
Montagna Marco
ec5fb5af71 Code cleaning 2020-01-13 07:23:37 +01:00
Montagna Marco
2b97b92cea Possible fix to missing pistols 2020-01-12 10:59:23 +01:00
Montagna Marco
c69cdeee40 Fixed AiPickupCollision; Fixed setup flags of many objects; Fixed item savegames; Refactored inventory; Added InitialseShootSwitch; 2020-01-12 08:02:48 +01:00
Montagna Marco
5a2209fc6f Inventory refactoring 2020-01-10 08:02:16 +01:00
Montagna Marco
d649d062fe Decompiled AnimateItem() 2020-01-08 13:25:42 +01:00
Nils Gaitzsch
b0d2fc67ae Created Subtractive Blending state
Added Footprint struct
added Footprint rendering function
Added footprint update routine
Added AddFootprint Command effect

TODO:
Check condition for left/right foot in Command effect
2020-01-05 18:48:16 +01:00
Montagna Marco
41732b5cde Decompiled bars system and possibly fixed sniper bug; Bars are now flashing when low values; 2020-01-04 13:26:22 +01:00
TokyoSU
0cb3b7381d Swamp Flag Implementation Part 1
- fixed minimal rebuild are deprecated and turn multiprocessor compilation to flase !
- added fixedpoint library in release mode.
2019-12-29 19:10:53 +01:00
Montagna Marco
d70c84eddf Reverted flyby changes; Fixed TR5 pushables; Decompiling dog; 2019-12-27 08:25:27 +01:00
Montagna Marco
d4da6d1e1f Added TR3 style DOZY cheat 2019-12-26 07:44:01 +01:00
Montagna Marco
d5f6858a01 Decompiled EFFECTS.CPP, EFFECT2.CPP, TOMB4FX.CPP 2019-12-22 00:20:10 +01:00
Montagna Marco
5688b6d743 Fixed some water code 2019-12-12 22:06:57 +01:00
Montagna Marco
d098c0f400 Fixed GetFloor, GetChange; Disabled GetCollisionInfo (bugged); Fixed signed char in FLOOR_INFO; 2019-12-10 18:25:48 +01:00
Montagna Marco
c1206f69cc Merge branch 'master' of https://github.com/MontyTRC89/TR5Main 2019-12-04 18:54:29 +01:00
Montagna Marco
3d5f0d7b26 Added TestLaraSlide, UpdateLaraRoom, TranslateItem, AnimateLara; Fixed partially pistols; 2019-12-04 18:51:23 +01:00
TokyoSU
04e93b1998 Decompiled InitialiseHair() and InitialiseSpecialEffects()
- added macro for getting mesh: MESHES(slot, mesh).
- fixed duplicate array in vars.h.
- fixed lara left hand flare mesh.
2019-12-04 13:20:21 +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
Montagna Marco
09c2957f4f Merged branches 2019-12-02 09:11:21 +01:00
Montagna Marco
92bd6a006e Decompiled Lara (with some bugs) 2019-12-01 08:13:19 +01:00
Montagna Marco
2443494349 Decompiling Lara 2019-11-21 07:43:34 +01:00