Exemple #1
0
        internal string GetBaseDamageModel(
            Faction faction,
            LogicalMount mount,
            LogicalTurretHousing housing)
        {
            string baseModel = this.GetBaseModel(faction, mount, housing);

            if (!string.IsNullOrEmpty(baseModel))
            {
                return(Path.Combine(Path.GetDirectoryName(baseModel), Path.GetFileNameWithoutExtension(baseModel) + "_Damaged" + Path.GetExtension(baseModel)));
            }
            return(string.Empty);
        }
Exemple #2
0
 internal string GetBaseModel(Faction faction, LogicalMount mount, LogicalTurretHousing housing)
 {
     if (!string.IsNullOrEmpty(mount.BaseOverload))
     {
         return(faction.GetWeaponModelPath(mount.BaseOverload));
     }
     if (!string.IsNullOrEmpty(this.BaseModelName))
     {
         return(faction.GetWeaponModelPath(this.BaseModelName));
     }
     if (!string.IsNullOrEmpty(housing.BaseModelName))
     {
         return(faction.GetWeaponModelPath(housing.BaseModelName));
     }
     return(string.Empty);
 }
Exemple #3
0
 internal string GetTurretModelName(
     Faction faction,
     LogicalMount mount,
     LogicalTurretHousing housing)
 {
     if (!string.IsNullOrEmpty(mount.TurretOverload))
     {
         return(faction.GetWeaponModelPath(mount.TurretOverload));
     }
     if (!string.IsNullOrEmpty(this.TurretModelName))
     {
         return(faction.GetWeaponModelPath(this.TurretModelName));
     }
     if (!string.IsNullOrEmpty(housing.ModelName))
     {
         return(faction.GetWeaponModelPath(housing.ModelName));
     }
     return(faction.GetWeaponModelPath("Turret_Dummy.scene"));
 }