hedgewars/GSHandlers.inc
changeset 2512 ab0e6aacb6da
parent 2492 9e80b7fc4017
child 2514 df9d0728c5bb
equal deleted inserted replaced
2511:446aac3c05a4 2512:ab0e6aacb6da
   227 
   227 
   228 	if (Gear^.State and gstCollision) <> 0 then begin
   228 	if (Gear^.State and gstCollision) <> 0 then begin
   229 		PlaySound(sndMolotov, false, nil);
   229 		PlaySound(sndMolotov, false, nil);
   230 		//doMakeExplosion(hwRound(Gear^.X), hwRound(Gear^.Y), 5, EXPLAutoSound);
   230 		//doMakeExplosion(hwRound(Gear^.X), hwRound(Gear^.Y), 5, EXPLAutoSound);
   231 		for i:= 0 to 20 do begin
   231 		for i:= 0 to 20 do begin
   232 				dX:= AngleCos(i * 2) * ((_0_08*(i div 6))) * (GetRandom + _1);
   232 				dX:= AngleCos(i * 2) * ((_0_1*(i div 5))) * (GetRandom + _1);
   233 				dY:= AngleSin(i * 8) * _0_5 * (GetRandom + _1);
   233 				dY:= AngleSin(i * 8) * _0_5 * (GetRandom + _1);
   234 				Fire:= AddGear(hwRound(Gear^.X), hwRound(Gear^.Y), gtFlame, 0, dX, dY, 0);
   234 				Fire:= AddGear(hwRound(Gear^.X), hwRound(Gear^.Y), gtFlame, 0, dX, dY, 0);
   235 				Fire^.State:= Fire^.State or gsttmpFlag;
   235 				Fire^.State:= Fire^.State or gsttmpFlag;
   236 				Fire:= AddGear(hwRound(Gear^.X), hwRound(Gear^.Y), gtFlame, 0, dX, -dY, 0);
   236 				Fire:= AddGear(hwRound(Gear^.X), hwRound(Gear^.Y), gtFlame, 0, dX, -dY, 0);
   237 				Fire^.State:= Fire^.State or gsttmpFlag;
   237 				Fire^.State:= Fire^.State or gsttmpFlag;