deep.js
// This function combines Draw_Turret_III and Draw_Turret_II so you can offset a wide turret.

This function combines Draw_Turret_III and Draw_Turret_II so you can offset a wide turret.
This function combines Draw_Turret_III and Draw_Turret_II so you can offset a wide turret .
function Draw_Turret_VI(gx, gy, fOff, fLen, fWidIn, fWidOut, fRecoil, aRotation, fInjury)
{
	fRecoil *= Zoom_Fctr;
	var sp = ptos(gx, gy);
	context.save();
	context.translate(sp.x, sp.y);
	context.rotate(aRotation * Math.PI / 180.0);
	context.translate(0 - sp.x, 0 - sp.y);
	context.fillStyle = Make_Color(_TF.r, _TF.g, _TF.b);
	context.beginPath();
	context.moveTo(sp.x - fWidIn / 2 - fOff, sp.y);
	context.lineTo(sp.x + fWidIn / 2 - fOff, sp.y);
	context.lineTo(sp.x + fWidOut / 2 - fOff, sp.y + fLen - fRecoil);
	context.lineTo(sp.x - fWidOut / 2 - fOff, sp.y + fLen - fRecoil);
	context.lineTo(sp.x - fWidIn / 2 - fOff, sp.y);
	context.closePath();
	context.strokeStyle = Make_Color(_TB.r, _TB.g, _TB.b);
	context.lineWidth = 3.0 * Zoom_Fctr;
	context.lineJoin = "round";
	context.fill();
	context.stroke();
	if (fInjury > 0)
	{
		context.fillStyle = Make_Color_Ex(255, 0, 0, fInjury);
		context.strokeStyle = Make_Color_Ex(255, 0, 0, fInjury);
		context.fill();
		context.stroke();
	}
	context.restore();
}
function Draw_Turret_VI ( gx , gy , fOff , fLen , fWidIn , fWidOut , fRecoil , aRotation , fInjury ) { fRecoil *= Zoom_Fctr ; var sp = ptos ( gx , gy ) ; context . save ( ) ; context . translate ( sp . x , sp . y ) ; context . rotate ( aRotation * Math . PI / 180.0 ) ; context . translate ( 0 - sp . x , 0 - sp . y ) ; context . fillStyle = Make_Color ( _TF . r , _TF . g , _TF . b ) ; context . beginPath ( ) ; context . moveTo ( sp . x - fWidIn / 2 - fOff , sp . y ) ; context . lineTo ( sp . x + fWidIn / 2 - fOff , sp . y ) ; context . lineTo ( sp . x + fWidOut / 2 - fOff , sp . y + fLen - fRecoil ) ; context . lineTo ( sp . x - fWidOut / 2 - fOff , sp . y + fLen - fRecoil ) ; context . lineTo ( sp . x - fWidIn / 2 - fOff , sp . y ) ; context . closePath ( ) ; context . strokeStyle = Make_Color ( _TB . r , _TB . g , _TB . b ) ; context . lineWidth = 3.0 * Zoom_Fctr ; context . lineJoin = "round" ; context . fill ( ) ; context . stroke ( ) ; if ( fInjury > 0 ) { context . fillStyle = Make_Color_Ex ( 255 , 0 , 0 , fInjury ) ; context . strokeStyle = Make_Color_Ex ( 255 , 0 , 0 , fInjury ) ; context . fill ( ) ; context . stroke ( ) ; } context . restore ( ) ; }
This function combines Draw_Turret_III and Draw_Turret_II so you can offset a wide turret.
This function combines Draw_Turret_III and Draw_Turret_II so you can offset a wide turret .