mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-08 21:14:14 +00:00
Allow use = to send sound name instead of sentence group
This commit is contained in:
parent
e3d21e073e
commit
9a6459c9f3
@ -1185,6 +1185,13 @@ int SENTENCEG_PlayRndSz( edict_t *entity, const char *szgroupname, float volume,
|
||||
|
||||
name[0] = 0;
|
||||
|
||||
// allow setting sound path
|
||||
if( szgroupname[0] == '=' )
|
||||
{
|
||||
EMIT_SOUND_DYN( entity, CHAN_VOICE, szgroupname + 1, volume, attenuation, flags, pitch );
|
||||
return -1;
|
||||
}
|
||||
|
||||
isentenceg = SENTENCEG_GetIndex( szgroupname );
|
||||
if( isentenceg < 0 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user