Exemple #1
0
 void OnPlayerBaseVsBulletExplosionCollisionCollisionOccurred (Entities.PlayerBase playerBase, Entities.BulletExplosion bulletExplosion) 
 {
     if (bulletExplosion.TeamIndex != 0)
     {
         playerBase.TakeDamage(bulletExplosion.DamageToDeal);
     }
 }
Exemple #2
0
        void OnBulletVsPlayerBaseSolidCollisionOccurred (Entities.Bullet bullet, Entities.PlayerBase playerBase) 
        {
            if(bullet.TeamIndex == 1)
            {
                playerBase.TakeDamage(bullet.DamageToDeal);
                bullet.PlayerDestroyVfx();
                bullet.TryExplode();

                bullet.Destroy();
            }
        }