mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-02 18:01:34 +00:00
When in third person, don't play player's sounds as full volume in Base sound system. OpenAL already does this. (Related to bug 5741.)
This commit is contained in:
parent
ce9f2ee5f9
commit
d49d0753eb
3 changed files with 68 additions and 10 deletions
|
@ -574,9 +574,6 @@ static void _S_AL_SanitiseVector( vec3_t v, int line )
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
#define AL_THIRD_PERSON_THRESHOLD_SQ (48.0f*48.0f)
|
||||
|
||||
/*
|
||||
=================
|
||||
S_AL_Gain
|
||||
|
@ -635,6 +632,8 @@ static void S_AL_ScaleGain(src_t *chksrc, vec3_t origin)
|
|||
/*
|
||||
=================
|
||||
S_AL_HearingThroughEntity
|
||||
|
||||
Also see S_Base_HearingThroughEntity
|
||||
=================
|
||||
*/
|
||||
static qboolean S_AL_HearingThroughEntity( int entityNum )
|
||||
|
@ -653,7 +652,7 @@ static qboolean S_AL_HearingThroughEntity( int entityNum )
|
|||
entityList[ entityNum ].origin,
|
||||
lastListenerOrigin );
|
||||
|
||||
if( distanceSq > AL_THIRD_PERSON_THRESHOLD_SQ )
|
||||
if( distanceSq > THIRD_PERSON_THRESHOLD_SQ )
|
||||
return qfalse; //we're the player, but third person
|
||||
else
|
||||
return qtrue; //we're the player
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue