You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
125
125
126
126
-`Scene` Lua functions `AddNavigatableArea(areaName)` and `ClearNavigatableAreas()` have been renamed/corrected to `AddNavigableArea(areaName)` and `ClearNavigableAreas()`, respectively.
127
127
128
+
-`MOSRotating` Lua function `AddWound` now additionally accepts the format `MOSRotating:AddWound(AEmitter* woundToAdd, const Vector& parentOffsetToSet, bool checkGibWoundLimit, bool isEntryWound, bool isExitWound)`, allowing modders to specify added wounds as entry- or exit wounds, for the purpose of not playing multiple burst sounds on the same frame. These new arguments are optional.
// Find and detach an attachable near the new wound before gibbing the object itself. TODO: Perhaps move this to Actor, since it's more relevant there?
/// Removes the specified number of wounds from this MOSRotating, and returns damage caused by these removed wounds.
420
426
/// Includes any Attachables (and their Attachables, etc.) that have a positive damage multiplier.
421
427
/// @param numberOfWoundsToRemove The number of wounds that should be removed.
@@ -540,8 +546,10 @@ namespace RTE {
540
546
Vector m_RecoilOffset;
541
547
// The list of wound AEmitters currently attached to this MOSRotating, and owned here as well.
542
548
std::vector<AEmitter*> m_Wounds;
543
-
// Whether we added a wound with a BurstSound this frame or not, so we can disable further ones to avoid audio spam.
544
-
bool m_WoundBurstSoundPlayedThisFrame;
549
+
// Whether we added an entry wound with a BurstSound this frame or not, so we can disable further ones to avoid audio spam.
550
+
bool m_EntryWoundBurstSoundPlayedThisFrame;
551
+
// Whether we added an exit wound with a BurstSound this frame or not.
552
+
bool m_ExitWoundBurstSoundPlayedThisFrame;
545
553
// The list of Attachables currently attached and Owned by this.
546
554
std::list<Attachable*> m_Attachables;
547
555
std::unordered_set<unsignedlong> m_ReferenceHardcodedAttachableUniqueIDs; //!< An unordered set is filled with the Unique IDs of all of the reference object's hardcoded Attachables when using the copy Create.
0 commit comments