Commit graph

15 commits

Author SHA1 Message Date
Sezz
c714716f8d Convert ZoneType enum to enum class 2022-08-21 20:06:32 +10:00
Sezz
658498d17b Move TR1 creatures into more appropriate namespace 2022-08-21 15:17:57 +10:00
Lwmte
ef95932907 Revert winged mummy HP 2022-08-16 10:54:37 +03:00
Sezz
d8f45dfff0 Formatting 2022-08-15 14:37:11 +10:00
TokyoSU
8f72a81086 Refactored TR1_BIG_RAT and TR2_RAT
- Fixed ZONE_APE not initialised.
- Fixed TR1_BigRat and TR2_Rat.
- Small refactor on lot.cpp
- Small refactor on tr1_objects.cpp
2022-08-10 17:48:56 +02:00
TokyoSU
8584bbae55 Finished implementing winged mutant
- Fixed the wrong argument name for CreatureEffectX() function. (damage instead of velocity).
- Refactored ControlMissile().
- Added SHARD and BOMB missile control (also natla missile too).
- Refactored harpy a bit.
2022-08-05 23:45:24 +02:00
TokyoSU
30419bd9eb Almost finished winged mutant 2022-08-05 19:23:21 +02:00
TokyoSU
ab8329969b Advanced with wing mutant code.
- Updated TargetVisible() and Targetable() using creature argument directly,
- Optimized Targetable() and TargetVisible()
- Added setBoneRotation() to ObjectInfo structure.
2022-08-05 17:32:32 +02:00
TokyoSU
fb161aab2a Added winged mutant (experimental)
- Currently doing winged mutant, not finished for now.
- Optimized entity import by removing absolute path.
2022-08-05 15:00:40 +02:00
TokyoSU
8787a4ee5a Simplified crocodile & big_scorpion
- Updated CalculateItemRotationToSurface() to take maxAngle, avoiding entities to go vertical when surface is 90°
- SetAnimation() check for animIndex first now to avoid using Objects[] array before the check
2022-08-05 13:11:18 +02:00
Lwmte
f768fd03bd Use separate shadow modes for different kinds of objects 2022-07-17 18:43:40 +03:00
Raildex
84f93608bb Cubemap shadow (#558)
* Cubemap shadow WIP
* Fade out Point Light Shadow
* Fixed SpotLight Direction and Angle

Added Fadeout at the edges of Spot Light Cone

* Using Light.Out for Spot Light Projection Matrix
* Added Experimental Blob Shadows
* Fixed Crash with too many blob shadows.

Now using the 16 nearest spheres

* Remove long unused UNIT_SHADOW
* Fix merge
* Check cast shadows flag for dynamic shadows generation
* Make shadow spheres count customizable, add "shadows: all" setting
* Fix headers
* Fix copypaste error
* Fix shader compiling
* Format code, make subfunction for blobs rendering

Co-authored-by: Raildex <n@a>
Co-authored-by: Lwmte <3331699+Lwmte@users.noreply.github.com>
2022-06-29 17:54:48 +03:00
Sezz
549958be36 Entity cleanup 2022-06-15 18:30:34 +10:00
Sezz
4f8a19868e Bugfixes sezz (#534)
* Fix #500: "Throwing the torch while running will cause it to fall behind Lara"; make flare and torch dynamics control functions more similar; cleanup

* Fix #473: "Sound: Harpoon gun does not make shoot sfx for the 4th bolt"

* Possibly fix #492: "Landing on teeth spikes from falling not working as expected (either stuck in mid-air, or wrong animation)"

* Cleanup

* Update tr4_mutant.cpp and tr4_wild_boar.cpp

* Update tr4_sphinx.cpp

* Fix typo

* Fix torches and flares sliding around too much

* Tweak minimum jump splat speed

* Restore snap to height upon starting a slide

* Possibly fix minecart dismounts

* Fix merge error

* Simplified translation (#520)

* Simplify translation of items and vectors
* Update lara_one_gun.cpp
* Restore comments
* Reorder functions
* Restore a GetCollision() overload
* Rename stuff and upset everyone
* Rename many, many, many variables
* Add TranslateVector() overloads
* Simplify
* Update translation functions
* Rename
* Update trmath.cpp
* Fix typo
* Update trmath.cpp

Co-authored-by: Lwmte <3331699+Lwmte@users.noreply.github.com>

* Use GetLaraInfo(); cleanup

* Minor flame_emitters.cpp cleanup

* Fix object ID error and convert to switch case

* Fix edge case of skewed movement angle on slopes; cleanup

* Prevent crouch roll while using binoculars

* TouchBits cleanup

* TR4 entity cleanup

* TR4 entity cleanup

* Partially fill out enums in tr4_skeleton.cpp; cleanup

* TouchJoints cleanup

Co-authored-by: Lwmte <3331699+Lwmte@users.noreply.github.com>
2022-06-12 22:13:45 +10:00
MontyTRC89
f1e7c6fbfc All files under the same project; Renamed TR5Main to TombEngine; Cleaned repository; 2022-05-08 06:52:04 +02:00
Renamed from TR5Main/Objects/TR1/tr1_objects.cpp (Browse further)