reverted fix to preserve vanilla behavior

Will add a fixed version separately.
This commit is contained in:
JezuzLizard
2020-04-08 03:34:14 -07:00
parent ebfd937f9b
commit 04fa2130c5

View File

@ -341,19 +341,15 @@ playleaderdialogonplayer( dialog, team, waittime ) //checked changed to match ce
if ( level.allowzmbannouncer ) if ( level.allowzmbannouncer )
{ {
alias = game[ "zmbdialog" ][ "prefix" ] + "_" + game[ "zmbdialog" ][ dialog ]; alias = game[ "zmbdialog" ][ "prefix" ] + "_" + game[ "zmbdialog" ][ dialog ];
//aliasVariant = game[ "zmbdialog" ][ dialog ];
variant = self getleaderdialogvariant( alias ); variant = self getleaderdialogvariant( alias );
if ( !isDefined( variant ) ) if ( !isDefined( variant ) )
{ {
full_alias = alias + "_" + "0"; //adding the + "_" + "0" fixes pluto no announcer bug full_alias = alias;
//this happens because all voxes require the variant to be specified but for some reason they are not in pluto
//this may be due to the soundexists() not working potentially
} }
else else
{ {
full_alias = alias + "_" + variant; full_alias = alias + "_" + variant;
} }
self playlocalsound( full_alias ); self playlocalsound( full_alias );
} }
if ( isDefined( waittime ) ) if ( isDefined( waittime ) )
@ -433,4 +429,3 @@ getotherteam( team ) //checked matches cerberus output
} }
} }