hedgewars/uTeams.pas
changeset 14677 db05d9bf7466
parent 14632 3cf7799e04b5
child 14754 c760a2939b9c
equal deleted inserted replaced
14676:bf37a416ad8f 14677:db05d9bf7466
   455 IsGetAwayTime:= false;
   455 IsGetAwayTime:= false;
   456 
   456 
   457 // turn start taunt: sndYesSir for own team, sndHmm for enemy or computer team
   457 // turn start taunt: sndYesSir for own team, sndHmm for enemy or computer team
   458 if (TurnTimeLeft > 0) and (CurrentHedgehog^.BotLevel = 0) then
   458 if (TurnTimeLeft > 0) and (CurrentHedgehog^.BotLevel = 0) then
   459     begin
   459     begin
   460     if CurrentTeam^.ExtDriven then
   460     if (not CinematicScript) then
   461         begin
   461         if CurrentTeam^.ExtDriven then
   462         AddVoice(sndHmm, CurrentTeam^.voicepack)
   462             AddVoice(sndHmm, CurrentTeam^.voicepack)
   463         end
   463         else
   464     else
   464             AddVoice(sndYesSir, CurrentTeam^.voicepack);
   465         begin
       
   466         AddVoice(sndYesSir, CurrentTeam^.voicepack);
       
   467         end;
       
   468     if cHedgehogTurnTime < 1000000 then
   465     if cHedgehogTurnTime < 1000000 then
   469         ReadyTimeLeft:= cReadyDelay;
   466         ReadyTimeLeft:= cReadyDelay;
   470     s:= ansistring(CurrentTeam^.TeamName);
   467     s:= ansistring(CurrentTeam^.TeamName);
   471     AddCaption(FormatA(trmsg[sidReady], s), capcolDefault, capgrpGameState)
   468     AddCaption(FormatA(trmsg[sidReady], s), capcolDefault, capgrpGameState)
   472     end
   469     end
   473 else
   470 else
   474     begin
   471     begin
   475     if TurnTimeLeft > 0 then
   472     if (TurnTimeLeft > 0) and (not CinematicScript) then
   476         begin
   473         AddVoice(sndHmm, CurrentTeam^.voicepack);
   477         AddVoice(sndHmm, CurrentTeam^.voicepack)
   474     ReadyTimeLeft:= 0;
   478         end;
       
   479     ReadyTimeLeft:= 0
       
   480     end;
   475     end;
   481 end;
   476 end;
   482 
   477 
   483 function SetMissionTeam(): PTeam;
   478 function SetMissionTeam(): PTeam;
   484 var team: PTeam;
   479 var team: PTeam;