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); |