From 1aba90227dc51373dfa11bae87f02d442853a140 Mon Sep 17 00:00:00 2001 From: AdamTadeusz Date: Fri, 20 Mar 2026 12:00:25 +0000 Subject: [PATCH 1/2] user attacker eye position and attack direction for sound --- src/game/server/func_breakablesurf.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/server/func_breakablesurf.cpp b/src/game/server/func_breakablesurf.cpp index 902722b5a2..6260ae2fea 100644 --- a/src/game/server/func_breakablesurf.cpp +++ b/src/game/server/func_breakablesurf.cpp @@ -609,7 +609,11 @@ void CBreakableSurface::Die( CBaseEntity *pBreaker, const Vector &vAttackDir ) return; // Play a break sound +#ifdef NEO + PhysBreakSound( this, VPhysicsGetObject(), pBreaker ? pBreaker->EyePosition() + vAttackDir : GetAbsOrigin() ); +#else PhysBreakSound( this, VPhysicsGetObject(), GetAbsOrigin() ); +#endif // NEO m_bIsBroken = true; m_iHealth = 0.0f; From fd515faa324b8c8a68017e2fc34afeb925feb512 Mon Sep 17 00:00:00 2001 From: AdamTadeusz Date: Fri, 20 Mar 2026 14:36:04 +0000 Subject: [PATCH 2/2] use worldspacecenter --- src/game/server/func_breakablesurf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/func_breakablesurf.cpp b/src/game/server/func_breakablesurf.cpp index 6260ae2fea..1f4296b0b8 100644 --- a/src/game/server/func_breakablesurf.cpp +++ b/src/game/server/func_breakablesurf.cpp @@ -610,7 +610,7 @@ void CBreakableSurface::Die( CBaseEntity *pBreaker, const Vector &vAttackDir ) // Play a break sound #ifdef NEO - PhysBreakSound( this, VPhysicsGetObject(), pBreaker ? pBreaker->EyePosition() + vAttackDir : GetAbsOrigin() ); + PhysBreakSound( this, VPhysicsGetObject(), WorldSpaceCenter() ); #else PhysBreakSound( this, VPhysicsGetObject(), GetAbsOrigin() ); #endif // NEO