Skip to content

Commit

Permalink
remove fnc_say3d.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
OverlordZorn committed Jan 5, 2025
1 parent 9a7f879 commit 82bb067
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 52 deletions.
2 changes: 0 additions & 2 deletions addons/wardrobe/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ PREP(getCfgDataRandom);
// Debug
PREP(getAllWardrobeItems);
PREP(compare_container_maxLoad);
// Effects
PREP(say3d); // TO BE DELETED ONCE https://github.com/acemod/ACE3/pull/10619 has merged
// CBA Context Menu
PREP(enable_contextMenu);
PREP(addCM_nextvariant);
Expand Down
16 changes: 15 additions & 1 deletion addons/wardrobe/XEH_postInit.sqf
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
#include "script_component.hpp"

[ QGVAR(EH_say3d), FUNC(say3d) ] call CBA_fnc_addEventHandler; // TO BE DELETED ONCE https://github.com/acemod/ACE3/pull/10619 has merged
[ QGVAR(EH_updateMagIDs), FUNC(spareBarrel_updateMagIDs) ] call CBA_fnc_addEventHandler;

[
QGVAR(EH_say3d),
{
params [["_source", objNull, [objNull]],["_sound",[""],["", []]]];
if (_sound isEqualType [] && {_sound#0 == ""} || {_sound isEqualType "" && {_sound == ""}}) exitWith {};
_sound params [
"_className",
["_distance", 50, [0]],
["_pitch", 0.95 + random 0.1, [0]]
];
_source say3D [_className, _distance, _pitch, _isSpeech, _offSet, _simSpeedOfSound];
nil
}
] call CBA_fnc_addEventHandler;
49 changes: 0 additions & 49 deletions addons/wardrobe/functions/fnc_say3d.sqf

This file was deleted.

0 comments on commit 82bb067

Please sign in to comment.