Merge pull request #11634 from GraionDilach/fixup-damagedbyterrain
Fixup DamagedByTerrain.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#region Copyright & License Information
|
#region Copyright & License Information
|
||||||
/*
|
/*
|
||||||
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
|
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
|
||||||
* This file is part of OpenRA, which is free software. It is made
|
* This file is part of OpenRA, which is free software. It is made
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.GameRules;
|
using OpenRA.GameRules;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
@@ -16,10 +17,16 @@ using OpenRA.Traits;
|
|||||||
namespace OpenRA.Mods.Common.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
[Desc("This actor receives damage from the given weapon when on the specified terrain type.")]
|
[Desc("This actor receives damage from the given weapon when on the specified terrain type.")]
|
||||||
class DamagedByTerrainInfo : UpgradableTraitInfo, IRulesetLoaded, Requires<HealthInfo>
|
class DamagedByTerrainInfo : UpgradableTraitInfo, Requires<HealthInfo>
|
||||||
{
|
{
|
||||||
[Desc("The weapon which is used to damage the actor.")]
|
[Desc("Amount of damage received per DamageInterval ticks.")]
|
||||||
[WeaponReference, FieldLoader.Require] public readonly string Weapon;
|
[FieldLoader.Require] public readonly int Damage = 0;
|
||||||
|
|
||||||
|
[Desc("Delay between receiving damage.")]
|
||||||
|
public readonly int DamageInterval = 0;
|
||||||
|
|
||||||
|
[Desc("Apply the damage using these damagetypes.")]
|
||||||
|
public readonly HashSet<string> DamageTypes = new HashSet<string>();
|
||||||
|
|
||||||
[Desc("Terrain types where the actor will take damage.")]
|
[Desc("Terrain types where the actor will take damage.")]
|
||||||
[FieldLoader.Require] public readonly string[] Terrain = { };
|
[FieldLoader.Require] public readonly string[] Terrain = { };
|
||||||
@@ -30,10 +37,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
[Desc("Inflict damage down to the DamageThreshold when the actor gets created on damaging terrain.")]
|
[Desc("Inflict damage down to the DamageThreshold when the actor gets created on damaging terrain.")]
|
||||||
public readonly bool StartOnThreshold = false;
|
public readonly bool StartOnThreshold = false;
|
||||||
|
|
||||||
public WeaponInfo WeaponInfo { get; private set; }
|
|
||||||
|
|
||||||
public override object Create(ActorInitializer init) { return new DamagedByTerrain(init.Self, this); }
|
public override object Create(ActorInitializer init) { return new DamagedByTerrain(init.Self, this); }
|
||||||
public void RulesetLoaded(Ruleset rules, ActorInfo ai) { WeaponInfo = rules.Weapons[Weapon.ToLowerInvariant()]; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class DamagedByTerrain : UpgradableTrait<DamagedByTerrainInfo>, ITick, ISync, INotifyAddedToWorld
|
class DamagedByTerrain : UpgradableTrait<DamagedByTerrainInfo>, ITick, ISync, INotifyAddedToWorld
|
||||||
@@ -70,7 +74,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
// Actors start with maximum damage applied
|
// Actors start with maximum damage applied
|
||||||
var delta = health.HP - damageThreshold;
|
var delta = health.HP - damageThreshold;
|
||||||
if (delta > 0)
|
if (delta > 0)
|
||||||
health.InflictDamage(self, self.World.WorldActor, new Damage(delta), false);
|
self.InflictDamage(self.World.WorldActor, new Damage(delta, Info.DamageTypes));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
public void Tick(Actor self)
|
||||||
@@ -86,8 +90,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (!Info.Terrain.Contains(t.Type))
|
if (!Info.Terrain.Contains(t.Type))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Info.WeaponInfo.Impact(Target.FromActor(self), self.World.WorldActor, Enumerable.Empty<int>());
|
self.InflictDamage(self.World.WorldActor, new Damage(Info.Damage, Info.DamageTypes));
|
||||||
damageTicks = Info.WeaponInfo.ReloadDelay;
|
damageTicks = Info.DamageInterval;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -234,8 +234,9 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
else
|
else
|
||||||
node.Value.Nodes.Add(new MiniYamlNode("Terrain", new MiniYaml("Tiberium, BlueTiberium")));
|
node.Value.Nodes.Add(new MiniYamlNode("Terrain", new MiniYaml("Tiberium, BlueTiberium")));
|
||||||
|
|
||||||
if (!node.Value.Nodes.Any(a => a.Key == "Weapon"))
|
Console.WriteLine("PoisonedByTiberium: Weapon isn't converted. Copy out the appropriate");
|
||||||
node.Value.Nodes.Add(new MiniYamlNode("Weapon", new MiniYaml("Tiberium")));
|
Console.WriteLine("weapon's Damage, ReloadDelay and DamageTypes to DamagedByTerrain's Damage,");
|
||||||
|
Console.WriteLine("DamageInterval and DamageTypes, respectively, then remove the Weapon tag.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -244,8 +245,9 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
node.Key = node.Key.Replace("DamagedWithoutFoundation", "DamagedByTerrain");
|
node.Key = node.Key.Replace("DamagedWithoutFoundation", "DamagedByTerrain");
|
||||||
if (!node.Key.StartsWith("-"))
|
if (!node.Key.StartsWith("-"))
|
||||||
{
|
{
|
||||||
if (!node.Value.Nodes.Any(a => a.Key == "Weapon"))
|
Console.WriteLine("DamagedWithoutFoundation: Weapon isn't converted. Copy out the appropriate");
|
||||||
node.Value.Nodes.Add(new MiniYamlNode("Weapon", new MiniYaml("weathering")));
|
Console.WriteLine("weapon's Damage, ReloadDelay and DamageTypes to DamagedByTerrain's Damage,");
|
||||||
|
Console.WriteLine("DamageInterval and DamageTypes, respectively, then remove the Weapon tag.");
|
||||||
|
|
||||||
Console.WriteLine("SafeTerrain isn't converted. Setup an inverted check using Terrain.");
|
Console.WriteLine("SafeTerrain isn't converted. Setup an inverted check using Terrain.");
|
||||||
|
|
||||||
|
|||||||
@@ -215,7 +215,9 @@
|
|||||||
UpgradeTypes: hazmatsuits
|
UpgradeTypes: hazmatsuits
|
||||||
UpgradeMaxEnabledLevel: 0
|
UpgradeMaxEnabledLevel: 0
|
||||||
Terrain: Tiberium, BlueTiberium
|
Terrain: Tiberium, BlueTiberium
|
||||||
Weapon: Tiberium
|
Damage: 2
|
||||||
|
DamageInterval: 16
|
||||||
|
DamageTypes: TiberiumDeath
|
||||||
GlobalUpgradable@BIO:
|
GlobalUpgradable@BIO:
|
||||||
Upgrades: hazmatsuits
|
Upgrades: hazmatsuits
|
||||||
Prerequisites: bio
|
Prerequisites: bio
|
||||||
@@ -420,7 +422,9 @@
|
|||||||
Voice: Move
|
Voice: Move
|
||||||
Guardable:
|
Guardable:
|
||||||
DamagedByTerrain:
|
DamagedByTerrain:
|
||||||
Weapon: Heal
|
Damage: -1
|
||||||
|
DamageInterval: 4
|
||||||
|
DamageTypes: TiberiumDeath
|
||||||
Terrain: Tiberium, BlueTiberium
|
Terrain: Tiberium, BlueTiberium
|
||||||
Voiced:
|
Voiced:
|
||||||
VoiceSet: DinoVoice
|
VoiceSet: DinoVoice
|
||||||
|
|||||||
@@ -144,13 +144,6 @@ Laser:
|
|||||||
SmudgeType: Scorch
|
SmudgeType: Scorch
|
||||||
InvalidTargets: Vehicle, Structure, Wall, Husk, Trees, Creep
|
InvalidTargets: Vehicle, Structure, Wall, Husk, Trees, Creep
|
||||||
|
|
||||||
Tiberium:
|
|
||||||
ReloadDelay: 16
|
|
||||||
Warhead@1Dam: SpreadDamage
|
|
||||||
Spread: 42
|
|
||||||
Damage: 2
|
|
||||||
DamageTypes: TiberiumDeath
|
|
||||||
|
|
||||||
TiberiumExplosion:
|
TiberiumExplosion:
|
||||||
Warhead@1Dam: SpreadDamage
|
Warhead@1Dam: SpreadDamage
|
||||||
Spread: 9
|
Spread: 9
|
||||||
@@ -168,12 +161,6 @@ TiberiumExplosion:
|
|||||||
Explosions: chemball
|
Explosions: chemball
|
||||||
ImpactSounds: xplosml2.aud
|
ImpactSounds: xplosml2.aud
|
||||||
|
|
||||||
Heal:
|
|
||||||
ReloadDelay: 4
|
|
||||||
Warhead@1Dam: SpreadDamage
|
|
||||||
Spread: 42
|
|
||||||
Damage: -1
|
|
||||||
|
|
||||||
Tail:
|
Tail:
|
||||||
ReloadDelay: 30
|
ReloadDelay: 30
|
||||||
Range: 1c0
|
Range: 1c0
|
||||||
|
|||||||
@@ -280,7 +280,8 @@
|
|||||||
WithCrumbleOverlay:
|
WithCrumbleOverlay:
|
||||||
Demolishable:
|
Demolishable:
|
||||||
DamagedByTerrain:
|
DamagedByTerrain:
|
||||||
Weapon: weathering
|
Damage: 10
|
||||||
|
DamageInterval: 100
|
||||||
Terrain: Rock
|
Terrain: Rock
|
||||||
DamageThreshold: 50
|
DamageThreshold: 50
|
||||||
StartOnThreshold: true
|
StartOnThreshold: true
|
||||||
|
|||||||
@@ -216,11 +216,6 @@ grenade:
|
|||||||
Explosions: med_explosion
|
Explosions: med_explosion
|
||||||
ImpactSounds: EXPLLG5.WAV
|
ImpactSounds: EXPLLG5.WAV
|
||||||
|
|
||||||
Weathering:
|
|
||||||
ReloadDelay: 100
|
|
||||||
Warhead@1Dam: SpreadDamage
|
|
||||||
Damage: 10
|
|
||||||
|
|
||||||
GrenDeath:
|
GrenDeath:
|
||||||
Warhead@1Dam: SpreadDamage
|
Warhead@1Dam: SpreadDamage
|
||||||
Spread: 320
|
Spread: 320
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ WEEDGUY:
|
|||||||
|
|
||||||
UMAGON:
|
UMAGON:
|
||||||
Inherits: ^Soldier
|
Inherits: ^Soldier
|
||||||
|
Inherits@2: ^HealsOnTiberium
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 400
|
Cost: 400
|
||||||
Tooltip:
|
Tooltip:
|
||||||
@@ -35,9 +36,6 @@ UMAGON:
|
|||||||
Speed: 71
|
Speed: 71
|
||||||
Health:
|
Health:
|
||||||
HP: 150
|
HP: 150
|
||||||
DamagedByTerrain:
|
|
||||||
Weapon: TiberiumHeal
|
|
||||||
Terrain: Tiberium, BlueTiberium
|
|
||||||
Passenger:
|
Passenger:
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 7c0
|
Range: 7c0
|
||||||
@@ -83,6 +81,7 @@ CHAMSPY:
|
|||||||
|
|
||||||
MUTANT:
|
MUTANT:
|
||||||
Inherits: ^Soldier
|
Inherits: ^Soldier
|
||||||
|
Inherits@2: ^HealsOnTiberium
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 100
|
Cost: 100
|
||||||
Tooltip:
|
Tooltip:
|
||||||
@@ -91,9 +90,6 @@ MUTANT:
|
|||||||
VoiceSet: Mutant
|
VoiceSet: Mutant
|
||||||
Health:
|
Health:
|
||||||
HP: 50
|
HP: 50
|
||||||
DamagedByTerrain:
|
|
||||||
Weapon: TiberiumHeal
|
|
||||||
Terrain: Tiberium, BlueTiberium
|
|
||||||
Mobile:
|
Mobile:
|
||||||
Speed: 56
|
Speed: 56
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
@@ -109,6 +105,7 @@ MUTANT:
|
|||||||
|
|
||||||
MWMN:
|
MWMN:
|
||||||
Inherits: ^Soldier
|
Inherits: ^Soldier
|
||||||
|
Inherits@2: ^HealsOnTiberium
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 100
|
Cost: 100
|
||||||
Tooltip:
|
Tooltip:
|
||||||
@@ -117,9 +114,6 @@ MWMN:
|
|||||||
VoiceSet: CivilianFemale
|
VoiceSet: CivilianFemale
|
||||||
Health:
|
Health:
|
||||||
HP: 50
|
HP: 50
|
||||||
DamagedByTerrain:
|
|
||||||
Weapon: TiberiumHeal
|
|
||||||
Terrain: Tiberium, BlueTiberium
|
|
||||||
Mobile:
|
Mobile:
|
||||||
Speed: 56
|
Speed: 56
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
@@ -135,6 +129,7 @@ MWMN:
|
|||||||
|
|
||||||
MUTANT3:
|
MUTANT3:
|
||||||
Inherits: ^Soldier
|
Inherits: ^Soldier
|
||||||
|
Inherits@2: ^HealsOnTiberium
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 100
|
Cost: 100
|
||||||
Tooltip:
|
Tooltip:
|
||||||
@@ -143,9 +138,6 @@ MUTANT3:
|
|||||||
VoiceSet: Mutant
|
VoiceSet: Mutant
|
||||||
Health:
|
Health:
|
||||||
HP: 50
|
HP: 50
|
||||||
DamagedByTerrain:
|
|
||||||
Weapon: TiberiumHeal
|
|
||||||
Terrain: Tiberium, BlueTiberium
|
|
||||||
Mobile:
|
Mobile:
|
||||||
Speed: 56
|
Speed: 56
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
@@ -161,6 +153,7 @@ MUTANT3:
|
|||||||
|
|
||||||
TRATOS:
|
TRATOS:
|
||||||
Inherits: ^Soldier
|
Inherits: ^Soldier
|
||||||
|
Inherits@2: ^HealsOnTiberium
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 100
|
Cost: 100
|
||||||
Tooltip:
|
Tooltip:
|
||||||
@@ -169,9 +162,6 @@ TRATOS:
|
|||||||
VoiceSet: Tratos
|
VoiceSet: Tratos
|
||||||
Health:
|
Health:
|
||||||
HP: 200
|
HP: 200
|
||||||
DamagedByTerrain:
|
|
||||||
Weapon: TiberiumHeal
|
|
||||||
Terrain: Tiberium, BlueTiberium
|
|
||||||
Mobile:
|
Mobile:
|
||||||
Speed: 71
|
Speed: 71
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
@@ -219,15 +209,13 @@ SLAV:
|
|||||||
DOGGIE:
|
DOGGIE:
|
||||||
Inherits@1: ^Infantry
|
Inherits@1: ^Infantry
|
||||||
Inherits@2: ^RegularInfantryDeath
|
Inherits@2: ^RegularInfantryDeath
|
||||||
|
Inherits@3: ^HealsOnTiberium
|
||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Tiberian Fiend
|
Name: Tiberian Fiend
|
||||||
Health:
|
Health:
|
||||||
HP: 250
|
HP: 250
|
||||||
Shape: Circle
|
Shape: Circle
|
||||||
Radius: 213
|
Radius: 213
|
||||||
DamagedByTerrain:
|
|
||||||
Weapon: TiberiumHeal
|
|
||||||
Terrain: Tiberium, BlueTiberium
|
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 100
|
Cost: 100
|
||||||
Armor:
|
Armor:
|
||||||
|
|||||||
@@ -288,7 +288,9 @@
|
|||||||
ActorLostNotification:
|
ActorLostNotification:
|
||||||
DamagedByTerrain:
|
DamagedByTerrain:
|
||||||
Terrain: Tiberium, BlueTiberium
|
Terrain: Tiberium, BlueTiberium
|
||||||
Weapon: Tiberium
|
Damage: 2
|
||||||
|
DamageInterval: 16
|
||||||
|
DamageTypes: ExplosionDeath, TriggerVisceroid
|
||||||
Guard:
|
Guard:
|
||||||
Voice: Move
|
Voice: Move
|
||||||
Guardable:
|
Guardable:
|
||||||
@@ -376,6 +378,7 @@
|
|||||||
^Cyborg:
|
^Cyborg:
|
||||||
Inherits@1: ^Infantry
|
Inherits@1: ^Infantry
|
||||||
Inherits@2: ^EmpDisableMobile
|
Inherits@2: ^EmpDisableMobile
|
||||||
|
Inherits@3: ^HealsOnTiberium
|
||||||
ExplosionOnDamageTransition:
|
ExplosionOnDamageTransition:
|
||||||
Weapon: CyborgExplode
|
Weapon: CyborgExplode
|
||||||
DamageState: Critical
|
DamageState: Critical
|
||||||
@@ -387,9 +390,6 @@
|
|||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 4c0
|
Range: 4c0
|
||||||
MustBeDestroyed:
|
MustBeDestroyed:
|
||||||
DamagedByTerrain:
|
|
||||||
Weapon: TiberiumHeal
|
|
||||||
Terrain: Tiberium, BlueTiberium
|
|
||||||
WithPermanentInjury:
|
WithPermanentInjury:
|
||||||
WithInfantryBody:
|
WithInfantryBody:
|
||||||
AttackSequence: attack
|
AttackSequence: attack
|
||||||
@@ -419,6 +419,7 @@
|
|||||||
Inherits@2: ^ExistsInWorld
|
Inherits@2: ^ExistsInWorld
|
||||||
Inherits@3: ^EmpDisableMobile
|
Inherits@3: ^EmpDisableMobile
|
||||||
Inherits@4: ^Cloakable
|
Inherits@4: ^Cloakable
|
||||||
|
Inherits@5: ^DamagedByVeins
|
||||||
DrawLineToTarget:
|
DrawLineToTarget:
|
||||||
Mobile:
|
Mobile:
|
||||||
Crushes: crate
|
Crushes: crate
|
||||||
@@ -470,9 +471,6 @@
|
|||||||
Weapons: SmallDebris
|
Weapons: SmallDebris
|
||||||
Pieces: 3, 7
|
Pieces: 3, 7
|
||||||
Range: 2c0, 5c0
|
Range: 2c0, 5c0
|
||||||
DamagedByTerrain:
|
|
||||||
Weapon: Veins
|
|
||||||
Terrain: Veins
|
|
||||||
UpgradeOnDamage@DAMAGED:
|
UpgradeOnDamage@DAMAGED:
|
||||||
Upgrades: damagedspeed
|
Upgrades: damagedspeed
|
||||||
ValidDamageStates: Heavy
|
ValidDamageStates: Heavy
|
||||||
@@ -609,6 +607,7 @@
|
|||||||
^Visceroid:
|
^Visceroid:
|
||||||
Inherits@1: ^ExistsInWorld
|
Inherits@1: ^ExistsInWorld
|
||||||
Inherits@2: ^SpriteActor
|
Inherits@2: ^SpriteActor
|
||||||
|
Inherits@3: ^HealsOnTiberium
|
||||||
DrawLineToTarget:
|
DrawLineToTarget:
|
||||||
Health:
|
Health:
|
||||||
Shape: Circle
|
Shape: Circle
|
||||||
@@ -638,9 +637,6 @@
|
|||||||
TargetTypes: Ground, Creep
|
TargetTypes: Ground, Creep
|
||||||
AttackMove:
|
AttackMove:
|
||||||
HiddenUnderFog:
|
HiddenUnderFog:
|
||||||
DamagedByTerrain:
|
|
||||||
Weapon: TiberiumHeal
|
|
||||||
Terrain: Tiberium, BlueTiberium
|
|
||||||
Guardable:
|
Guardable:
|
||||||
WithSpriteBody:
|
WithSpriteBody:
|
||||||
|
|
||||||
@@ -871,3 +867,23 @@
|
|||||||
WallConnections: 0,-1, 0,3
|
WallConnections: 0,-1, 0,3
|
||||||
LineBuildNode:
|
LineBuildNode:
|
||||||
Connections: 0,-1, 0,1
|
Connections: 0,-1, 0,1
|
||||||
|
|
||||||
|
^HealsOnTiberium:
|
||||||
|
DamagedByTerrain:
|
||||||
|
Damage: -2
|
||||||
|
DamageInterval: 16
|
||||||
|
Terrain: Tiberium, BlueTiberium
|
||||||
|
|
||||||
|
^DamagedByVeins:
|
||||||
|
DamagedByTerrain@VEINS:
|
||||||
|
Damage: 5
|
||||||
|
DamageInterval: 16
|
||||||
|
DamageTypes: BulletDeath
|
||||||
|
Terrain: Veins
|
||||||
|
UpgradeOnTerrain@VEINS:
|
||||||
|
TerrainTypes: Veins
|
||||||
|
Upgrades: veins
|
||||||
|
WithIdleOverlay@VEINS:
|
||||||
|
Sequence: veins
|
||||||
|
UpgradeTypes: veins
|
||||||
|
UpgradeMinEnabledLevel: 1
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ JUMPJET:
|
|||||||
|
|
||||||
GHOST:
|
GHOST:
|
||||||
Inherits: ^Soldier
|
Inherits: ^Soldier
|
||||||
|
Inherits@2: ^HealsOnTiberium
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 1750
|
Cost: 1750
|
||||||
Tooltip:
|
Tooltip:
|
||||||
@@ -113,9 +114,6 @@ GHOST:
|
|||||||
Speed: 56
|
Speed: 56
|
||||||
Health:
|
Health:
|
||||||
HP: 200
|
HP: 200
|
||||||
DamagedByTerrain:
|
|
||||||
Weapon: TiberiumHeal
|
|
||||||
Terrain: Tiberium, BlueTiberium
|
|
||||||
Passenger:
|
Passenger:
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 6c0
|
Range: 6c0
|
||||||
|
|||||||
@@ -93,7 +93,9 @@ HVR:
|
|||||||
TrailWhileStationary: True
|
TrailWhileStationary: True
|
||||||
StationaryInterval: 18
|
StationaryInterval: 18
|
||||||
MovingInterval: 6
|
MovingInterval: 6
|
||||||
-DamagedByTerrain:
|
-DamagedByTerrain@VEINS:
|
||||||
|
-UpgradeOnTerrain@VEINS:
|
||||||
|
-WithIdleOverlay@VEINS:
|
||||||
|
|
||||||
SMECH:
|
SMECH:
|
||||||
Inherits: ^Vehicle
|
Inherits: ^Vehicle
|
||||||
@@ -132,7 +134,9 @@ SMECH:
|
|||||||
MoveSequence: run
|
MoveSequence: run
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 20, 32, 0, -8
|
Bounds: 20, 32, 0, -8
|
||||||
-DamagedByTerrain:
|
-DamagedByTerrain@VEINS:
|
||||||
|
-UpgradeOnTerrain@VEINS:
|
||||||
|
-WithIdleOverlay@VEINS:
|
||||||
|
|
||||||
MMCH:
|
MMCH:
|
||||||
Inherits: ^Tank
|
Inherits: ^Tank
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ CYC2:
|
|||||||
|
|
||||||
MHIJACK:
|
MHIJACK:
|
||||||
Inherits: ^Soldier
|
Inherits: ^Soldier
|
||||||
|
Inherits@2: ^HealsOnTiberium
|
||||||
Buildable:
|
Buildable:
|
||||||
Queue: Infantry
|
Queue: Infantry
|
||||||
BuildPaletteOrder: 60
|
BuildPaletteOrder: 60
|
||||||
@@ -109,9 +110,6 @@ MHIJACK:
|
|||||||
VoiceSet: Hijacker
|
VoiceSet: Hijacker
|
||||||
Health:
|
Health:
|
||||||
HP: 300
|
HP: 300
|
||||||
DamagedByTerrain:
|
|
||||||
Weapon: TiberiumHeal
|
|
||||||
Terrain: Tiberium, BlueTiberium
|
|
||||||
Mobile:
|
Mobile:
|
||||||
Speed: 99
|
Speed: 99
|
||||||
-Crushable:
|
-Crushable:
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ BGGY:
|
|||||||
Voice: Attack
|
Voice: Attack
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
WithMuzzleOverlay:
|
WithMuzzleOverlay:
|
||||||
-DamagedByTerrain:
|
-DamagedByTerrain@VEINS:
|
||||||
|
-UpgradeOnTerrain@VEINS:
|
||||||
|
-WithIdleOverlay@VEINS:
|
||||||
|
|
||||||
BIKE:
|
BIKE:
|
||||||
Inherits: ^VoxelVehicle
|
Inherits: ^VoxelVehicle
|
||||||
@@ -257,7 +259,9 @@ WEED:
|
|||||||
-WithVoxelBody:
|
-WithVoxelBody:
|
||||||
WithVoxelUnloadBody:
|
WithVoxelUnloadBody:
|
||||||
-GainsExperience:
|
-GainsExperience:
|
||||||
-DamagedByTerrain:
|
-DamagedByTerrain@VEINS:
|
||||||
|
-UpgradeOnTerrain@VEINS:
|
||||||
|
-WithIdleOverlay@VEINS:
|
||||||
|
|
||||||
SAPC:
|
SAPC:
|
||||||
Inherits: ^VoxelTank
|
Inherits: ^VoxelTank
|
||||||
|
|||||||
@@ -96,7 +96,9 @@ HARV:
|
|||||||
FactionImages:
|
FactionImages:
|
||||||
gdi: harv.gdi
|
gdi: harv.gdi
|
||||||
nod: harv.nod
|
nod: harv.nod
|
||||||
-DamagedByTerrain:
|
-DamagedByTerrain@VEINS:
|
||||||
|
-UpgradeOnTerrain@VEINS:
|
||||||
|
-WithIdleOverlay@VEINS:
|
||||||
|
|
||||||
LPST:
|
LPST:
|
||||||
Inherits: ^VoxelTank
|
Inherits: ^VoxelTank
|
||||||
|
|||||||
@@ -168,10 +168,6 @@ explosion:
|
|||||||
small_grey_explosion: xgrysml2
|
small_grey_explosion: xgrysml2
|
||||||
medium_grey_explosion: xgrymed1
|
medium_grey_explosion: xgrymed1
|
||||||
large_grey_explosion: xgrymed2
|
large_grey_explosion: xgrymed2
|
||||||
veins: veinatac
|
|
||||||
Length: 12
|
|
||||||
UseTilesetExtension: true
|
|
||||||
ZOffset: 1023
|
|
||||||
|
|
||||||
discus:
|
discus:
|
||||||
idle:
|
idle:
|
||||||
|
|||||||
@@ -1,51 +1,48 @@
|
|||||||
mcv.gdi:
|
^VehicleOverlays:
|
||||||
emp-overlay: emp_fx01
|
emp-overlay: emp_fx01
|
||||||
Length: *
|
Length: *
|
||||||
BlendMode: Additive
|
BlendMode: Additive
|
||||||
|
veins: veinatac
|
||||||
|
Length: 12
|
||||||
|
UseTilesetExtension: true
|
||||||
|
ZOffset: 1023
|
||||||
|
Offset: 0, -12
|
||||||
|
|
||||||
|
mcv.gdi:
|
||||||
|
Inherits: ^VehicleOverlays
|
||||||
icon: sidebar-gdi|mcvicon
|
icon: sidebar-gdi|mcvicon
|
||||||
|
|
||||||
mcv.nod:
|
mcv.nod:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: sidebar-nod|mcvicon
|
icon: sidebar-nod|mcvicon
|
||||||
|
|
||||||
apc:
|
apc:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: apcicon
|
icon: apcicon
|
||||||
|
|
||||||
harv.gdi:
|
harv.gdi:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
harvest: harvestr
|
harvest: harvestr
|
||||||
Length: *
|
Length: *
|
||||||
icon: sidebar-gdi|harvicon
|
icon: sidebar-gdi|harvicon
|
||||||
|
|
||||||
harv.nod:
|
harv.nod:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
harvest: harvestr
|
harvest: harvestr
|
||||||
Length: *
|
Length: *
|
||||||
icon: sidebar-nod|harvicon
|
icon: sidebar-nod|harvicon
|
||||||
|
|
||||||
hvr:
|
hvr:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: hovricon
|
icon: hovricon
|
||||||
|
|
||||||
4tnk:
|
4tnk:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
muzzle: gunfire
|
muzzle: gunfire
|
||||||
Length: *
|
Length: *
|
||||||
|
|
||||||
lpst.gdi:
|
lpst.gdi:
|
||||||
|
Inherits: ^VehicleOverlays
|
||||||
idle: gadpsa
|
idle: gadpsa
|
||||||
Offset: 0, -12
|
Offset: 0, -12
|
||||||
ShadowStart: 3
|
ShadowStart: 3
|
||||||
@@ -53,12 +50,10 @@ lpst.gdi:
|
|||||||
Offset: 0, -12
|
Offset: 0, -12
|
||||||
Length: 36
|
Length: 36
|
||||||
ShadowStart: 36
|
ShadowStart: 36
|
||||||
emp-overlay: emp_fx01
|
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: sidebar-gdi|lpsticon
|
icon: sidebar-gdi|lpsticon
|
||||||
|
|
||||||
lpst.nod:
|
lpst.nod:
|
||||||
|
Inherits: ^VehicleOverlays
|
||||||
idle: gadpsa
|
idle: gadpsa
|
||||||
Offset: 0, -12
|
Offset: 0, -12
|
||||||
ShadowStart: 3
|
ShadowStart: 3
|
||||||
@@ -66,42 +61,30 @@ lpst.nod:
|
|||||||
Offset: 0, -12
|
Offset: 0, -12
|
||||||
Length: 36
|
Length: 36
|
||||||
ShadowStart: 36
|
ShadowStart: 36
|
||||||
emp-overlay: emp_fx01
|
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: sidebar-nod|lpsticon
|
icon: sidebar-nod|lpsticon
|
||||||
|
|
||||||
repair:
|
repair:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: rboticon
|
icon: rboticon
|
||||||
|
|
||||||
art2:
|
art2:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: artyicon
|
icon: artyicon
|
||||||
|
|
||||||
weed:
|
weed:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: weedicon
|
icon: weedicon
|
||||||
|
|
||||||
hmec:
|
hmec:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: hmecicon
|
icon: hmecicon
|
||||||
|
|
||||||
bike:
|
bike:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: cyclicon
|
icon: cyclicon
|
||||||
|
|
||||||
bggy:
|
bggy:
|
||||||
|
Inherits: ^VehicleOverlays
|
||||||
Defaults:
|
Defaults:
|
||||||
Length: *
|
Length: *
|
||||||
muzzle0: mgun-n
|
muzzle0: mgun-n
|
||||||
@@ -112,29 +95,22 @@ bggy:
|
|||||||
muzzle5: mgun-se
|
muzzle5: mgun-se
|
||||||
muzzle6: mgun-e
|
muzzle6: mgun-e
|
||||||
muzzle7: mgun-ne
|
muzzle7: mgun-ne
|
||||||
emp-overlay: emp_fx01
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: bggyicon
|
icon: bggyicon
|
||||||
|
|
||||||
sapc:
|
sapc:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: sapcicon
|
icon: sapcicon
|
||||||
|
|
||||||
subtank:
|
subtank:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: subticon
|
icon: subticon
|
||||||
|
|
||||||
sonic:
|
sonic:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: soniicon
|
icon: soniicon
|
||||||
|
|
||||||
ttnk:
|
ttnk:
|
||||||
|
Inherits: ^VehicleOverlays
|
||||||
idle: gatick
|
idle: gatick
|
||||||
ShadowStart: 3
|
ShadowStart: 3
|
||||||
Offset: 0, -12
|
Offset: 0, -12
|
||||||
@@ -148,18 +124,14 @@ ttnk:
|
|||||||
Offset: 0, -12
|
Offset: 0, -12
|
||||||
muzzle: gunfire
|
muzzle: gunfire
|
||||||
Length: *
|
Length: *
|
||||||
emp-overlay: emp_fx01
|
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: tickicon
|
icon: tickicon
|
||||||
|
|
||||||
stnk:
|
stnk:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: stnkicon
|
icon: stnkicon
|
||||||
|
|
||||||
mmch:
|
mmch:
|
||||||
|
Inherits: ^VehicleOverlays
|
||||||
stand:
|
stand:
|
||||||
Facings: -8
|
Facings: -8
|
||||||
Stride: 15
|
Stride: 15
|
||||||
@@ -173,21 +145,17 @@ mmch:
|
|||||||
Facings: -32
|
Facings: -32
|
||||||
muzzle: gunfire
|
muzzle: gunfire
|
||||||
Length: *
|
Length: *
|
||||||
emp-overlay: emp_fx01
|
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: mmchicon
|
icon: mmchicon
|
||||||
|
|
||||||
gghunt:
|
gghunt:
|
||||||
|
Inherits: ^VehicleOverlays
|
||||||
idle:
|
idle:
|
||||||
Facings: 1
|
Facings: 1
|
||||||
Length: 8
|
Length: 8
|
||||||
ShadowStart: 8
|
ShadowStart: 8
|
||||||
emp-overlay: emp_fx01
|
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
|
|
||||||
smech:
|
smech:
|
||||||
|
Inherits: ^VehicleOverlays
|
||||||
Defaults:
|
Defaults:
|
||||||
Offset: 0,0,8
|
Offset: 0,0,8
|
||||||
stand:
|
stand:
|
||||||
@@ -204,67 +172,34 @@ smech:
|
|||||||
Facings: -8
|
Facings: -8
|
||||||
ShadowStart: 240
|
ShadowStart: 240
|
||||||
Tick: 100
|
Tick: 100
|
||||||
emp-overlay: emp_fx01
|
|
||||||
Length: *
|
|
||||||
BlendMode: Additive
|
|
||||||
icon: smchicon
|
icon: smchicon
|
||||||
|
|
||||||
trucka:
|
trucka:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
ZOffset: 512
|
|
||||||
BlendMode: Additive
|
|
||||||
|
|
||||||
truckb:
|
truckb:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
ZOffset: 512
|
|
||||||
BlendMode: Additive
|
|
||||||
|
|
||||||
icbm:
|
icbm:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
ZOffset: 512
|
|
||||||
BlendMode: Additive
|
|
||||||
|
|
||||||
bus:
|
bus:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
ZOffset: 512
|
|
||||||
BlendMode: Additive
|
|
||||||
|
|
||||||
pick:
|
pick:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
ZOffset: 512
|
|
||||||
BlendMode: Additive
|
|
||||||
|
|
||||||
car:
|
car:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
ZOffset: 512
|
|
||||||
BlendMode: Additive
|
|
||||||
|
|
||||||
wini:
|
wini:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
ZOffset: 512
|
|
||||||
BlendMode: Additive
|
|
||||||
|
|
||||||
locomotive:
|
locomotive:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
ZOffset: 512
|
|
||||||
BlendMode: Additive
|
|
||||||
|
|
||||||
traincar:
|
traincar:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
ZOffset: 512
|
|
||||||
BlendMode: Additive
|
|
||||||
|
|
||||||
cargocar:
|
cargocar:
|
||||||
emp-overlay: emp_fx01
|
Inherits: ^VehicleOverlays
|
||||||
Length: *
|
|
||||||
ZOffset: 512
|
|
||||||
BlendMode: Additive
|
|
||||||
|
|||||||
@@ -23,9 +23,3 @@ Repair:
|
|||||||
Spread: 213
|
Spread: 213
|
||||||
Damage: -50
|
Damage: -50
|
||||||
ValidTargets: Repair
|
ValidTargets: Repair
|
||||||
|
|
||||||
TiberiumHeal:
|
|
||||||
ReloadDelay: 16
|
|
||||||
Warhead@1Dam: SpreadDamage
|
|
||||||
Spread: 42
|
|
||||||
Damage: -2
|
|
||||||
|
|||||||
@@ -61,13 +61,6 @@ SlimeAttack:
|
|||||||
Concrete: 20
|
Concrete: 20
|
||||||
DamageTypes: Prone100Percent, TriggerProne, SmallExplosionDeath
|
DamageTypes: Prone100Percent, TriggerProne, SmallExplosionDeath
|
||||||
|
|
||||||
Tiberium:
|
|
||||||
ReloadDelay: 16
|
|
||||||
Warhead@1Dam: SpreadDamage
|
|
||||||
Spread: 42
|
|
||||||
Damage: 2
|
|
||||||
DamageTypes: ExplosionDeath, TriggerVisceroid
|
|
||||||
|
|
||||||
Veins:
|
Veins:
|
||||||
ReloadDelay: 16
|
ReloadDelay: 16
|
||||||
Warhead@Damage: SpreadDamage
|
Warhead@Damage: SpreadDamage
|
||||||
|
|||||||
Reference in New Issue
Block a user