Commit graph

94 commits

Author SHA1 Message Date
Lwmte
b68b08ade1 Add GetRoom script function for all related object types 2022-12-25 12:42:54 +02:00
Lwmte
e6f51fab3c Rename all get/set room script methods 2022-12-25 03:50:01 +02:00
Lwmte
5d94e71520 Merge branch 'master' into room_scripting 2022-12-17 03:21:15 +02:00
Lwmte
0ce6d12f97 Add room properties to savegame, fixes 2022-12-17 01:25:37 +02:00
Lwmte
8d8f77b98b Update MoveableObject.cpp 2022-12-16 20:10:24 +02:00
hispidence
1afcfac55b Fix doc comments 2022-12-16 18:36:21 +00:00
Lwmte
8af424dd3f Fix doc comment 2022-12-16 19:14:00 +02:00
Lwmte
4df08c1a1b Fix issues with fractional script rotations 2022-12-14 01:26:43 +02:00
Sezz
2b6cf98f04 Make angle functions constexpr; remove duplicate function 2022-12-12 18:59:40 +11:00
hispidence
80aca7572d Doc fixes 2022-12-11 18:37:06 +00:00
Lwmte
e1165360f0 Force predictive room update if UpdateRoom param is true for SetPosition 2022-12-10 20:39:36 +02:00
Lwmte
f77a39ee2c Fix linked list corruption 2022-12-07 00:48:31 +02:00
Lwmte
015bd844f9 Implement predictive room change for SetPosition, fix buggy IsPointInRoom 2022-12-06 14:27:38 +02:00
Anatoly
b7dc44129a
Lua additions for 1.0.4 (#881)
* Add GetTarget / GetVehicle
* Activate Lara-bound volumes with mounted vehicle
* Add ActionID enum to be used with KeyIsHeld etc
* Update Changes.txt
* Fix typo
* Remove unused include
* Allow to explode / shatter mounted vehicles
* Move vehicle handling to more appropriate place
* Update lara_helpers.cpp
* Update Changes.txt
* Add warning if velocity is attempted to be set on creature
2022-12-03 14:46:37 +02:00
hispidence
e91e254c3c Doc comment fixes. 2022-12-01 21:16:44 +00:00
Lwmte
7e9fb02b6c Cleanups, fixes and renames 2022-11-30 01:31:04 +02:00
Nemoel-Tomo
9eafbdc1aa latest changes 2022-11-30 00:57:25 +01:00
Nemoel-Tomo
ab64f466ff fixed commit 2022-11-29 17:00:16 +01:00
Nemoel-Tomo
1959d62294 fixed code stuff and flame_emitters.cpp
I removed my additional code in BurnNearbyItems function, so now Lara can run into flameemitter with any other burn status and get fire burn status back
2022-11-27 14:26:00 +01:00
Nemoel-Tomo
c156f45a63 fixed shockwave stuff and made effect lightning as int 2022-11-27 13:34:04 +01:00
Nemoel-Tomo
27c42733cf SETHa-Fix, new Effects, custom burn types
Moveable:SetCustomEffect( effectType, color1, color2, timeout)
New effects: MagicFire, ColoredFire

new effects for SetEffect(effectType, timeout)
New effects: ElectricDeath, LaserDeath

Seth Fix

TODO: someone must add
EntityEffectData.EffectColor1
EntityEffectData.EffectColor2
to savegame data
2022-11-25 01:45:29 +01:00
Anatoly
53ce6192b9
Universal burn (#858)
* Initial Commit
* Fixes
* Process burn for Lara
* Save burn type in savegames
* Generalize burning effects into Effects::Items namespace
* Use flame types instead of ints, beautify item flame effect
* Add missing changes
* Add timeouts, adjust NPC burn speed
* Update TombEngine.vcxproj
* Reorganize AnimateItem to place ProcessSectorFlags there
* Implement real electric sparks
* Don't check for item burning on every frame
* Correct flame emitter size
* Add script function to set moveable effect
* Tune up sparkles
* Occasionally burn enemies on explosive damage
* Update TombEngine.vcxproj
* Add timeouts to effect script functions
* Cleanup
* Update Changes.txt
* Rename effect enums
* Change SetEffect timeout to -1 by default
2022-11-22 19:16:35 +02:00
Lwmte
577827846f Also reset model when object ID is changed via script 2022-11-20 04:51:09 +02:00
hispidence
9fef88ded3 Update object lists and documentation. 2022-11-18 15:34:45 +00:00
Nemoel-Tomo
1201bfa92a
lua-functions-moved-to-lara-class (#853)
* lua-functions-moved-to-lara-class

"AttachObjCamera"
"ResetObjCamera"
"UndrawWeapons"
"ThrowAwayTorch"
"GetLaraHandStatus"
"GetLaraWeaponType"
"SetLaraWeaponType"
"AnimFromObject"

* Small fix for documentation comments
* fixed formatting errors
* fixed Obj active check with AttachObjCamera
* Simplify MoveObjCamera code a bit

Co-authored-by: Lwmte <3331699+Lwmte@users.noreply.github.com>
2022-11-18 00:21:59 +02:00
Anatoly
5812fc7d45
Merge pull request #840 from MontyTRC89/lua_1.0.3
Lua 1.0.3
2022-11-14 18:02:55 +02:00
Lwmte
c25e48f197 Fix 2 potential cases of wrong room assignment on SetPosition anim/script commands 2022-11-14 16:37:24 +02:00
hispidence
a8be0d667d Merge remote-tracking branch 'origin/master' into lua_1.0.3 2022-11-13 12:30:56 +00:00
Anatoly
ad719fdf30
Simple Lua callback refactor (#829) 2022-11-13 02:46:12 +02:00
hispidence
a56f7af06d Fix documentation, regen docs, bump version. 2022-11-11 21:03:55 +00:00
hispidence
a1fe36f7a3 Add LaraObject, update docs. 2022-11-11 19:43:28 +00:00
Anatoly
827416f887
Meshswap refactor (#828)
* Work
* Fix TestMeshSwapFlags
* Rename callbacks
* Revert unrelated changes
* Update items.h
2022-11-11 14:47:20 +02:00
hispidence
5a0a645427 Merge remote-tracking branch 'origin/master' into lua_1.0.3 2022-11-02 19:24:14 +00:00
Sezz
75b36d8f0f Merge branch 'master' into math 2022-10-24 15:17:46 +11:00
Sezz
30ea899ee7
Bit field class (#736)
* Prototype BitField class

* Use vector<bool> instead

* Rename; add Fill() private method; organise

* Fix comments

* Fix off by 1 errors

* Fix more off by 1 errors

* Resize in constructor

* Use const parameters where necessary

* Tentatively add typedefs to framework.h

* Don't make copies of vectors

* Rename

* Update BitField class

* Update BitField class

* Update BitField operator

* Add TestAny() method

* Update BitField class

* Add |= and & operators for compatibility

* Add return value

* Add comment

* Rename; make method const

* Update framework.h

* Remove duplicate method

* Optimise

* Optimise; add operators

* Add converter methods

* Update BitField class

* Add GetCount() method

* Adopt BitField class usage

* Fix BitField errors

* Fix wrong type in loops

* Make BitField methods and operators const where possible

* Fix ToString() method

* Fix BitSet comparison operators

* Simplify

* Set default

* Set defaults

* Add warnings to BitField

* Reformat local variable

* Add warning

* Add comments

* Remove TestNone()
2022-10-24 14:15:42 +11:00
hispidence
a1c84ad0e6 Unclamp SetHP, update docs. 2022-09-20 19:44:40 +01:00
Sezz
04994a1141 Merge branch 'master' into math 2022-09-17 17:49:21 +10:00
Lwmte
477dae2d08 Get/set velocity script functions 2022-09-15 03:29:38 +03:00
Sezz
418ec7f061 Merge branch 'master' into math 2022-09-12 22:27:37 +10:00
Sezz
3ca39b60e4 Fully adopt new GetJointPosition() 2022-09-10 15:13:16 +10:00
Sezz
db14ac8467 Partially adopt new GetJointPosition() 2022-09-09 20:22:38 +10:00
Sezz
dcfd791086 Sort out phd_global.h and trmath.h includes 2022-09-07 13:05:53 +10:00
hispidence
a30ec88d3f Improve SetOnCollidedWithObject, SetOnCollidedWithRoom, SetOnHit and SetOnKilled to use LevelFuncs. Removed Getters for these for now as it's not really trivial to decide what useful thing they will return. 2022-09-06 21:31:04 +01:00
hispidence
418ab7e8b1 Improve documentation, fix ExecuteFunction behaviour 2022-09-06 21:28:44 +01:00
Sezz
8745f11b82 Rename Vector3Int to Vector3i 2022-09-06 21:14:10 +10:00
hispidence
e16a98a8aa Merge branch 'master' into lua_1.0.2 2022-09-03 16:54:42 +01:00
hispidence
e6319ee18a Update docs 2022-08-26 00:13:02 +01:00
hispidence
dad4ac26f9 Part 2 of fixing #671 2022-08-25 22:52:54 +01:00
hispidence
b9a0e692af Part 1 of hopefully fixing #671. 2022-08-25 21:28:59 +01:00
hispidence
0a630c8e52 Remove New to finally hopefully kill the new/New discourse (the correct way is to use neither) 2022-08-24 23:30:23 +01:00