Commit graph

121 commits

Author SHA1 Message Date
Lwmte
5350a55af1 Add bounds check for ShatterMesh 2022-07-12 11:28:23 +03:00
Lwmte
12314f8b3f Add Shatter and ShatterMesh methods for moveables, don't crash on GetMoveableByName not getting item 2022-07-12 10:55:35 +03:00
Lwmte
9d98d6f399 Fix merge 2022-07-12 01:28:57 +03:00
Lwmte
8d51228f2f Merge branch 'ten_beta' into lua_funcs 2022-07-12 00:00:45 +03:00
Lwmte
63fe3f0cc3 Save static and moveable colors in savegames 2022-07-11 21:10:41 +03:00
Lwmte
ab423277c7 Update MoveableObject.cpp 2022-07-10 14:37:40 +03:00
Lwmte
53104ff0d3 Update MoveableObject.cpp 2022-07-10 14:35:26 +03:00
Lwmte
22efcc8b72 Use separate funcs for meshswap/unswap, provide additional args 2022-07-09 17:18:55 +03:00
Lwmte
cbe4fe3ec3 Add GetState/SetState, meshswap/visibility funcs, correctly use SetAnim 2022-07-09 14:17:07 +03:00
Lwmte
cfe703b151 Add Explode method for script item 2022-07-07 16:07:13 +03:00
Lwmte
89ee7dd0fe Add GetJointPosition method for moveables 2022-07-06 09:42:39 +03:00
Lwmte
216f29530d Fix incorrect assignment 2022-07-05 23:40:18 +03:00
Lwmte
82132ae405 Implement FindRoomNumber and use it elsewhere 2022-07-05 23:25:42 +03:00
Lwmte
230dac03ca Remove some extremely old comments, rename function for consistency 2022-06-27 22:35:29 +03:00
Lwmte
8ef2351a7c Bugfixes (tier 2) (#539)
* Use spiky gunflash for MP5 if available

* Make order to Test/Touch/Mesh bits in ItemInfo and convert all to uint64 properly

* Fix TR4 sentry gun using wrong rotations after wad conversion

* Fix find and replace error

* Convert ExplodingDeath to also use all 64-bit range

* Fix stack overflow due to strange compiler quirks

* Fix gunflashes for TR4 enemies

* Reorganize sound condition checking to finally resolve all problems

* Remove weird sound play condition casts

* Update ten_savegame.fbs

* Update ten_savegame_generated.h

* Convert meshbits back to 32 bit

* Update Renderer11DrawEffect.cpp

* Enable multiple blend modes for particles, add poisoned particles support

* Reduce max poison potency

* Add debug box output for pathfinding

* Properly clean and restore game and level statistics

* Fix wrong condition in keyhole collision check which led to infinite inventory call

* Fix keyholes again

* Save particles in savegames

* Update tomb4fx.h

* Clean up particle code, save quadbike info in savegames

* Save UPV info in savegames

* Allow quadbike to ride through shallow water

* Update quad.cpp

* Make slowdown dependent on water depth

* Fix epic bug with calculating water depth

* Clean up quadbike water code

* Remove incorrect debug box drawing

* Tidy up current iteration of joint bit helpers

* Customize drag for water and quicksand separately

* Use auto* instead of auto to make code more readable

* Add quadbike hack for ending up in shallow underwater caverns

Co-authored-by: Sezz
2022-06-12 22:01:24 +10:00
Sezz
abc3f2e685 Update tr4_big_scorpion.cpp; name formatting cleanup 2022-05-26 18:44:53 +10:00
hispidence
eb7fad31f3 Fix, update, and regenerate docs. 2022-05-23 21:27:05 +01:00
Sezz
546ab522ca Rename baddie back to baddy 2022-05-14 13:45:21 +10:00
hispidence
ad5a578f9f Set activation mask in Moveable::EnableItem() and switch it off in Moveable::DisableItem(). Fix a crash. 2022-05-13 13:51:36 +01:00
hispidence
fdca3dd6a7 Remove TEN_OPTIONAL_LUA stuff 2022-05-12 22:05:54 +01:00
hispidence
e678d2f64b Move Scripting files so interface and internal files are separated again.
(cherry picked from commit 6f542dde7337ddc633a20537af2e719320dc7ac4)
2022-05-12 21:15:43 +01:00
Renamed from TombEngine/Scripting/TEN/Objects/Moveable/MoveableObject.cpp (Browse further)