LANTERN feel pass (DR-052 + gap list): SoD facing, underwater feel, Bathynaut kit, walk/run gait, suit lamp + new Synty anim packs
- SoD facing: PlayerFacing = body-yaw only (move-facing / cast-turn / idle-hold); every fire direction re-sourced to FacingMath.ResolveAim (pre-code review blocking catch); TickWindowMath shared windows with Movement-skip; reticle/FX coupled to the damage direction; cursor-dash kept. - Underwater feel: sharpness 15->6, turn 720->360, MoveSpeed 6->4.2; TuningKnob 26-28 (0 = no-override sentinels, dev-protocol bump on DebugTuningReport); stride footsteps + silt + cadence floor; bubbles; underwater ambience bed + distant groans; camera drag + dev scroll zoom. - Bathynaut kit in-engine: dome/tank/shoulder-lamp + bare head grafted (GraftSmr rigid rebase, RecalculateTangents); EmissiveGloamSkinned shader (Rukhanka deformation); shoulder lamp CASTS (warm steady spot on body yaw). - Gait: two-ring walk/run FreeformDirectional tree (walk @0.35, run @1.0) + blended-natural StrideScale; additive Posture(Bank) + Lead(chest-lead) layers; idle = AnimationIdles Base; banking driven from facing turn rate; flat terrain (Env_SeabedKit seabed squashed - CC is planar). - New packs: Synty AnimationIdles + AnimationSwordCombat (combat pass queued) + SyntyPropBoneTool; four authored clips (sway/trudge/banks/lean) + Anim_Player_Underwater.blend + suit-kit FBX. - Validation: 411/411 EditMode green; Play smokes (server==client facing, Aim-true projectile, bank/stride live-sampled, lamp beam verified); pre-code + post-impl adversarial reviews applied. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -25,11 +25,15 @@ namespace ProjectM.Client
|
||||
int _lastCountdownSec = -1;
|
||||
bool _bossRoared;
|
||||
|
||||
const float AmbientBaseVolume = 0.10f; // low ambient bed
|
||||
// 07-16 underwater re-voice: the bed volume + groan cadence live on FeelConfig (live-tunable).
|
||||
AudioSource _groanSrc;
|
||||
AudioClip _groanClip;
|
||||
float _nextGroanIn = 12f; // first distant groan ~12s into a session
|
||||
|
||||
protected override void OnCreate()
|
||||
{
|
||||
_ambientClip = MakeDrone();
|
||||
_groanClip = MakeGroan();
|
||||
_stingBeep = MakeSting(880f, 880f, 0.09f, 0.30f); // countdown tick
|
||||
_stingRoar = MakeSting(90f, 38f, 0.90f, 0.60f); // boss-arrival roar (low falling growl)
|
||||
}
|
||||
@@ -43,8 +47,12 @@ namespace ProjectM.Client
|
||||
_ambient.loop = true;
|
||||
_ambient.playOnAwake = false;
|
||||
_ambient.spatialBlend = 0f; // 2D bed
|
||||
_ambient.volume = AmbientBaseVolume * GameVolume.Music;
|
||||
_ambient.volume = FeelConfig.AmbienceVolume * GameVolume.Music;
|
||||
_ambient.Play();
|
||||
_groanSrc = _root.AddComponent<AudioSource>();
|
||||
_groanSrc.playOnAwake = false;
|
||||
_groanSrc.spatialBlend = 0f; // distant, directionless
|
||||
_groanSrc.loop = false;
|
||||
}
|
||||
|
||||
protected override void OnDestroy()
|
||||
@@ -56,7 +64,21 @@ namespace ProjectM.Client
|
||||
{
|
||||
if (_ambient == null) return;
|
||||
|
||||
_ambient.volume = Mathf.MoveTowards(_ambient.volume, AmbientBaseVolume * GameVolume.Music, SystemAPI.Time.DeltaTime * 0.25f);
|
||||
float dt = SystemAPI.Time.DeltaTime;
|
||||
_ambient.volume = Mathf.MoveTowards(_ambient.volume, FeelConfig.AmbienceVolume * GameVolume.Music, dt * 0.25f);
|
||||
|
||||
// Distant groans (07-16 gap-list): a slow low sweep with a soft attack, jittered interval + pitch —
|
||||
// the murk answering back. Presentation-only wall-clock randomness is fine here.
|
||||
if (_groanSrc != null && FeelConfig.GroanIntervalSec > 0f)
|
||||
{
|
||||
_nextGroanIn -= dt;
|
||||
if (_nextGroanIn <= 0f)
|
||||
{
|
||||
_nextGroanIn = FeelConfig.GroanIntervalSec * (0.6f + Random.value * 0.8f);
|
||||
_groanSrc.pitch = 0.85f + Random.value * 0.3f;
|
||||
_groanSrc.PlayOneShot(_groanClip, FeelConfig.GroanVolume * GameVolume.Music);
|
||||
}
|
||||
}
|
||||
|
||||
// Launch countdown beeps (3-2-1) + the boss-arrival roar — replicated-state observations only.
|
||||
if (SystemAPI.TryGetSingleton<RunInfo>(out var runAudio))
|
||||
@@ -94,27 +116,54 @@ namespace ProjectM.Client
|
||||
|
||||
// A low, seamless-looping pad: each partial completes an integer number of cycles over the buffer
|
||||
// (freq snapped to k/duration) so the loop point has no click. A slow tremolo adds motion.
|
||||
// A low, seamless-looping UNDERWATER pressure bed (07-16 re-voice): sub-heavy partials + a pair of
|
||||
// detuned subs whose beat completes exactly once per loop (Snap keeps every partial click-free at the
|
||||
// loop point) — reads as slow water-column pressure swell rather than a musical pad.
|
||||
static AudioClip MakeDrone()
|
||||
{
|
||||
const int rate = 44100;
|
||||
const float dur = 4f;
|
||||
const float dur = 8f;
|
||||
int len = (int)(dur * rate);
|
||||
var clip = AudioClip.Create("ambient_drone", len, 1, rate, false);
|
||||
var clip = AudioClip.Create("underwater_bed", len, 1, rate, false);
|
||||
var data = new float[len];
|
||||
float f0 = Snap(55f, dur); // sub
|
||||
float f1 = Snap(110f, dur); // root
|
||||
float f2 = Snap(164.81f, dur); // fifth-ish
|
||||
float f3 = Snap(220f, dur);
|
||||
float trem = Snap(0.5f, dur); // slow amplitude wobble
|
||||
float f0 = Snap(38f, dur); // deep sub
|
||||
float f0b = f0 + 1f / dur; // detuned sub: beats exactly once per loop (seamless)
|
||||
float f1 = Snap(55f, dur);
|
||||
float f2 = Snap(82.4f, dur); // faint upper body
|
||||
float swell = Snap(0.25f, dur); // very slow amplitude swell
|
||||
for (int i = 0; i < len; i++)
|
||||
{
|
||||
float t = i / (float)rate;
|
||||
float s = 0.50f * Mathf.Sin(2f * Mathf.PI * f0 * t)
|
||||
+ 0.35f * Mathf.Sin(2f * Mathf.PI * f1 * t)
|
||||
+ 0.18f * Mathf.Sin(2f * Mathf.PI * f2 * t)
|
||||
+ 0.10f * Mathf.Sin(2f * Mathf.PI * f3 * t);
|
||||
float amp = 0.75f + 0.25f * Mathf.Sin(2f * Mathf.PI * trem * t);
|
||||
data[i] = s * amp * 0.5f; // peak ~0.57, no clipping
|
||||
float s = 0.46f * Mathf.Sin(2f * Mathf.PI * f0 * t)
|
||||
+ 0.34f * Mathf.Sin(2f * Mathf.PI * f0b * t)
|
||||
+ 0.22f * Mathf.Sin(2f * Mathf.PI * f1 * t)
|
||||
+ 0.07f * Mathf.Sin(2f * Mathf.PI * f2 * t);
|
||||
float amp = 0.7f + 0.3f * Mathf.Sin(2f * Mathf.PI * swell * t);
|
||||
data[i] = s * amp * 0.5f;
|
||||
}
|
||||
clip.SetData(data, 0);
|
||||
return clip;
|
||||
}
|
||||
|
||||
// A distant whale-adjacent groan: slow 58->34Hz sweep with a soft sin^2 attack/decay window and a
|
||||
// subtle wobble — never a jump-scare, just the deep being large somewhere off-screen.
|
||||
static AudioClip MakeGroan()
|
||||
{
|
||||
const int rate = 44100;
|
||||
const float dur = 3.4f;
|
||||
int len = (int)(dur * rate);
|
||||
var clip = AudioClip.Create("distant_groan", len, 1, rate, false);
|
||||
var data = new float[len];
|
||||
float phase = 0f;
|
||||
for (int i = 0; i < len; i++)
|
||||
{
|
||||
float t01 = i / (float)len;
|
||||
float t = i / (float)rate;
|
||||
float freq = Mathf.Lerp(58f, 34f, t01) * (1f + 0.03f * Mathf.Sin(2f * Mathf.PI * 1.7f * t));
|
||||
phase += 2f * Mathf.PI * freq / rate;
|
||||
float window = Mathf.Sin(Mathf.PI * t01);
|
||||
float env = window * window; // soft attack AND release
|
||||
data[i] = (0.8f * Mathf.Sin(phase) + 0.2f * Mathf.Sin(2f * phase)) * env * 0.55f;
|
||||
}
|
||||
clip.SetData(data, 0);
|
||||
return clip;
|
||||
|
||||
Reference in New Issue
Block a user