hedgewars/uTeams.pas
changeset 14063 006f97a6f6a7
parent 14055 f9281c294a4c
child 14069 084db65b3657
equal deleted inserted replaced
14062:44f20c9e6861 14063:006f97a6f6a7
   444     else
   444     else
   445         bShowFinger:= true;
   445         bShowFinger:= true;
   446     end;
   446     end;
   447 IsGetAwayTime:= false;
   447 IsGetAwayTime:= false;
   448 
   448 
       
   449 // turn start taunt: sndYesSir for own team, sndHmm for enemy or computer team
   449 if (TurnTimeLeft > 0) and (CurrentHedgehog^.BotLevel = 0) then
   450 if (TurnTimeLeft > 0) and (CurrentHedgehog^.BotLevel = 0) then
   450     begin
   451     begin
   451     if CurrentTeam^.ExtDriven then
   452     if CurrentTeam^.ExtDriven then
   452         begin
   453         begin
   453         if GetRandom(2) = 0 then
   454         AddVoice(sndHmm, CurrentTeam^.voicepack)
   454              AddVoice(sndIllGetYou, CurrentTeam^.voicepack)
       
   455         else AddVoice(sndJustYouWait, CurrentTeam^.voicepack)
       
   456         end
   455         end
   457     else
   456     else
   458         begin
   457         begin
   459         GetRandom(2); // needed to avoid extdriven desync
   458         GetRandom(2); // needed to avoid extdriven desync
   460         AddVoice(sndYesSir, CurrentTeam^.voicepack);
   459         AddVoice(sndYesSir, CurrentTeam^.voicepack);
   466     end
   465     end
   467 else
   466 else
   468     begin
   467     begin
   469     if TurnTimeLeft > 0 then
   468     if TurnTimeLeft > 0 then
   470         begin
   469         begin
   471         if GetRandom(2) = 0 then
   470         AddVoice(sndHmm, CurrentTeam^.voicepack)
   472              AddVoice(sndIllGetYou, CurrentTeam^.voicepack)
       
   473         else AddVoice(sndJustYouWait, CurrentTeam^.voicepack)
       
   474         end;
   471         end;
   475     ReadyTimeLeft:= 0
   472     ReadyTimeLeft:= 0
   476     end;
   473     end;
   477 end;
   474 end;
   478 
   475