hedgewars/HHHandlers.inc
changeset 5638 e35ba2a400d8
parent 5612 2638dec1b323
child 5640 07676ee23aff
equal deleted inserted replaced
5636:c18aed7ad618 5638:e35ba2a400d8
   213         lx:= X + int2hwfloat(round(GetLaunchX(CurAmmoType, hwSign(dX), Angle)));
   213         lx:= X + int2hwfloat(round(GetLaunchX(CurAmmoType, hwSign(dX), Angle)));
   214         ly:= Y + int2hwfloat(round(GetLaunchY(CurAmmoType, Angle)));
   214         ly:= Y + int2hwfloat(round(GetLaunchY(CurAmmoType, Angle)));
   215 
   215 
   216         if ((Gear^.State and gstHHHJump) <> 0) and (not cArtillery) then xx:= - xx;
   216         if ((Gear^.State and gstHHHJump) <> 0) and (not cArtillery) then xx:= - xx;
   217         if Ammoz[CurAmmoType].Ammo.AttackVoice <> sndNone then
   217         if Ammoz[CurAmmoType].Ammo.AttackVoice <> sndNone then
   218            PlaySound(Ammoz[CurAmmoType].Ammo.AttackVoice, CurrentTeam^.voicepack);
   218            AddVoice(Ammoz[CurAmmoType].Ammo.AttackVoice, CurrentTeam^.voicepack);
   219 
   219 
   220 // Initiating alt attack
   220 // Initiating alt attack
   221         if  (CurAmmoGear <> nil) and
   221         if  (CurAmmoGear <> nil) and
   222             ((Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_AltAttack) <> 0) and
   222             ((Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_AltAttack) <> 0) and
   223             ((Gear^.Message and gmLJump) <> 0) and
   223             ((Gear^.Message and gmLJump) <> 0) and