hedgewars/uStats.pas
changeset 1669 b709e061577e
parent 1625 37aae47943ce
child 1678 c8deca7b1e3c
equal deleted inserted replaced
1668:ceee3f20c784 1669:b709e061577e
    92 if FinishedTurnsTotal <> 0 then
    92 if FinishedTurnsTotal <> 0 then
    93 	begin
    93 	begin
    94 	inc(CurrentHedgehog^.stats.FinishedTurns);
    94 	inc(CurrentHedgehog^.stats.FinishedTurns);
    95 
    95 
    96 	if (DamageGiven = DamageTotal) and (DamageTotal > 0) then
    96 	if (DamageGiven = DamageTotal) and (DamageTotal > 0) then
    97 		PlaySound(sndFirstBlood, false)
    97 		PlaySound(sndFirstBlood, false, CurrentTeam^.voicepack)
    98 
    98 
    99 	else if CurrentHedgehog^.stats.StepDamageRecv > 0 then
    99 	else if CurrentHedgehog^.stats.StepDamageRecv > 0 then
   100 		PlaySound(sndStupid, false)
   100 		PlaySound(sndStupid, false, CurrentTeam^.voicepack)
   101 
   101 
   102 	else if DamageClan <> 0 then
   102 	else if DamageClan <> 0 then
   103 		if DamageTotal > DamageClan then
   103 		if DamageTotal > DamageClan then
   104 			if random(2) = 0 then
   104 			if random(2) = 0 then
   105 				PlaySound(sndNutter, false)
   105 				PlaySound(sndNutter, false, CurrentTeam^.voicepack)
   106 			else
   106 			else
   107 				PlaySound(sndWatchIt, false)
   107 				PlaySound(sndWatchIt, false, CurrentTeam^.voicepack)
   108 		else
   108 		else
   109 			if random(2) = 0 then
   109 			if random(2) = 0 then
   110 				PlaySound(sndSameTeam, false)
   110 				PlaySound(sndSameTeam, false, CurrentTeam^.voicepack)
   111 			else
   111 			else
   112 				PlaySound(sndTraitor, false)
   112 				PlaySound(sndTraitor, false, CurrentTeam^.voicepack)
   113 
   113 
   114 	else if DamageGiven <> 0 then
   114 	else if DamageGiven <> 0 then
   115 		if Kills > 0 then
   115 		if Kills > 0 then
   116 			PlaySound(sndEnemyDown, false)
   116 			PlaySound(sndEnemyDown, false, CurrentTeam^.voicepack)
   117 		else
   117 		else
   118 			PlaySound(sndRegret, false)
   118 			PlaySound(sndRegret, false, CurrentTeam^.voicepack)
   119 
   119 
   120 	else if AmmoDamagingUsed then
   120 	else if AmmoDamagingUsed then
   121 		PlaySound(sndMissed, false)
   121 		PlaySound(sndMissed, false, CurrentTeam^.voicepack)
   122 	else if (AmmoUsedCount > 0) and not isTurnSkipped then
   122 	else if (AmmoUsedCount > 0) and not isTurnSkipped then
   123 		// nothing ?
   123 		// nothing ?
   124 	else if isTurnSkipped then
   124 	else if isTurnSkipped then
   125 		PlaySound(sndBoring, false)
   125 		PlaySound(sndBoring, false, CurrentTeam^.voicepack)
   126 	else
   126 	else
   127 		PlaySound(sndCoward, false);
   127 		PlaySound(sndCoward, false, CurrentTeam^.voicepack);
   128 	end;
   128 	end;
   129 
   129 
   130 
   130 
   131 for t:= 0 to Pred(TeamsCount) do // send even on zero turn
   131 for t:= 0 to Pred(TeamsCount) do // send even on zero turn
   132 	with TeamsArray[t]^ do
   132 	with TeamsArray[t]^ do