Esempio n. 1
0
        private void HandleMeleeHit(LivingEntity bot, List <AbstractParticleUnit> sceneParticles)
        {
            bot.TakeHit(player.MeleeWeapon.Damage);
            if (bot.IsDead)
            {
                HandleKill(bot, bot.Position - player.Position, sceneParticles);
            }
            var particlePosition = player.Position + (bot.Position - player.Position).Normalize() * player.Radius * 3;

            sceneParticles.Add(ParticleFactory.CreateBigBloodSplash(particlePosition));
            sceneParticles.Add(ParticleFactory.CreateBigBloodSplash(particlePosition));
        }