Commit graph

8102 commits

Author SHA1 Message Date
Jakub
0e7c07a496
Update Changes.txt 2023-10-20 10:02:43 +01:00
Jakub
6427208b5b
Update Changes.txt 2023-10-20 10:02:08 +01:00
Lwmte
0cc9312a20
Split misc namespace (#1233)
* Add Sound module

Add Sound module for sound management. Removed LDoc comments from Misc module for sound management functions. Moved the SoundTrackTypes.h file to the folder "\TombEngine\Scripting\Internal\TEN\Misc\SoundTrackTy

* Update SoundHandler.cpp

tableMisc variable renamed to tableSound

* remove functions for audio management from Misc

remove functions for audio management from Misc

* Add StopSound() function

Add StopSound(int) function

* Prevent stack overflow issue

* Update SoundHandler.cpp

* Split remaining Misc functions into modules

* moved LDoc comments above the respective functions

moved LDoc comments above the respective functions

* Fixed References to Sound.SoundTrackType

Fixed References to Sound.SoundTrackType

* Fix merge

* Minor formatting

* Minor formatting

* Move GetDisplayPosition() to Util namespace

* Fix error

---------

Co-authored-by: davidmarr <116632612+davidmarr@users.noreply.github.com>
Co-authored-by: Sezz <sezzary@outlook.com>
2023-10-20 09:53:59 +01:00
Sezz
9ec6399ea2 Handle None sound state 2023-10-20 19:34:07 +11:00
MontyTRC89
db09265620 Fixed double drawing of additive faces 2023-10-20 05:37:20 +02:00
Sezz
a9ba61c815 Comments, formatting 2023-10-20 12:51:39 +11:00
Sezz
cac68a00d2 Cleanup 2023-10-20 12:27:01 +11:00
Sezz
cededde40e Formatting, use references, cleanup 2023-10-20 12:20:39 +11:00
Adngel
c11217d52f Fix constant sound bug.
If it's default case, it can also be due to the SoundState::None where no sound should play.
2023-10-20 02:26:17 +02:00
Kubsy
5e7cdc51d8 Merge branch 'develop' into renderer 2023-10-19 10:37:06 +01:00
MontyTRC89
f5284a1c18 Fixed vertex effects for statics 2023-10-18 20:32:26 +02:00
Kubsy
fd49676607 properly register lock funcs 2023-10-16 22:02:24 +01:00
Sezz
be2ff99a38 Use sol::nullopt 2023-10-16 20:54:04 +11:00
davidmarr
8c6f8dcd07
add lua function GetDisplayPosition() (#1210)
* add lua function Get2DPosition()

* Update Miscellaneous.cpp

* Have Get2DPosition() return an optional

* update Get2dPosition fuction

Conversion from Vec3 to Vector3

* Update ReservedScriptNames.h

* Update Miscellaneous.cpp

* Update Miscellaneous.cpp

* Update Miscellaneous.cpp

---------

Co-authored-by: Sezz <sezzary@outlook.com>
2023-10-16 20:50:50 +11:00
Jakub
db89151ac5
Update Changes.txt 2023-10-16 10:47:08 +01:00
Sezz
5284c9695b
Vec3 and Vec2 scripting object refactor (#1191)
* Upgrade Vec3

* Use parentheses

* Partial merge error fix

* Fix compile error

* Change casting to be compliant with standards

* Minor changes

* Implement various Vec3 methods

* Add static variants of methods

* Fix compilation error

* Remove fake static methods; update doc comments

* Update method names

* Update doc comment

* Rename ToLength() to SetLength()

* Simplify Vec3 API

* Remove methods

* Remove method

* Reorder methods

* Update doc comment

* Update doc comments

* Update doc comment

* Reorder methods

* Add comment

* Move doc comments

* Maybe fix * overloads; remove SetLength()

* Reorder methods

* Maybe fix overloads

* Update method names

* Add Vec2 methods

* Newline

* Add constructors

* Update doc comments

* Update doc comments

* Update Vec3.cpp

* Handle division by 0

---------

Co-authored-by: hispidence <squidshirehimself@gmail.com>
Co-authored-by: Adngel <adngel@hotmail.com>
2023-10-16 10:44:08 +01:00
Sezz
fa72550abd Organise data 2023-10-16 12:18:37 +11:00
Sezz
f22cf73cb1 Update crumblingPlatform.cpp 2023-10-15 23:28:48 +11:00
Adngel
4cc6de81a8 Fix Crumbling Platform, warning error. 2023-10-14 16:57:07 +02:00
Sezz
73b5c4a0f5 Refactoring 2023-10-13 19:28:56 +11:00
Sezz
f94432e1ea Update TombEngine.vcxproj 2023-10-13 13:09:49 +11:00
Sezz
369cc3c079 Rename files 2023-10-13 12:53:27 +11:00
Sezz
2b6ae8b9ae Merge branch 'develop' into Adngel-pushables-remake 2023-10-13 12:52:00 +11:00
Sezz
b4afe2d4ea
Update Changes.txt 2023-10-13 12:21:20 +11:00
Sezz
e48a174453
Update Changes.txt 2023-10-13 12:19:58 +11:00
Sezz
4722d5c6ef Update parameter order 2023-10-12 21:00:06 +11:00
Sezz
95f3838584 Update parameter names 2023-10-12 20:52:35 +11:00
Sezz
dd3dea5ef5 Add sprint slide state 2023-10-12 20:50:41 +11:00
Jakub
445b096d7c
Merge pull request #1209 from MontyTRC89/sezz_target_highlighter
Target highlighter
2023-10-12 10:39:37 +01:00
Sezz
341fd554e0 Reduce scale 2023-10-12 20:36:44 +11:00
Sezz
61cb8cc83a Update TargetHighlighter.cpp 2023-10-12 20:18:13 +11:00
Sezz
0751d0c75e Update TargetHighlighter.cpp 2023-10-12 20:17:51 +11:00
Sezz
cd0a0cb1f3 Tabs 2023-10-12 20:15:59 +11:00
Sezz
60c3e098e1 Register crosshair sprite object in Lua table 2023-10-12 20:03:59 +11:00
Sezz
f0b30b4ffe Merge branch 'develop' into sezz_target_highlighter 2023-10-12 19:55:45 +11:00
Sezz
2def69633f Add parentheses 2023-10-12 19:55:30 +11:00
Sezz
876e32f2cc Fix scaling 2023-10-12 19:54:26 +11:00
Jakub
3b6e84eab5
Merge pull request #1208 from MontyTRC89/renderer
Batching + Lua function for display sprites
2023-10-12 09:46:18 +01:00
Sezz
e0787a0474 Merge branch 'renderer' into sezz_target_highlighter 2023-10-12 19:13:17 +11:00
Sezz
ad57a4475c Remove deprecated string 2023-10-12 19:09:21 +11:00
Sezz
569a9d4a00 Remove debug code 2023-10-12 19:01:46 +11:00
Sezz
7f84d4e479 Abandon GetSize() for now 2023-10-12 18:58:30 +11:00
Sezz
b877b5692a Use references; initialise behaviour states statically; cleanup 2023-10-12 17:22:49 +11:00
Sezz
db381c6c4c Update Renderer11Draw2D.cpp 2023-10-12 15:41:01 +11:00
Sezz
5a10b1b06f Fix stretch scaling 2023-10-12 15:37:24 +11:00
Sezz
a12e1ea7fe Prototype GetSize() 2023-10-11 18:23:38 +11:00
Sezz
30fdba5968 Fix offset 2023-10-10 19:42:28 +11:00
Sezz
5ab90ee662 Fix aspect correction 2023-10-10 19:25:44 +11:00
Lwmte
4e452378ec Fix regeneration of non-ammo pickups with OCB 128 2023-10-09 22:56:08 +02:00
Sezz
22b84c95aa Revert beetle refactor 2023-10-09 18:44:04 +11:00