hedgewars/GSHandlers.inc
changeset 1869 490005509a7b
parent 1867 2fc0e1e39b11
child 1892 fddc1201df25
equal deleted inserted replaced
1868:2fe8d045f6a1 1869:490005509a7b
    46 	if _0_6 < Gear^.dY then
    46 	if _0_6 < Gear^.dY then
    47 		PlaySound(sndOw4, false, PHedgehog(Gear^.Hedgehog)^.Team^.voicepack)
    47 		PlaySound(sndOw4, false, PHedgehog(Gear^.Hedgehog)^.Team^.voicepack)
    48 	else
    48 	else
    49 		PlaySound(sndOw1, false, PHedgehog(Gear^.Hedgehog)^.Team^.voicepack);
    49 		PlaySound(sndOw1, false, PHedgehog(Gear^.Hedgehog)^.Team^.voicepack);
    50 
    50 
    51     if (CurrentHedgehog^.Gear = Gear) and (not Gear^.Invulnerable) then
       
    52 	    Gear^.State:= Gear^.State or gstLoser;
       
    53 	dmg:= modifyDamage(1 + hwRound((hwAbs(Gear^.dY) - _0_4) * 70));
    51 	dmg:= modifyDamage(1 + hwRound((hwAbs(Gear^.dY) - _0_4) * 70));
    54 	inc(Gear^.Damage, dmg);
    52 	inc(Gear^.Damage, dmg);
    55 	AddDamageTag(hwRound(Gear^.X), hwRound(Gear^.Y) + cHHRadius, dmg, PHedgehog(Gear^.Hedgehog)^.Team^.Clan^.Color);
    53 	AddDamageTag(hwRound(Gear^.X), hwRound(Gear^.Y) + cHHRadius, dmg, PHedgehog(Gear^.Hedgehog)^.Team^.Clan^.Color);
    56 	end
    54 	end
    57 end;
    55 end;