protected override Shot CreateShot()
{
float damage = 100.0f * (float)random.NextDouble(); //100.0f / (1f + 99.0f * (float)random.NextDouble());
return new Shot
{
ProjectileTexture = "PotatoBullet",
BulletHoleRadius = (float)Math.Sqrt(damage) / 2.0f,
ExplosionRadius = (float)Math.Sqrt(damage) / 2.0f,
HealthDecreaseFromExplosionImpact = damage,
HealthDecreaseFromProjectileHit = damage,
ShotType = Shot.ShotType_T.Normal,
ExplosionDelay = 0.0f,
Recoil = 0.0f,
Position = Ball.Position + Ball.AimDirection * (Ball.Radius + 0.101f),
Velocity = Ball.AimDirection * Ball.ShootCharge * 25f,
Team = Ball.Player.TeamName
};
}