setup civilians for cnc
This commit is contained in:
@@ -26,7 +26,6 @@ namespace OpenRA.Traits.AI
|
||||
var hpFraction = Math.Max(info.MinHpFraction, hp / self.GetMaxHP());
|
||||
var dudesValue = (int)(hpFraction * info.ValueFraction * cost);
|
||||
var eligibleLocations = Footprint.Tiles(self).ToList();
|
||||
// todo: fix this for unbuildables in ActorTypes, like civilians.
|
||||
var actorTypes = info.ActorTypes.Select(a => new { Name = a, Cost = Rules.Info[a].Traits.Get<ValuedInfo>().Cost }).ToArray();
|
||||
|
||||
while (eligibleLocations.Count > 0 && actorTypes.Any(a => a.Cost <= dudesValue))
|
||||
|
||||
@@ -53,6 +53,8 @@
|
||||
DestroyedSound: xplobig4.aud
|
||||
RenderBuilding:
|
||||
CriticalBuildingState:
|
||||
EmitInfantryOnSell:
|
||||
ActorTypes: c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,e1,e1,e1,e1,e1,e1,e1
|
||||
|
||||
^Tree:
|
||||
Category: Building
|
||||
|
||||
@@ -54,4 +54,153 @@ E3:
|
||||
PrimaryWeapon: Rockets
|
||||
PrimaryOffset: 0,0,0,-10
|
||||
FireDelay: 5
|
||||
TakeCover:
|
||||
TakeCover:
|
||||
|
||||
C1:
|
||||
Inherits: ^Infantry
|
||||
Selectable:
|
||||
Voice: CivilianMaleVoice
|
||||
Bounds: 12,17,0,-9
|
||||
Valued:
|
||||
Cost: 70
|
||||
Description: Technician
|
||||
Unit:
|
||||
HP: 20
|
||||
Sight: 2
|
||||
Speed: 4
|
||||
AttackBase:
|
||||
PrimaryWeapon: Pistol
|
||||
|
||||
C2:
|
||||
Inherits: ^Infantry
|
||||
Selectable:
|
||||
Voice: CivilianFemaleVoice
|
||||
Bounds: 12,17,0,-9
|
||||
Valued:
|
||||
Cost: 70
|
||||
Description: Technician
|
||||
Unit:
|
||||
HP: 20
|
||||
Sight: 2
|
||||
Speed: 4
|
||||
AttackBase:
|
||||
PrimaryWeapon: Pistol
|
||||
|
||||
C3:
|
||||
Inherits: ^Infantry
|
||||
Selectable:
|
||||
Voice: CivilianMaleVoice
|
||||
Bounds: 12,17,0,-9
|
||||
Valued:
|
||||
Cost: 70
|
||||
Description: Technician
|
||||
Unit:
|
||||
HP: 20
|
||||
Sight: 2
|
||||
Speed: 4
|
||||
AttackBase:
|
||||
PrimaryWeapon: Pistol
|
||||
|
||||
C4:
|
||||
Inherits: ^Infantry
|
||||
Selectable:
|
||||
Voice: CivilianFemaleVoice
|
||||
Bounds: 12,17,0,-9
|
||||
Valued:
|
||||
Cost: 70
|
||||
Description: Technician
|
||||
Unit:
|
||||
HP: 20
|
||||
Sight: 2
|
||||
Speed: 4
|
||||
AttackBase:
|
||||
PrimaryWeapon: Pistol
|
||||
|
||||
C5:
|
||||
Inherits: ^Infantry
|
||||
Selectable:
|
||||
Voice: CivilianMaleVoice
|
||||
Bounds: 12,17,0,-9
|
||||
Valued:
|
||||
Cost: 70
|
||||
Description: Technician
|
||||
Unit:
|
||||
HP: 20
|
||||
Sight: 2
|
||||
Speed: 4
|
||||
AttackBase:
|
||||
PrimaryWeapon: Pistol
|
||||
|
||||
C6:
|
||||
Inherits: ^Infantry
|
||||
Selectable:
|
||||
Voice: CivilianMaleVoice
|
||||
Bounds: 12,17,0,-9
|
||||
Valued:
|
||||
Cost: 70
|
||||
Description: Technician
|
||||
Unit:
|
||||
HP: 20
|
||||
Sight: 2
|
||||
Speed: 4
|
||||
AttackBase:
|
||||
PrimaryWeapon: Pistol
|
||||
|
||||
C7:
|
||||
Inherits: ^Infantry
|
||||
Selectable:
|
||||
Voice: CivilianMaleVoice
|
||||
Bounds: 12,17,0,-9
|
||||
Valued:
|
||||
Cost: 70
|
||||
Description: Technician
|
||||
Unit:
|
||||
HP: 20
|
||||
Sight: 2
|
||||
Speed: 4
|
||||
AttackBase:
|
||||
PrimaryWeapon: Pistol
|
||||
C8:
|
||||
Inherits: ^Infantry
|
||||
Selectable:
|
||||
Voice: CivilianMaleVoice
|
||||
Bounds: 12,17,0,-9
|
||||
Valued:
|
||||
Cost: 70
|
||||
Description: Technician
|
||||
Unit:
|
||||
HP: 20
|
||||
Sight: 2
|
||||
Speed: 4
|
||||
AttackBase:
|
||||
PrimaryWeapon: Pistol
|
||||
|
||||
C9:
|
||||
Inherits: ^Infantry
|
||||
Selectable:
|
||||
Voice: CivilianMaleVoice
|
||||
Bounds: 12,17,0,-9
|
||||
Valued:
|
||||
Cost: 70
|
||||
Description: Technician
|
||||
Unit:
|
||||
HP: 20
|
||||
Sight: 2
|
||||
Speed: 4
|
||||
AttackBase:
|
||||
PrimaryWeapon: Pistol
|
||||
|
||||
C10:
|
||||
Inherits: ^Infantry
|
||||
Selectable:
|
||||
Voice: CivilianMaleVoice
|
||||
Bounds: 12,17,0,-9
|
||||
Valued:
|
||||
Cost: 70
|
||||
Description: Technician
|
||||
Unit:
|
||||
HP: 20
|
||||
Sight: 2
|
||||
Speed: 4
|
||||
AttackBase:
|
||||
PrimaryWeapon: Pistol
|
||||
|
||||
Reference in New Issue
Block a user