Add TargetableOffsets to HitShape

And remove ITargetablePositions from Building.
Also, added UseFootprintOffsets to replicate the old Building behavior for easier setup of TargetablePositions for buildings.
This commit is contained in:
reaperrr
2017-05-23 22:51:04 +02:00
parent 7fd0a3aa58
commit 82758a8bef
9 changed files with 63 additions and 19 deletions

View File

@@ -565,6 +565,8 @@
Priority: 3
Targetable:
TargetTypes: Ground, C4, Structure
HitShape:
UseOccupiedCellsOffsets: true
Armor:
Type: Wood
Building:
@@ -878,6 +880,7 @@
DamagedSounds: xplos.aud
DestroyedSounds: xplobig4.aud
ScriptTriggers:
BodyOrientation:
HitShape:
^Crate:

View File

@@ -336,6 +336,8 @@
VisibilityType: CenterPosition
Targetable:
TargetTypes: Ground, C4, Structure
HitShape:
UseOccupiedCellsOffsets: true
Building:
Dimensions: 1,1
Footprint: x

View File

@@ -497,6 +497,8 @@
Priority: 3
Targetable:
TargetTypes: Ground, C4, DetonateAttack, Structure
HitShape:
UseOccupiedCellsOffsets: true
Building:
Dimensions: 1,1
Footprint: x
@@ -853,6 +855,7 @@
Type: Concrete
AutoTargetIgnore:
ScriptTriggers:
BodyOrientation:
HitShape:
^Rock:

View File

@@ -135,6 +135,8 @@
Priority: 3
Targetable:
TargetTypes: Ground, Building, C4
HitShape:
UseOccupiedCellsOffsets: true
Building:
Dimensions: 1,1
Footprint: x