313 if CurrentHedgehog^.stats.GotRevenge then |
313 if CurrentHedgehog^.stats.GotRevenge then |
314 begin |
314 begin |
315 AddVoice(sndRevenge, CurrentHedgehog^.Team^.voicepack); |
315 AddVoice(sndRevenge, CurrentHedgehog^.Team^.voicepack); |
316 // If revenge taunt was added, one of the following voices is |
316 // If revenge taunt was added, one of the following voices is |
317 // added as fallback (4th param), in case of a missing Revenge sound file. |
317 // added as fallback (4th param), in case of a missing Revenge sound file. |
318 if random(2) = 0 then |
318 case random(4) of |
319 AddVoice(sndRegret, vpHurtEnemy, false, true) |
319 0: AddVoice(sndRegret, vpHurtEnemy, false, true); |
320 else |
320 1: AddVoice(sndGonnaGetYou, vpHurtEnemy, false, true); |
321 AddVoice(sndGonnaGetYou, vpHurtEnemy, false, true); |
321 2: AddVoice(sndIllGetYou, vpHurtEnemy, false, true); |
|
322 3: AddVoice(sndJustYouWait, vpHurtEnemy, false, true); |
|
323 end; |
322 end |
324 end |
323 else |
325 else |
324 if LeaveMeAlone then |
326 if LeaveMeAlone then |
325 if random(2) = 0 then |
327 if random(2) = 0 then |
326 AddVoice(sndCutItOut, vpHurtEnemy) |
328 AddVoice(sndCutItOut, vpHurtEnemy) |
327 else |
329 else |
328 AddVoice(sndLeaveMeAlone, vpHurtEnemy) |
330 AddVoice(sndLeaveMeAlone, vpHurtEnemy) |
329 else |
331 else |
330 if random(2) = 0 then |
332 case random(4) of |
331 AddVoice(sndRegret, vpHurtEnemy) |
333 0: AddVoice(sndRegret, vpHurtEnemy); |
332 else |
334 1: AddVoice(sndGonnaGetYou, vpHurtEnemy); |
333 AddVoice(sndGonnaGetYou, vpHurtEnemy) |
335 2: AddVoice(sndIllGetYou, vpHurtEnemy); |
|
336 3: AddVoice(sndJustYouWait, vpHurtEnemy); |
|
337 end |
334 |
338 |
335 // Missed shot |
339 // Missed shot |
336 // A miss is defined as a shot with a damaging weapon with 0 kills, 0 damage, 0 hogs poisoned and 0 targets hit |
340 // A miss is defined as a shot with a damaging weapon with 0 kills, 0 damage, 0 hogs poisoned and 0 targets hit |
337 else if AmmoDamagingUsed and (Kills <= killsCheck) and (PoisonTurn = 0) and (PoisonClan = 0) and (DamageTurn = 0) and (HitTargets = 0) then |
341 else if AmmoDamagingUsed and (Kills <= killsCheck) and (PoisonTurn = 0) and (PoisonClan = 0) and (DamageTurn = 0) and (HitTargets = 0) then |
338 // Chance to call hedgehog stupid or nutter if sacrificed for nothing |
342 // Chance to call hedgehog stupid or nutter if sacrificed for nothing |