90 if (connectorDirection.HasValue) {
111 m_playAllowedTime = SubsystemElectricity.SubsystemTime.GameTime + 0.079999998211860657;
115 if (text ==
"Drums") {
119 text2 = $
"Audio/SoundGenerator/Drums{m_drums[num]}";
122 else if (!
string.IsNullOrEmpty(text)) {
123 float num6 = 130.8125f * MathF.Pow(1.05946314f, num + 12 * num3);
126 float num8 = num6 / (523.25f * MathF.Pow(2f, i - 5));
128 || (num8 >= 0.5f && num8 < num5)) {
133 text2 = $
"Audio/SoundGenerator/{text}C{num7}";
136 && !
string.IsNullOrEmpty(text2)) {
138 Vector3 position =
new(cellFace.
X, cellFace.
Y, cellFace.
Z);
139 float volume = num2 / 15f;
140 float pitch = Math.
Clamp(MathF.Log(num5) / MathF.Log(2f), -1f, 1f);
141 float minDistance = 0.5f + 5f * num2 / 15f;
143 float loudness = num2 < 8 ? 0.25f : 0.5f;
149 Vector3 hsv =
new(22.5f * num +
m_random.Float(0f, 22f), 0.5f + num2 / 30f, 1f);