Merge pull request #3233 from ScottNZ/follow

Add unit following/guarding
This commit is contained in:
Chris Forbes
2013-05-16 14:02:32 -07:00
9 changed files with 154 additions and 8 deletions

View File

@@ -31,6 +31,8 @@
AcceptsCloakCrate:
WithSmoke:
DebugMuzzlePositions:
Guard:
Guardable:
^Tank:
AppearsOnRadar:
@@ -68,6 +70,8 @@
Weapon: UnitExplodeSmall
EmptyWeapon: UnitExplodeSmall
DebugMuzzlePositions:
Guard:
Guardable:
^Helicopter:
AppearsOnRadar:
@@ -143,6 +147,8 @@
Buildings: hosp
CloseEnough: 1
DebugMuzzlePositions:
Guard:
Guardable:
^CivInfantry:
Inherits: ^Infantry
@@ -172,7 +178,7 @@
Notification: CivilianKilled
NotifyAll: true
ScaredyCat:
RenderInfantryPanic:
RenderInfantryPanic:
AttackMove:
JustMove: yes
CrushableInfantry:
@@ -210,6 +216,8 @@
ActorLostNotification:
AttackMove:
DebugMuzzlePositions:
Guard:
Guardable:
^Building:
AppearsOnRadar:
@@ -256,6 +264,8 @@
Capturable:
CapturableBar:
DebugMuzzlePositions:
Guardable:
Range: 3
^CivBuilding:
Inherits: ^Building
@@ -343,6 +353,7 @@
RelativeToTopLeft: yes
AutoTargetIgnore:
Sellable:
Guardable:
^Tree:
Tooltip:

View File

@@ -31,6 +31,8 @@
Repairable:
RepairBuildings: repair
DebugMuzzlePositions:
Guard:
Guardable:
^Tank:
AppearsOnRadar:
@@ -65,6 +67,8 @@
Repairable:
RepairBuildings: repair
DebugMuzzlePositions:
Guard:
Guardable:
^Husk:
Health:
@@ -143,6 +147,8 @@
Buildings: barra, barro
CloseEnough: 1
DebugMuzzlePositions:
Guard:
Guardable:
^Plane:
AppearsOnRadar:
@@ -194,7 +200,6 @@
ActorTypes: rifle,rifle,rifle,rifle,rifle,bazooka,bazooka,bazooka,engineer
MustBeDestroyed:
GivesExperience:
FrozenUnderFog:
CaptureNotification:
ActorLostNotification:
@@ -209,3 +214,5 @@
GivesBounty:
DebugMuzzlePositions:
Bib:
Guardable:
Range: 3

View File

@@ -371,6 +371,7 @@ WALL:
ProximityCaptor:
Types:Wall
Sellable:
Guardable:
GUNTOWER:
Inherits: ^Building

View File

@@ -34,6 +34,8 @@
WithSmoke:
UpdatesPlayerStatistics:
DebugMuzzlePositions:
Guard:
Guardable:
^Tank:
AppearsOnRadar:
@@ -71,6 +73,8 @@
WithSmoke:
UpdatesPlayerStatistics:
DebugMuzzlePositions:
Guard:
Guardable:
^Infantry:
AppearsOnRadar:
@@ -120,6 +124,8 @@
CloseEnough: 1
UpdatesPlayerStatistics:
DebugMuzzlePositions:
Guard:
Guardable:
^Ship:
AppearsOnRadar:
@@ -149,6 +155,8 @@
WithSmoke:
UpdatesPlayerStatistics:
DebugMuzzlePositions:
Guard:
Guardable:
^Plane:
AppearsOnRadar:
@@ -218,6 +226,8 @@
GivesBounty:
UpdatesPlayerStatistics:
DebugMuzzlePositions:
Guardable:
Range: 3
^Wall:
AppearsOnRadar:
@@ -251,6 +261,7 @@
Types:Wall
Sellable:
UpdatesPlayerStatistics:
Guardable:
^TechBuilding:
Inherits: ^Building