hedgewars/uStats.pas
changeset 2619 bc2786a00fb8
parent 2143 ad05f6b2d1c0
child 2630 079ef82eac75
equal deleted inserted replaced
2618:23ee71bd049b 2619:bc2786a00fb8
   106 		PlaySound(sndFirstBlood, false, CurrentTeam^.voicepack)
   106 		PlaySound(sndFirstBlood, false, CurrentTeam^.voicepack)
   107 
   107 
   108 	else if CurrentHedgehog^.stats.StepDamageRecv > 0 then
   108 	else if CurrentHedgehog^.stats.StepDamageRecv > 0 then
   109 		begin
   109 		begin
   110 		PlaySound(sndStupid, false, PreviousTeam^.voicepack);
   110 		PlaySound(sndStupid, false, PreviousTeam^.voicepack);
   111 		if DamageGiven = CurrentHedgehog^.stats.StepDamageRecv then AddCaption(Format(GetEventString(eidHurtSelf), CurrentHedgehog^.Name), $FFFFFF, capgrpGameState);
   111 		if DamageGiven = CurrentHedgehog^.stats.StepDamageRecv then AddCaption(Format(GetEventString(eidHurtSelf), CurrentHedgehog^.Name), cWhiteColor, capgrpGameState);
   112 		end
   112 		end
   113 	else if DamageClan <> 0 then
   113 	else if DamageClan <> 0 then
   114 		if DamageTotal > DamageClan then
   114 		if DamageTotal > DamageClan then
   115 			if random(2) = 0 then
   115 			if random(2) = 0 then
   116 				PlaySound(sndNutter, false, CurrentTeam^.voicepack)
   116 				PlaySound(sndNutter, false, CurrentTeam^.voicepack)
   132 	else if (AmmoUsedCount > 0) and not isTurnSkipped then
   132 	else if (AmmoUsedCount > 0) and not isTurnSkipped then
   133 		// nothing ?
   133 		// nothing ?
   134 	else if isTurnSkipped then
   134 	else if isTurnSkipped then
   135 		begin
   135 		begin
   136 		PlaySound(sndBoring, false, PreviousTeam^.voicepack);
   136 		PlaySound(sndBoring, false, PreviousTeam^.voicepack);
   137 		AddCaption(Format(GetEventString(eidTurnSkipped), CurrentHedgehog^.Name), $FFFFFF, capgrpGameState);
   137 		AddCaption(Format(GetEventString(eidTurnSkipped), CurrentHedgehog^.Name), cWhiteColor, capgrpGameState);
   138 		end
   138 		end
   139 	else
   139 	else
   140 		PlaySound(sndCoward, false, PreviousTeam^.voicepack);
   140 		PlaySound(sndCoward, false, PreviousTeam^.voicepack);
   141 	end;
   141 	end;
   142 
   142