//=============================================================================
// Shuriken.
//=============================================================================
class KnifeThrow extends DeusExProjectile;

var float	mpDamage;
var int		mpAccurateRange;
var int		mpMaxRange;

// set its rotation correctly
simulated function Tick(float deltaTime)
{
	local Rotator rot;

	if (bStuck)
		return;

	Super.Tick(deltaTime);

	if (Level.Netmode != NM_DedicatedServer)
	{
		rot = Rotation;
		rot.Roll += 16384;
		rot.Pitch -= 16384;
		SetRotation(rot);
	}
}

simulated function PreBeginPlay()
{
	Super.PreBeginPlay();

	// If this is a netgame, then override defaults
	if ( Level.NetMode != NM_StandAlone )
	{
		Damage = mpDamage;
		AccurateRange = mpAccurateRange;
		MaxRange = mpMaxRange;
	}
}

function GrabProjectile(DeusExPlayer player)
{
}


defaultproperties
{
     mpDamage=20.000000
     mpAccurateRange=2000
     mpMaxRange=2000
     bBlood=True
     bStickToWall=True
     DamageType=shot
     AccurateRange=640
     maxRange=2000
     spawnWeaponClass=None
     bIgnoresNanoDefense=True
     ItemName="Ninja Knife"
     ItemArticle="a"
     speed=900.000000
     MaxSpeed=900.000000
     Damage=20.000000
     MomentumTransfer=1000
     ImpactSound=Sound'DeusExSounds.Generic.BulletHitFlesh'
     Mesh=LodMesh'DeusExItems.CombatKnifePickup'
     CollisionRadius=4.000000
     CollisionHeight=0.400000
}
