Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 43e88fb

Browse files
committed
Added lua access to Box::IntersectsBox
Removed AddSample support in sound container Updated changelog to account for fmod changes
1 parent b89b59d commit 43e88fb

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
## [Unreleased]
88
### Added
99

10+
- Lua binding for Box::IntersectsBox(otherBox), that returns true if 2 boxes intersect.
11+
1012
### Changed
1113

14+
- Upgraded to new, modern FMOD audio library. Sounds now play in 3D space, so they pan to the left and right, and attenuate automatically based on the player's viewpoint. ([Issue #72](https://github.com/cortex-command-community/Cortex-Command-Community-Project-Source/issues/72))
15+
- Sounds have been renamed to SoundContainers, and are able to handle multiple sounds playing at once. INI definitions have changed accordingly. They must be added using `... = SoundContainer`, and individual sounds for them must be added using `AddSound = ContentFile...`
16+
- Various lua bindings around audio have been upgraded, changed or fixed, giving modders a lot more control over sounds. See documentation for more details.
17+
1218
### Removed
1319

1420
### Fixed
1521

1622
- Explosives (and other thrown devices) will no longer reset their explosion triggering timer when they're picked up. ([Issue #71](https://github.com/cortex-command-community/Cortex-Command-Community-Project-Source/issues/71))
23+
1724
- Sprite Animation Mode ALWAYSPINGPONG now works properly. Sprite animation has also been moved to MOSprite instead of MOSRotating, they they'll be able to properly animate now. ([Issue#77](https://github.com/cortex-command-community/Cortex-Command-Community-Project-Source/issues/77))
1825

1926
## [0.0.1.0] - 2020-01-27

Entities/SoundContainer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace RTE {
4343
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4444

4545
int SoundContainer::ReadProperty(std::string propName, Reader &reader) {
46-
if (propName == "AddSample" || propName == "AddSound") {
46+
if (propName == "AddSound") {
4747
ContentFile newFile;
4848
reader >> newFile;
4949
FMOD::Sound *pNewSample = newFile.GetAsSample();

Managers/LuaMan.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,8 @@ int LuaMan::Create()
519519
.def("IsWithinBoxY", &Box::IsWithinBoxY)
520520
.def("GetWithinBoxX", &Box::GetWithinBoxX)
521521
.def("GetWithinBoxY", &Box::GetWithinBoxY)
522-
.def("GetWithinBox", &Box::GetWithinBox),
522+
.def("GetWithinBox", &Box::GetWithinBox)
523+
.def("IntersectsBox", &Box::IntersectsBox),
523524

524525
class_<Scene::Area>("Area")
525526
.def(constructor<>())

0 commit comments

Comments
 (0)