Neue Töne, Reiter mit Anleitung, Klingen geeicht, Sprung, Vorschaubilder aus 3D
Stand von main 262a2009. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -71,6 +71,19 @@ namespace GladiatorIdle
|
||||
public static void PlayTip() => Play("sfx_tip", _wavGood, cooldownMs: 400);
|
||||
public static void PlayGoodEvent() => Play("sfx_good", _wavGood); // Probeton (Einstellungen)
|
||||
public static void PlayChapterSting() => Play("sting_chapter", _wavMilestone);
|
||||
// Duell und Oberfläche (nur mit Datei; fehlt sie, bleibt es still)
|
||||
public static void PlaySwing() => Play("sfx_swing", null, cooldownMs: 70, gain: 0.5f);
|
||||
public static void PlaySwingHeavy() => Play("sfx_swing_heavy", null, cooldownMs: 120, gain: 0.6f);
|
||||
public static void PlayWhoosh() => Play("sfx_whoosh", null, cooldownMs: 120, gain: 0.5f);
|
||||
public static void PlayLand() => Play("sfx_land", null, cooldownMs: 200, gain: 0.6f);
|
||||
public static void PlayParry() => Play("sfx_parry", null, cooldownMs: 100, gain: 0.6f);
|
||||
public static void PlayGuardBreak() => Play("sfx_guardbreak", null, cooldownMs: 150, gain: 0.6f);
|
||||
public static void PlayKo() => Play("sfx_ko", null, cooldownMs: 500, gain: 0.7f);
|
||||
public static void PlayFury() => Play("sfx_fury", null, cooldownMs: 500, gain: 0.7f);
|
||||
public static void PlayFire() => Play("sfx_fire", null, cooldownMs: 90, gain: 0.55f);
|
||||
public static void PlayStep() => Play("sfx_step", null, cooldownMs: 160, gain: 0.25f);
|
||||
public static void PlayDrawer() => Play("sfx_drawer", null, cooldownMs: 150, gain: 0.45f);
|
||||
public static void PlayEquip() => Play("sfx_equip", null, cooldownMs: 120, gain: 0.5f);
|
||||
|
||||
// ── Erzählstimme (Intro) ─────────────────────────────────────
|
||||
// Eigene Spur: immer nur ein Satz gleichzeitig, eigene Lautstärke (VoiceLevel).
|
||||
@@ -329,8 +342,9 @@ namespace GladiatorIdle
|
||||
}
|
||||
}
|
||||
|
||||
static void Play(string name, byte[] fallback, long cooldownMs = 0, float gain = 1f)
|
||||
static void Play(string name, byte[]? fallback, long cooldownMs = 0, float gain = 1f)
|
||||
{
|
||||
if (DevShot.SoundLog) DevShot.Log($"sound: want {name}" + (HasClip(name) || fallback != null ? "" : " (no file)")); // auch stumm prüfbar
|
||||
if (!_enabled || SfxLevel <= 0.001f) return;
|
||||
if (Environment.TickCount64 < Interlocked.Read(ref _quietUntil)) // Erzählstimme: Ruhe
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user