예제 #1
0
    private string GetDeathMessage(UFPlayerLife.DamageType type)
    {
        switch (type)
        {
        case UFPlayerLife.DamageType.Acid: return("Dissolved in acid");

        case UFPlayerLife.DamageType.ArmorPiercing: return("Got pierced and died");

        case UFPlayerLife.DamageType.Bullet: return("Got shot");

        case UFPlayerLife.DamageType.Electrical: return("Was zapped to death");

        case UFPlayerLife.DamageType.Energy: return("Got obliterated");

        case UFPlayerLife.DamageType.Explosive: return("Exploded");

        case UFPlayerLife.DamageType.Melee: return("Died");

        case UFPlayerLife.DamageType.Scalding: return("Melted");

        case UFPlayerLife.DamageType.ccp: return("Is using a custom checkpoint");

        case UFPlayerLife.DamageType.respawn: return("Respawned");

        case UFPlayerLife.DamageType.exitLevel: return("Got lost in the void");

        case UFPlayerLife.DamageType.unkown: return("Died mysteriously");

        default: return("Died somehow");
        }
    }
예제 #2
0
 public void DeathMessage(UFPlayerLife.DamageType type)
 {
     DeathMessage(GetDeathMessage(type));
 }