hedgewars/HHHandlers.inc
changeset 3469 39e16d76d745
parent 3431 e36dffdf7b82
child 3476 1ec68b8d3bd1
equal deleted inserted replaced
3468:c7b80bdbc384 3469:39e16d76d745
   137            end;
   137            end;
   138 
   138 
   139         xx:= SignAs(AngleSin(Angle), dX);
   139         xx:= SignAs(AngleSin(Angle), dX);
   140         yy:= -AngleCos(Angle);
   140         yy:= -AngleCos(Angle);
   141 
   141 
   142         if ((Gear^.State and gstHHHJump) <> 0) then xx:= - xx;
   142         if ((Gear^.State and gstHHHJump) <> 0) and (not cArtillery) then xx:= - xx;
   143         if Ammo^[CurSlot, CurAmmo].AttackVoice <> sndNone then
   143         if Ammo^[CurSlot, CurAmmo].AttackVoice <> sndNone then
   144            PlaySound(Ammo^[CurSlot, CurAmmo].AttackVoice, CurrentTeam^.voicepack);
   144            PlaySound(Ammo^[CurSlot, CurAmmo].AttackVoice, CurrentTeam^.voicepack);
   145              case Ammo^[CurSlot, CurAmmo].AmmoType of
   145              case Ammo^[CurSlot, CurAmmo].AmmoType of
   146                       amGrenade: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtAmmo_Bomb,    0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, Ammo^[CurSlot, CurAmmo].Timer);
   146                       amGrenade: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtAmmo_Bomb,    0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, Ammo^[CurSlot, CurAmmo].Timer);
   147                       amMolotov: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtMolotov,      0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, 0);
   147                       amMolotov: FollowGear:= AddGear(hwRound(X), hwRound(Y), gtMolotov,      0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, 0);