Fix the ProneOffsets of TakeCover

This commit is contained in:
abcdefg30
2017-02-04 00:45:32 +01:00
parent 5372d87521
commit 55dd61ebe5
10 changed files with 34 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Damage modifiers for each damage type (defined on the warheads) while the unit is prone.")] [Desc("Damage modifiers for each damage type (defined on the warheads) while the unit is prone.")]
public readonly Dictionary<string, int> DamageModifiers = new Dictionary<string, int>(); public readonly Dictionary<string, int> DamageModifiers = new Dictionary<string, int>();
public readonly WVec ProneOffset = new WVec(85, 0, -171); public readonly WVec ProneOffset = new WVec(500, 0, 0);
[SequenceReference(null, true)] public readonly string ProneSequencePrefix = "prone-"; [SequenceReference(null, true)] public readonly string ProneSequencePrefix = "prone-";

View File

@@ -342,6 +342,7 @@
DamageModifiers: DamageModifiers:
Prone50Percent: 50 Prone50Percent: 50
DamageTriggers: TriggerProne DamageTriggers: TriggerProne
ProneOffset: 400,0,0
WithInfantryBody: WithInfantryBody:
IdleSequences: idle1, idle2 IdleSequences: idle1, idle2
StandSequences: stand, stand2 StandSequences: stand, stand2

View File

@@ -40,6 +40,8 @@ E2:
Weapon: Grenade Weapon: Grenade
LocalOffset: 0,0,427 LocalOffset: 0,0,427
FireDelay: 15 FireDelay: 15
TakeCover:
ProneOffset: 300,0,-227
AttackFrontal: AttackFrontal:
WithInfantryBody: WithInfantryBody:
DefaultAttackSequence: throw DefaultAttackSequence: throw
@@ -69,6 +71,8 @@ E3:
Weapon: Rockets Weapon: Rockets
LocalOffset: 256,43,341 LocalOffset: 256,43,341
FireDelay: 5 FireDelay: 5
TakeCover:
ProneOffset: 180,0,-200
AttackFrontal: AttackFrontal:
WithInfantryBody: WithInfantryBody:
DefaultAttackSequence: shoot DefaultAttackSequence: shoot
@@ -94,6 +98,8 @@ E4:
LocalOffset: 341,0,256 LocalOffset: 341,0,256
FireDelay: 3 FireDelay: 3
MuzzleSequence: muzzle MuzzleSequence: muzzle
TakeCover:
ProneOffset: 190,0,-198
AttackFrontal: AttackFrontal:
WithMuzzleOverlay: WithMuzzleOverlay:
WithInfantryBody: WithInfantryBody:
@@ -125,6 +131,8 @@ E5:
LocalOffset: 341,0,256 LocalOffset: 341,0,256
FireDelay: 3 FireDelay: 3
MuzzleSequence: muzzle MuzzleSequence: muzzle
TakeCover:
ProneOffset: 190,0,-190
AttackFrontal: AttackFrontal:
WithMuzzleOverlay: WithMuzzleOverlay:
-DamagedByTerrain: -DamagedByTerrain:

View File

@@ -261,6 +261,7 @@
DamageModifiers: DamageModifiers:
Prone50Percent: 50 Prone50Percent: 50
DamageTriggers: TriggerProne DamageTriggers: TriggerProne
ProneOffset: 300,0,0
WithDeathAnimation: WithDeathAnimation:
DeathTypes: DeathTypes:
ExplosionDeath: 1 ExplosionDeath: 1

View File

@@ -69,6 +69,8 @@ trooper:
Armament: Armament:
Weapon: Bazooka Weapon: Bazooka
LocalOffset: 128,0,256 LocalOffset: 128,0,256
TakeCover:
ProneOffset: 324,0,-204
AttackFrontal: AttackFrontal:
WithInfantryBody: WithInfantryBody:
DefaultAttackSequence: shoot DefaultAttackSequence: shoot
@@ -175,6 +177,8 @@ grenadier:
Weapon: grenade Weapon: grenade
LocalOffset: 192,0,224 LocalOffset: 192,0,224
FireDelay: 3 FireDelay: 3
TakeCover:
ProneOffset: 96,100,-64
AttackFrontal: AttackFrontal:
WithInfantryBody: WithInfantryBody:
DefaultAttackSequence: throw DefaultAttackSequence: throw

View File

@@ -96,6 +96,8 @@ E2:
Name: garrisoned Name: garrisoned
Weapon: Grenade Weapon: Grenade
FireDelay: 15 FireDelay: 15
TakeCover:
ProneOffset: 256,64,-331
AttackFrontal: AttackFrontal:
WithInfantryBody: WithInfantryBody:
DefaultAttackSequence: throw DefaultAttackSequence: throw
@@ -129,6 +131,8 @@ E3:
Armament@GARRISONED: Armament@GARRISONED:
Name: garrisoned Name: garrisoned
Weapon: Dragon Weapon: Dragon
TakeCover:
ProneOffset: 384,0,-395
AttackFrontal: AttackFrontal:
WithInfantryBody: WithInfantryBody:
DefaultAttackSequence: shoot DefaultAttackSequence: shoot
@@ -153,11 +157,13 @@ E4:
HP: 40 HP: 40
Armament@PRIMARY: Armament@PRIMARY:
Weapon: Flamer Weapon: Flamer
LocalOffset: 427,0,341 LocalOffset: 700,0,500
FireDelay: 8 FireDelay: 8
Armament@GARRISONED: Armament@GARRISONED:
Name: garrisoned Name: garrisoned
Weapon: Flamer Weapon: Flamer
TakeCover:
ProneOffset: 160,0,-288
AttackFrontal: AttackFrontal:
WithInfantryBody: WithInfantryBody:
DefaultAttackSequence: shoot DefaultAttackSequence: shoot
@@ -507,6 +513,8 @@ SHOK:
Armament@GARRISONED: Armament@GARRISONED:
Name: garrisoned Name: garrisoned
Weapon: PortaTesla Weapon: PortaTesla
TakeCover:
ProneOffset: 227,0,-245
AttackFrontal: AttackFrontal:
Voice: Attack Voice: Attack
AttackMove: AttackMove:

View File

@@ -14,7 +14,9 @@ WEEDGUY:
CrushSound: squishy2.aud CrushSound: squishy2.aud
Armament: Armament:
Weapon: FireballLauncher Weapon: FireballLauncher
LocalOffset: 85,0,384 LocalOffset: 224,0,320
TakeCover:
ProneOffset: 128,0,-320
AttackFrontal: AttackFrontal:
Voice: Attack Voice: Attack
-SpawnActorOnDeath@FLAMEGUY: -SpawnActorOnDeath@FLAMEGUY:

View File

@@ -419,6 +419,7 @@
Prone100Percent: 100 Prone100Percent: 100
Prone350Percent: 350 Prone350Percent: 350
DamageTriggers: TriggerProne DamageTriggers: TriggerProne
ProneOffset: 300,0,0
WithInfantryBody: WithInfantryBody:
IdleSequences: idle1,idle2 IdleSequences: idle1,idle2

View File

@@ -18,6 +18,8 @@ E2:
Weapon: Grenade Weapon: Grenade
LocalOffset: 0,0,555 LocalOffset: 0,0,555
FireDelay: 5 FireDelay: 5
TakeCover:
ProneOffset: 160,128,-555
AttackFrontal: AttackFrontal:
Voice: Attack Voice: Attack
WithInfantryBody: WithInfantryBody:
@@ -192,6 +194,8 @@ GHOST:
Armament: Armament:
Weapon: LtRail Weapon: LtRail
LocalOffset: 85,0,384 LocalOffset: 85,0,384
TakeCover:
ProneOffset: 256,32,-384
Crushable: Crushable:
CrushSound: squishy2.aud CrushSound: squishy2.aud
AttackFrontal: AttackFrontal:

View File

@@ -19,6 +19,8 @@ E3:
Armament@PRIMARY: Armament@PRIMARY:
Weapon: Bazooka Weapon: Bazooka
LocalOffset: 252,0,684 LocalOffset: 252,0,684
TakeCover:
ProneOffset: 52,64,-652
AttackFrontal: AttackFrontal:
Voice: Attack Voice: Attack
WithInfantryBody: WithInfantryBody: