This commit is contained in:
alzeih
2010-08-31 19:10:53 +12:00
parent af157867d8
commit c88ea2bd7c
9 changed files with 420 additions and 142 deletions

View File

@@ -12,47 +12,54 @@ using System.Collections.Generic;
using OpenRA.Effects; using OpenRA.Effects;
using OpenRA.FileFormats; using OpenRA.FileFormats;
using OpenRA.Traits; using OpenRA.Traits;
using System.Linq;
namespace OpenRA.GameRules namespace OpenRA.GameRules
{ {
public class WarheadInfo public class WarheadInfo
{ {
public readonly int Spread = 1; // distance (in pixels) from the explosion center at which damage is 1/2. [FieldLoader.Load] public readonly int Spread = 1; // distance (in pixels) from the explosion center at which damage is 1/2.
public readonly float[] Verses = { 1, 1, 1, 1, 1 }; // damage vs each armortype [FieldLoader.LoadUsing( "LoadVersus" )]
public readonly bool Ore = false; // can this damage ore? public readonly Dictionary<string, float> Versus; // damage vs each armortype
public readonly string Explosion = null; // explosion effect to use [FieldLoader.Load] public readonly bool Ore = false; // can this damage ore?
public readonly string WaterExplosion = null; // explosion effect on hitting water (usually a splash) [FieldLoader.Load] public readonly string Explosion = null; // explosion effect to use
public readonly string SmudgeType = null; // type of smudge to apply [FieldLoader.Load] public readonly string WaterExplosion = null; // explosion effect on hitting water (usually a splash)
public readonly int[] Size = { 0, 0 }; // size of the explosion. provide 2 values for a ring effect (outer/inner) [FieldLoader.Load] public readonly string SmudgeType = null; // type of smudge to apply
public readonly int InfDeath = 0; // infantry death animation to use [FieldLoader.Load] public readonly int[] Size = { 0, 0 }; // size of the explosion. provide 2 values for a ring effect (outer/inner)
public readonly string ImpactSound = null; // sound to play on impact [FieldLoader.Load] public readonly int InfDeath = 0; // infantry death animation to use
public readonly string WaterImpactSound = null; // sound to play on impact with water [FieldLoader.Load] public readonly string ImpactSound = null; // sound to play on impact
public readonly int Damage = 0; // how much (raw) damage to deal [FieldLoader.Load] public readonly string WaterImpactSound = null; // sound to play on impact with water
public readonly int Delay = 0; // delay in ticks before dealing the damage. 0=instant (old model) [FieldLoader.Load] public readonly int Damage = 0; // how much (raw) damage to deal
public readonly DamageModel DamageModel = DamageModel.Normal; // which damage model to use [FieldLoader.Load] public readonly int Delay = 0; // delay in ticks before dealing the damage. 0=instant (old model)
[FieldLoader.Load] public readonly DamageModel DamageModel = DamageModel.Normal; // which damage model to use
public float EffectivenessAgainst(Actor self) public float EffectivenessAgainst(Actor self)
{ {
var health = self.Info.Traits.GetOrDefault<HealthInfo>(); var health = self.Info.Traits.GetOrDefault<HealthInfo>();
if (health == null) return 0f; if (health == null) return 0f;
var armor = self.Info.Traits.GetOrDefault<ArmorInfo>();
if (armor == null || armor.Type == null) return 1;
return Verses[(int)(health.Armor)]; float versus;
return Versus.TryGetValue(armor.Type, out versus) ? versus : 1;
} }
public WarheadInfo( MiniYaml yaml ) public WarheadInfo( MiniYaml yaml )
{ {
FieldLoader.Load( this, yaml ); FieldLoader.Load( this, yaml );
} }
static object LoadVersus( MiniYaml y )
{
return y.NodesDict.ContainsKey( "Versus" )
? y.NodesDict[ "Versus" ].NodesDict.ToDictionary(
a => a.Key,
a => (float)FieldLoader.GetValue( "(value)", typeof( float ), a.Value.Value ) )
: new Dictionary<string, float>();
}
} }
public enum ArmorType
{
none = 0,
wood = 1,
light = 2,
heavy = 3,
concrete = 4,
}
public enum DamageModel public enum DamageModel
{ {

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -225,6 +225,7 @@
<Compile Include="GameRules\Settings.cs" /> <Compile Include="GameRules\Settings.cs" />
<Compile Include="Support\Arguments.cs" /> <Compile Include="Support\Arguments.cs" />
<Compile Include="Traits\ActorStance.cs" /> <Compile Include="Traits\ActorStance.cs" />
<Compile Include="Traits\Armor.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\OpenRA.FileFormats\OpenRA.FileFormats.csproj"> <ProjectReference Include="..\OpenRA.FileFormats\OpenRA.FileFormats.csproj">
@@ -270,4 +271,4 @@
<Target Name="AfterBuild"> <Target Name="AfterBuild">
</Target> </Target>
--> -->
</Project> </Project>

View File

@@ -0,0 +1,26 @@
#region Copyright & License Information
/*
* Copyright 2007-2010 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see LICENSE.
*/
#endregion
using System;
using OpenRA.Traits;
using OpenRA.GameRules;
using System.Collections.Generic;
using OpenRA.FileFormats;
namespace OpenRA.Traits
{
public class ArmorInfo : ITraitInfo
{
[FieldLoader.Load] public readonly string Type = null;
public object Create (ActorInitializer init) { return new Armor(); }
}
public class Armor {}
}

View File

@@ -22,7 +22,6 @@ namespace OpenRA.Traits
public class HealthInfo : ITraitInfo public class HealthInfo : ITraitInfo
{ {
public readonly int HP = 0; public readonly int HP = 0;
public readonly ArmorType Armor = ArmorType.none;
public virtual object Create(ActorInitializer init) { return new Health(init, this); } public virtual object Create(ActorInitializer init) { return new Health(init, this); }
} }

View File

@@ -7,7 +7,8 @@ FCOM:
Capturable: true Capturable: true
Health: Health:
HP: 400 HP: 400
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
Bib: Bib:
@@ -126,7 +127,8 @@ MISS:
Capturable: true Capturable: true
Health: Health:
HP: 400 HP: 400
Armor: wood Armor:
Type: Wood
Bib: Bib:
BR1: BR1:

View File

@@ -55,7 +55,8 @@
^Infantry: ^Infantry:
AppearsOnRadar: AppearsOnRadar:
Health: Health:
Armor: none Armor:
Type: None
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Mobile: Mobile:
@@ -162,7 +163,8 @@
-RepairableBuilding: -RepairableBuilding:
Health: Health:
HP: 400 HP: 400
Armor: wood Armor:
Type: Wood
Tooltip: Tooltip:
Name: Civilian Building Name: Civilian Building
@@ -187,7 +189,8 @@
^Husk: ^Husk:
Health: Health:
HP: 140 HP: 140
Armor: Heavy Armor:
Type: Heavy
Husk: Husk:
Selectable: Selectable:
Priority: -1 Priority: -1

View File

@@ -19,7 +19,8 @@ MSLO:
Dimensions: 2,1 Dimensions: 2,1
Health: Health:
HP: 400 HP: 400
Armor: heavy Armor:
Type: Heavy
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
IronCurtainable: IronCurtainable:
@@ -46,7 +47,8 @@ GAP:
Capturable: true Capturable: true
Health: Health:
HP: 1000 HP: 1000
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
IronCurtainable: IronCurtainable:
@@ -78,7 +80,8 @@ SPEN:
WaterBound: yes WaterBound: yes
Health: Health:
HP: 1000 HP: 1000
Armor: light Armor:
Type: Light
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Exit@1: Exit@1:
@@ -132,7 +135,8 @@ SYRD:
WaterBound: yes WaterBound: yes
Health: Health:
HP: 1000 HP: 1000
Armor: light Armor:
Type: Light
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Exit@1: Exit@1:
@@ -181,7 +185,8 @@ IRON:
Capturable: true Capturable: true
Health: Health:
HP: 400 HP: 400
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
Bib: Bib:
@@ -210,7 +215,8 @@ PDOX:
Capturable: true Capturable: true
Health: Health:
HP: 400 HP: 400
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
Bib: Bib:
@@ -240,7 +246,8 @@ TSLA:
Dimensions: 1,2 Dimensions: 1,2
Health: Health:
HP: 400 HP: 400
Armor: heavy Armor:
Type: Heavy
RevealsShroud: RevealsShroud:
Range: 8 Range: 8
RenderBuildingCharge: RenderBuildingCharge:
@@ -273,7 +280,8 @@ AGUN:
Dimensions: 1,2 Dimensions: 1,2
Health: Health:
HP: 400 HP: 400
Armor: heavy Armor:
Type: Heavy
RevealsShroud: RevealsShroud:
Range: 6 Range: 6
Turreted: Turreted:
@@ -310,7 +318,8 @@ DOME:
Capturable: true Capturable: true
Health: Health:
HP: 1000 HP: 1000
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
Bib: Bib:
@@ -334,7 +343,8 @@ PBOX:
Power: -15 Power: -15
Health: Health:
HP: 400 HP: 400
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 6 Range: 6
AttackOmni: AttackOmni:
@@ -360,7 +370,8 @@ HBOX:
Power: -15 Power: -15
Health: Health:
HP: 600 HP: 600
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 6 Range: 6
AttackOmni: AttackOmni:
@@ -386,7 +397,8 @@ GUN:
Power: -40 Power: -40
Health: Health:
HP: 400 HP: 400
Armor: heavy Armor:
Type: Heavy
RevealsShroud: RevealsShroud:
Range: 7 Range: 7
Turreted: Turreted:
@@ -417,7 +429,8 @@ FTUR:
Power: -20 Power: -20
Health: Health:
HP: 400 HP: 400
Armor: heavy Armor:
Type: Heavy
RevealsShroud: RevealsShroud:
Range: 6 Range: 6
AttackOmni: AttackOmni:
@@ -446,7 +459,8 @@ SAM:
Dimensions: 2,1 Dimensions: 2,1
Health: Health:
HP: 400 HP: 400
Armor: heavy Armor:
Type: Heavy
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Turreted: Turreted:
@@ -481,7 +495,8 @@ ATEK:
Capturable: true Capturable: true
Health: Health:
HP: 400 HP: 400
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
Bib: Bib:
@@ -508,7 +523,8 @@ WEAP:
Capturable: true Capturable: true
Health: Health:
HP: 1000 HP: 1000
Armor: light Armor:
Type: Light
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
@@ -531,7 +547,8 @@ FACT:
Capturable: true Capturable: true
Health: Health:
HP: 1000 HP: 1000
Armor: heavy Armor:
Type: Heavy
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Bib: Bib:
@@ -570,7 +587,8 @@ PROC:
Capturable: true Capturable: true
Health: Health:
HP: 900 HP: 900
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 6 Range: 6
Bib: Bib:
@@ -606,7 +624,8 @@ SILO:
Capturable: true Capturable: true
Health: Health:
HP: 300 HP: 300
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
RenderBuildingOre: RenderBuildingOre:
@@ -637,7 +656,8 @@ HPAD:
Capturable: true Capturable: true
Health: Health:
HP: 800 HP: 800
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Bib: Bib:
@@ -671,7 +691,8 @@ AFLD:
Capturable: true Capturable: true
Health: Health:
HP: 1000 HP: 1000
Armor: heavy Armor:
Type: Heavy
RevealsShroud: RevealsShroud:
Range: 7 Range: 7
Exit@1: Exit@1:
@@ -704,7 +725,8 @@ POWR:
Capturable: true Capturable: true
Health: Health:
HP: 400 HP: 400
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
@@ -731,7 +753,8 @@ APWR:
Capturable: true Capturable: true
Health: Health:
HP: 700 HP: 700
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
@@ -758,7 +781,8 @@ STEK:
Capturable: true Capturable: true
Health: Health:
HP: 600 HP: 600
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
@@ -785,7 +809,8 @@ BARR:
Capturable: true Capturable: true
Health: Health:
HP: 800 HP: 800
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Bib: Bib:
@@ -822,7 +847,8 @@ TENT:
Capturable: true Capturable: true
Health: Health:
HP: 800 HP: 800
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Bib: Bib:
@@ -858,7 +884,8 @@ FIX:
Capturable: true Capturable: true
Health: Health:
HP: 800 HP: 800
Armor: wood Armor:
Type: Wood
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
BelowUnits: BelowUnits:
@@ -1020,7 +1047,8 @@ SBAG:
Description: Stops infantry and blocks enemy fire.\nCan be crushed by tanks. Description: Stops infantry and blocks enemy fire.\nCan be crushed by tanks.
Health: Health:
HP: 300 HP: 300
Armor: none Armor:
Type: None
FENC: FENC:
Inherits: ^Wall Inherits: ^Wall
@@ -1037,7 +1065,8 @@ FENC:
Description: Stops infantry and blocks enemy fire.\nCan be crushed by tanks. Description: Stops infantry and blocks enemy fire.\nCan be crushed by tanks.
Health: Health:
HP: 300 HP: 300
Armor: none Armor:
Type: None
BRIK: BRIK:
Inherits: ^Wall Inherits: ^Wall
@@ -1057,23 +1086,27 @@ BRIK:
DestroyedSound: kaboom30.aud DestroyedSound: kaboom30.aud
Health: Health:
HP: 1500 HP: 1500
Armor: none Armor:
Type: None
Wall: Wall:
CrushClasses: heavywall CrushClasses: heavywall
CYCL: CYCL:
Inherits: ^Wall Inherits: ^Wall
Health: Health:
HP: 100 HP: 100
Armor: none Armor:
Type: None
BARB: BARB:
Inherits: ^Wall Inherits: ^Wall
Health: Health:
HP: 100 HP: 100
Armor: none Armor:
Type: None
WOOD: WOOD:
Inherits: ^Wall Inherits: ^Wall
Health: Health:
HP: 100 HP: 100
Armor: none Armor:
Type: None

View File

@@ -4,7 +4,8 @@ BADR:
Inherits: ^Plane Inherits: ^Plane
Health: Health:
HP: 60 HP: 60
Armor: light Armor:
Type: Light
Plane: Plane:
ROT: 5 ROT: 5
Speed: 16 Speed: 16
@@ -24,7 +25,8 @@ BADR.bomber:
Inherits: ^Plane Inherits: ^Plane
Health: Health:
HP: 60 HP: 60
Armor: light Armor:
Type: Light
Plane: Plane:
ROT: 5 ROT: 5
Speed: 16 Speed: 16
@@ -51,7 +53,8 @@ V2RL:
Description: Long-range rocket artillery.\n Strong vs Infantry, Buildings\n Weak vs Tanks, Aircraft Description: Long-range rocket artillery.\n Strong vs Infantry, Buildings\n Weak vs Tanks, Aircraft
Health: Health:
HP: 150 HP: 150
Armor: light Armor:
Type: Light
Mobile: Mobile:
Speed: 7 Speed: 7
RevealsShroud: RevealsShroud:
@@ -78,7 +81,8 @@ V2RL:
Description: Light Tank, good for scouting.\n Strong vs Light Vehicles\n Weak vs Tanks, Aircraft Description: Light Tank, good for scouting.\n Strong vs Light Vehicles\n Weak vs Tanks, Aircraft
Health: Health:
HP: 300 HP: 300
Armor: heavy Armor:
Type: Heavy
Mobile: Mobile:
Speed: 9 Speed: 9
RevealsShroud: RevealsShroud:
@@ -110,7 +114,8 @@ V2RL:
Description: Allied Main Battle Tank.\n Strong vs Tanks, Light Vehicles\n Weak vs Infantry, Aircraft Description: Allied Main Battle Tank.\n Strong vs Tanks, Light Vehicles\n Weak vs Infantry, Aircraft
Health: Health:
HP: 400 HP: 400
Armor: heavy Armor:
Type: Heavy
Mobile: Mobile:
Speed: 7 Speed: 7
RevealsShroud: RevealsShroud:
@@ -142,7 +147,8 @@ V2RL:
Description: Soviet Main Battle Tank, with dual cannons\n Strong vs Tanks, Light Vehicles\n Weak vs Infantry, Aircraft Description: Soviet Main Battle Tank, with dual cannons\n Strong vs Tanks, Light Vehicles\n Weak vs Infantry, Aircraft
Health: Health:
HP: 550 HP: 550
Armor: heavy Armor:
Type: Heavy
Mobile: Mobile:
Speed: 5 Speed: 5
RevealsShroud: RevealsShroud:
@@ -174,7 +180,8 @@ V2RL:
Description: Big and slow tank, with anti-air capability.\n Strong vs Tanks, Aircraft\n Weak vs Infantry Description: Big and slow tank, with anti-air capability.\n Strong vs Tanks, Aircraft\n Weak vs Infantry
Health: Health:
HP: 750 HP: 750
Armor: heavy Armor:
Type: Heavy
Mobile: Mobile:
Speed: 3 Speed: 3
RevealsShroud: RevealsShroud:
@@ -213,7 +220,8 @@ ARTY:
Description: Long-range artillery.\n Strong vs Infantry, Buildings\n Weak vs Tanks, Aircraft Description: Long-range artillery.\n Strong vs Infantry, Buildings\n Weak vs Tanks, Aircraft
Health: Health:
HP: 75 HP: 75
Armor: light Armor:
Type: Light
Mobile: Mobile:
ROT: 2 ROT: 2
Speed: 6 Speed: 6
@@ -244,7 +252,8 @@ HARV:
Resources: Ore,Gems Resources: Ore,Gems
Health: Health:
HP: 600 HP: 600
Armor: heavy Armor:
Type: Heavy
Mobile: Mobile:
Speed: 6 Speed: 6
RevealsShroud: RevealsShroud:
@@ -267,7 +276,8 @@ MCV:
Priority: 3 Priority: 3
Health: Health:
HP: 600 HP: 600
Armor: light Armor:
Type: Light
Mobile: Mobile:
Speed: 6 Speed: 6
RevealsShroud: RevealsShroud:
@@ -296,7 +306,8 @@ JEEP:
Description: Fast scout & anti-infantry vehicle.\n Strong vs Infantry\n Weak vs Tanks, Aircraft Description: Fast scout & anti-infantry vehicle.\n Strong vs Infantry\n Weak vs Tanks, Aircraft
Health: Health:
HP: 150 HP: 150
Armor: light Armor:
Type: Light
Mobile: Mobile:
ROT: 10 ROT: 10
Speed: 12 Speed: 12
@@ -325,7 +336,8 @@ APC:
Description: Tough infantry transport.\n Strong vs Infantry, Light Vehicles\n Weak vs Tanks, Aircraft Description: Tough infantry transport.\n Strong vs Infantry, Light Vehicles\n Weak vs Tanks, Aircraft
Health: Health:
HP: 200 HP: 200
Armor: heavy Armor:
Type: Heavy
Mobile: Mobile:
Speed: 10 Speed: 10
RevealsShroud: RevealsShroud:
@@ -357,7 +369,8 @@ MNLY.AP:
Description: Lays mines to destroy unwary enemy units.\n Unarmed Description: Lays mines to destroy unwary enemy units.\n Unarmed
Health: Health:
HP: 100 HP: 100
Armor: heavy Armor:
Type: Heavy
Mobile: Mobile:
Speed: 9 Speed: 9
RevealsShroud: RevealsShroud:
@@ -385,7 +398,8 @@ MNLY.AT:
Description: Lays mines to destroy unwary enemy units.\n Unarmed Description: Lays mines to destroy unwary enemy units.\n Unarmed
Health: Health:
HP: 100 HP: 100
Armor: heavy Armor:
Type: Heavy
Mobile: Mobile:
Speed: 9 Speed: 9
RevealsShroud: RevealsShroud:
@@ -402,7 +416,8 @@ TRUK:
Inherits: ^Vehicle Inherits: ^Vehicle
Health: Health:
HP: 110 HP: 110
Armor: light Armor:
Type: Light
Mobile: Mobile:
Speed: 10 Speed: 10
RevealsShroud: RevealsShroud:
@@ -424,7 +439,8 @@ SS:
Description: Submerged anti-ship unit armed with \ntorpedoes.\n Strong vs Ships\n Weak vs Everything\n Special Ability: Submerge Description: Submerged anti-ship unit armed with \ntorpedoes.\n Strong vs Ships\n Weak vs Everything\n Special Ability: Submerge
Health: Health:
HP: 250 HP: 250
Armor: light Armor:
Type: Light
Mobile: Mobile:
ROT: 4 ROT: 4
Speed: 5 Speed: 5
@@ -463,7 +479,8 @@ MSUB:
Description: Submerged anti-ground unit armed with \nlong-range ballistic missiles.\n Strong vs Buildings\n Weak vs Everything\n Special Ability: Submerge Description: Submerged anti-ground unit armed with \nlong-range ballistic missiles.\n Strong vs Buildings\n Weak vs Everything\n Special Ability: Submerge
Health: Health:
HP: 400 HP: 400
Armor: light Armor:
Type: Light
Mobile: Mobile:
ROT: 3 ROT: 3
Speed: 3 Speed: 3
@@ -501,7 +518,8 @@ DD:
Description: Fast multi-role ship. \n Strong vs Submarines, Aircraft\n Weak vs Infantry, Tanks Description: Fast multi-role ship. \n Strong vs Submarines, Aircraft\n Weak vs Infantry, Tanks
Health: Health:
HP: 400 HP: 400
Armor: heavy Armor:
Type: Heavy
Mobile: Mobile:
ROT: 7 ROT: 7
Speed: 6 Speed: 6
@@ -534,7 +552,8 @@ CA:
Description: Very slow long-range ship. \n Strong vs Buildings\n Weak vs Ships, Submarines Description: Very slow long-range ship. \n Strong vs Buildings\n Weak vs Ships, Submarines
Health: Health:
HP: 800 HP: 800
Armor: heavy Armor:
Type: Heavy
Mobile: Mobile:
ROT: 2 ROT: 2
Speed: 2 Speed: 2
@@ -569,7 +588,8 @@ LST:
Description: General-purpose naval transport.\nCan carry infantry and tanks.\n Unarmed Description: General-purpose naval transport.\nCan carry infantry and tanks.\n Unarmed
Health: Health:
HP: 350 HP: 350
Armor: heavy Armor:
Type: Heavy
Mobile: Mobile:
ROT: 10 ROT: 10
Speed: 14 Speed: 14
@@ -597,7 +617,8 @@ PT:
Description: Light scout & support ship. \n Strong vs Ships, Submarines\n Weak vs Aircraft Description: Light scout & support ship. \n Strong vs Ships, Submarines\n Weak vs Aircraft
Health: Health:
HP: 200 HP: 200
Armor: heavy Armor:
Type: Heavy
Mobile: Mobile:
ROT: 7 ROT: 7
Speed: 9 Speed: 9
@@ -630,7 +651,8 @@ MIG:
Description: Fast Ground-Attack Plane.\n Strong vs Buildings\n Weak vs Infantry, Light Vehicles Description: Fast Ground-Attack Plane.\n Strong vs Buildings\n Weak vs Infantry, Light Vehicles
Health: Health:
HP: 70 HP: 70
Armor: light Armor:
Type: Light
RevealsShroud: RevealsShroud:
Range: 12 Range: 12
AttackPlane: AttackPlane:
@@ -667,7 +689,8 @@ YAK:
Description: Anti-Tanks & Anti-Infantry Plane.\n Strong vs Infantry, Tanks\n Weak vs Buildings Description: Anti-Tanks & Anti-Infantry Plane.\n Strong vs Infantry, Tanks\n Weak vs Buildings
Health: Health:
HP: 60 HP: 60
Armor: light Armor:
Type: Light
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
AttackPlane: AttackPlane:
@@ -704,7 +727,8 @@ TRAN:
Description: Fast Infantry Transport Helicopter.\n Unarmed Description: Fast Infantry Transport Helicopter.\n Unarmed
Health: Health:
HP: 90 HP: 90
Armor: light Armor:
Type: Light
RevealsShroud: RevealsShroud:
Range: 12 Range: 12
Helicopter: Helicopter:
@@ -736,7 +760,8 @@ HELI:
Description: Helicopter Gunship with AG Missiles.\n Strong vs Buildings, Tanks\n Weak vs Infantry Description: Helicopter Gunship with AG Missiles.\n Strong vs Buildings, Tanks\n Weak vs Infantry
Health: Health:
HP: 120 HP: 120
Armor: light Armor:
Type: Light
RevealsShroud: RevealsShroud:
Range: 12 Range: 12
AttackHeli: AttackHeli:
@@ -772,7 +797,8 @@ HIND:
Description: Helicopter Gunship with Chainguns.\n Strong vs Infantry, Light Vehicles.\n Weak vs Tanks Description: Helicopter Gunship with Chainguns.\n Strong vs Infantry, Light Vehicles.\n Weak vs Tanks
Health: Health:
HP: 120 HP: 120
Armor: light Armor:
Type: Light
RevealsShroud: RevealsShroud:
Range: 12 Range: 12
AttackHeli: AttackHeli:
@@ -800,7 +826,8 @@ U2:
Inherits: ^Plane Inherits: ^Plane
Health: Health:
HP: 2000 HP: 2000
Armor: heavy Armor:
Type: Heavy
Plane: Plane:
ROT: 7 ROT: 7
Speed: 40 Speed: 40
@@ -871,7 +898,8 @@ TTNK:
Description: TODO Description: TODO
Health: Health:
HP: 110 HP: 110
Armor: light Armor:
Type: Light
Mobile: Mobile:
Speed: 8 Speed: 8
RevealsShroud: RevealsShroud:

View File

@@ -6,7 +6,11 @@ Colt45:
Speed: 100 Speed: 100
Warhead: Warhead:
Spread: 1 Spread: 1
Verses: 100%,5%,5%,5%,5% Versus:
Wood: 5%
Light: 5%
Heavy: 5%
Concrete: 5%
Explosion: piff Explosion: piff
InfDeath: 1 InfDeath: 1
Damage: 50 Damage: 50
@@ -20,7 +24,11 @@ ZSU-23:
Speed: 100 Speed: 100
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 30%,75%,75%,100%,50% Versus:
None: 30%
Wood: 75%
Light: 75%
Concrete: 50%
Explosion: med_explosion Explosion: med_explosion
Damage: 25 Damage: 25
@@ -32,41 +40,65 @@ Vulcan:
Speed: 100 Speed: 100
Warhead@1: Warhead@1:
Spread: 3 Spread: 3
Verses: 100%,50%,60%,25%,25% Versus:
Wood: 50%
Light: 60%
Heavy: 25%
Concrete: 25%
Explosion: piffs Explosion: piffs
InfDeath: 1 InfDeath: 1
Damage: 7 Damage: 7
Warhead@2: Warhead@2:
Spread: 3 Spread: 3
Verses: 100%,50%,60%,25%,25% Versus:
Wood: 50%
Light: 60%
Heavy: 25%
Concrete: 25%
Explosion: piffs Explosion: piffs
InfDeath: 1 InfDeath: 1
Damage: 5 Damage: 5
Delay: 7 Delay: 7
Warhead@3: Warhead@3:
Spread: 3 Spread: 3
Verses: 100%,50%,60%,25%,25% Versus:
Wood: 50%
Light: 60%
Heavy: 25%
Concrete: 25%
Explosion: piffs Explosion: piffs
InfDeath: 1 InfDeath: 1
Damage: 7 Damage: 7
Delay: 4 Delay: 4
Warhead@4: Warhead@4:
Spread: 3 Spread: 3
Verses: 100%,50%,60%,25%,25% Versus:
Wood: 50%
Light: 60%
Heavy: 25%
Concrete: 25%
Explosion: piffs Explosion: piffs
InfDeath: 1 InfDeath: 1
Damage: 7 Damage: 7
Delay: 6 Delay: 6
Warhead@5: Warhead@5:
Spread: 3 Spread: 3
Verses: 100%,50%,60%,25%,25% Versus:
Wood: 50%
Light: 60%
Heavy: 25%
Concrete: 25%
Explosion: piffs Explosion: piffs
InfDeath: 1 InfDeath: 1
Damage: 7 Damage: 7
Delay: 8 Delay: 8
Warhead@6: Warhead@6:
Spread: 3 Spread: 3
Verses: 100%,50%,60%,25%,25% Versus:
Wood: 50%
Light: 60%
Heavy: 25%
Concrete: 25%
Explosion: piffs Explosion: piffs
InfDeath: 1 InfDeath: 1
Damage: 7 Damage: 7
@@ -92,7 +124,11 @@ Maverick:
RangeLimit: 60 RangeLimit: 60
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 30%,75%,75%,100%,50% Versus:
None: 30%
Wood: 75%
Light: 75%
Concrete: 50%
Explosion: med_explosion Explosion: med_explosion
WaterExplosion: med_splash WaterExplosion: med_splash
InfDeath: 3 InfDeath: 3
@@ -108,7 +144,11 @@ FireballLauncher:
Image: FB1 Image: FB1
Warhead: Warhead:
Spread: 5 Spread: 5
Verses: 90%,100%,60%,25%,50% Versus:
None: 90%
Light: 60%
Heavy: 25%
Concrete: 50%
Explosion: napalm Explosion: napalm
WaterExplosion: napalm WaterExplosion: napalm
InfDeath: 4 InfDeath: 4
@@ -125,7 +165,12 @@ Flamer:
Image: FB1 Image: FB1
Warhead: Warhead:
Spread: 4 Spread: 4
Verses: 90%,100%,60%,25%,50% Versus:
None: 90%
Wood: 100%
Light: 60%
Heavy: 25%
Concrete: 50%
Explosion: napalm Explosion: napalm
WaterExplosion: napalm WaterExplosion: napalm
InfDeath: 4 InfDeath: 4
@@ -141,7 +186,11 @@ ChainGun:
Speed: 100 Speed: 100
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 100%,50%,60%,25%,25% Versus:
Wood: 50%
Light: 60%
Heavy: 25%
Concrete: 25%
Explosion: piffs Explosion: piffs
WaterExplosion: small_splash WaterExplosion: small_splash
InfDeath: 1 InfDeath: 1
@@ -155,7 +204,11 @@ Pistol:
Speed: 100 Speed: 100
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 100%,50%,60%,25%,25% Versus:
Wood: 50%
Light: 60%
Heavy: 25%
Concrete: 25%
Explosion: piffs Explosion: piffs
InfDeath: 1 InfDeath: 1
Damage: 1 Damage: 1
@@ -168,7 +221,11 @@ M1Carbine:
Speed: 100 Speed: 100
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 100%,25%,30%,10%,10% Versus:
Wood: 25%
Light: 30%
Heavy: 10%
Concrete: 10%
Explosion: piffs Explosion: piffs
InfDeath: 1 InfDeath: 1
Damage: 15 Damage: 15
@@ -191,7 +248,11 @@ Dragon:
RangeLimit: 35 RangeLimit: 35
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 10%,75%,35%,100%,20% Versus:
None: 10%
Wood: 75%
Light: 35%
Concrete: 20%
Explosion: med_explosion Explosion: med_explosion
WaterExplosion: med_splash WaterExplosion: med_splash
InfDeath: 3 InfDeath: 3
@@ -217,7 +278,11 @@ Hellfire:
RangeLimit: 20 RangeLimit: 20
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 30%,75%,75%,100%,50% Versus:
None: 30%
Wood: 75%
Light: 75%
Concrete: 50%
Explosion: med_explosion Explosion: med_explosion
WaterExplosion: med_splash WaterExplosion: med_splash
InfDeath: 3 InfDeath: 3
@@ -236,7 +301,11 @@ Grenade:
Image: BOMB Image: BOMB
Warhead: Warhead:
Spread: 6 Spread: 6
Verses: 50%,100%,25%,5%,100% Versus:
None: 50%
Wood: 100%
Light: 25%
Heavy: 5%
Explosion: med_explosion Explosion: med_explosion
WaterExplosion: small_splash WaterExplosion: small_splash
InfDeath: 2 InfDeath: 2
@@ -253,7 +322,11 @@ Grenade:
Image: 120MM Image: 120MM
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 30%,40%,100%,40%,30% Versus:
None: 30%
Wood: 40%
Heavy: 40%
Concrete: 30%
Explosion: small_explosion Explosion: small_explosion
WaterExplosion: small_splash WaterExplosion: small_splash
InfDeath: 3 InfDeath: 3
@@ -269,7 +342,11 @@ Grenade:
Image: 120MM Image: 120MM
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 20%,75%,75%,100%,50% Versus:
None: 20%
Wood: 75%
Light: 75%
Concrete: 50%
Explosion: small_explosion Explosion: small_explosion
WaterExplosion: small_splash WaterExplosion: small_splash
InfDeath: 3 InfDeath: 3
@@ -287,7 +364,11 @@ Grenade:
Image: 120MM Image: 120MM
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 20%,75%,75%,100%,50% Versus:
None: 20%
Wood: 75%
Light: 75%
Concrete: 50%
Explosion: small_explosion Explosion: small_explosion
WaterExplosion: small_splash WaterExplosion: small_splash
InfDeath: 3 InfDeath: 3
@@ -304,7 +385,11 @@ Grenade:
Image: 120MM Image: 120MM
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 20%,75%,75%,100%,50% Versus:
None: 20%
Wood: 75%
Light: 75%
Concrete: 50%
Explosion: small_explosion Explosion: small_explosion
WaterExplosion: small_splash WaterExplosion: small_splash
InfDeath: 3 InfDeath: 3
@@ -320,7 +405,11 @@ TurretGun:
Image: 120MM Image: 120MM
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 30%,75%,75%,100%,50% Versus:
None: 30%
Wood: 75%
Light: 75%
Concrete: 50%
Explosion: small_explosion Explosion: small_explosion
WaterExplosion: small_splash WaterExplosion: small_splash
InfDeath: 3 InfDeath: 3
@@ -346,7 +435,11 @@ MammothTusk:
RangeLimit: 40 RangeLimit: 40
Warhead: Warhead:
Spread: 6 Spread: 6
Verses: 90%,75%,60%,25%,100% Versus:
None: 90%
Wood: 75%
Light: 60%
Heavy: 25%
Explosion: med_explosion Explosion: med_explosion
WaterExplosion: med_splash WaterExplosion: med_splash
InfDeath: 2 InfDeath: 2
@@ -365,7 +458,11 @@ MammothTusk:
Image: 120MM Image: 120MM
Warhead: Warhead:
Spread: 8 Spread: 8
Verses: 90%,75%,60%,25%,100% Versus:
None: 90%
Wood: 75%
Light: 60%
Heavy: 25%
Explosion: large_explosion Explosion: large_explosion
WaterExplosion: med_splash WaterExplosion: med_splash
InfDeath: 2 InfDeath: 2
@@ -381,7 +478,11 @@ M60mg:
Speed: 100 Speed: 100
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 100%,10%,30%,10%,10% Versus:
Wood: 10%
Light: 30%
Heavy: 10%
Concrete: 10%
Explosion: piffs Explosion: piffs
WaterExplosion: small_splash WaterExplosion: small_splash
InfDeath: 1 InfDeath: 1
@@ -398,7 +499,11 @@ Napalm:
Arm: 24 Arm: 24
Warhead: Warhead:
Spread: 4 Spread: 4
Verses: 90%,100%,60%,25%,50% Versus:
None: 90%
Light: 60%
Heavy: 25%
Concrete: 50%
Explosion: napalm Explosion: napalm
WaterExplosion: med_splash WaterExplosion: med_splash
InfDeath: 4 InfDeath: 4
@@ -409,7 +514,11 @@ Napalm:
CrateNapalm: CrateNapalm:
Warhead: Warhead:
Spread: 4 Spread: 4
Verses: 90%,100%,60%,25%,50% Versus:
None: 90%
Light: 60%
Heavy: 25%
Concrete: 50%
Explosion: napalm Explosion: napalm
WaterExplosion: napalm WaterExplosion: napalm
InfDeath: 4 InfDeath: 4
@@ -421,7 +530,11 @@ CrateExplosion:
Warhead: Warhead:
Damage: 500 Damage: 500
Spread: 10 Spread: 10
Verses: 90%,75%,60%,25%,100% Versus:
None: 90%
Wood: 75%
Light: 60%
Heavy: 25%
Explosion: self_destruct Explosion: self_destruct
WaterExplosion: self_destruct WaterExplosion: self_destruct
InfDeath: 3 InfDeath: 3
@@ -436,7 +549,6 @@ TeslaZap:
Projectile: TeslaZap Projectile: TeslaZap
Warhead: Warhead:
Spread: 1 Spread: 1
Verses: 100%,100%,100%,100%,100%
InfDeath: 5 InfDeath: 5
Damage: 100 Damage: 100
@@ -457,7 +569,12 @@ Nike:
Speed: 40 Speed: 40
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 90%,0%,90%,50%,0% Versus:
None: 90%
Wood: 0%
Light: 90%
Heavy: 50%
Concrete: 0%
Explosion: med_explosion Explosion: med_explosion
InfDeath: 2 InfDeath: 2
SmudgeType: Crater SmudgeType: Crater
@@ -480,7 +597,11 @@ RedEye:
Speed: 35 Speed: 35
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 90%,75%,60%,25%,100% Versus:
None: 90%
Wood: 75%
Light: 60%
Heavy: 25%
Explosion: med_explosion Explosion: med_explosion
InfDeath: 2 InfDeath: 2
SmudgeType: Crater SmudgeType: Crater
@@ -499,7 +620,11 @@ RedEye:
Image: 120MM Image: 120MM
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 60%,75%,60%,25%,100% Versus:
None: 60%
Wood: 75%
Light: 60%
Heavy: 25%
Explosion: large_explosion Explosion: large_explosion
WaterExplosion: large_splash WaterExplosion: large_splash
InfDeath: 2 InfDeath: 2
@@ -522,7 +647,10 @@ SubMissile:
Trail: smokey Trail: smokey
Warhead: Warhead:
Spread: 10 Spread: 10
Verses: 40%,100%,30%,30%,100% Versus:
None: 40%,
Light: 30%
Heavy: 30%
Explosion: large_explosion Explosion: large_explosion
WaterExplosion: large_splash WaterExplosion: large_splash
InfDeath: 2 InfDeath: 2
@@ -549,7 +677,11 @@ Stinger:
Speed: 20 Speed: 20
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 30%,75%,75%,100%,50% Versus:
None: 30%
Wood: 75%
Light: 75%
Concrete: 50%
Explosion: med_explosion Explosion: med_explosion
WaterExplosion: med_splash WaterExplosion: med_splash
InfDeath: 3 InfDeath: 3
@@ -569,7 +701,11 @@ TorpTube:
Speed: 6 Speed: 6
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 30%,75%,75%,100%,50% Versus:
None: 30%
Wood: 75%
Light: 75%
Concrete: 50%
WaterExplosion: large_splash WaterExplosion: large_splash
InfDeath: 3 InfDeath: 3
SmudgeType: Crater SmudgeType: Crater
@@ -584,7 +720,11 @@ TorpTube:
Image: 120MM Image: 120MM
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 30%,75%,75%,100%,50% Versus:
None: 30%
Wood: 75%
Light: 75%
Concrete: 50%
Explosion: small_explosion Explosion: small_explosion
WaterExplosion: med_splash WaterExplosion: med_splash
InfDeath: 3 InfDeath: 3
@@ -603,7 +743,11 @@ DepthCharge:
Inaccuracy: 3 Inaccuracy: 3
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 30%,75%,75%,100%,50% Versus:
None: 30%
Wood: 75%
Light: 75%
Concrete: 50%
WaterExplosion: large_splash WaterExplosion: large_splash
InfDeath: 3 InfDeath: 3
SmudgeType: Crater SmudgeType: Crater
@@ -617,7 +761,11 @@ ParaBomb:
Image: PARABOMB Image: PARABOMB
Warhead: Warhead:
Spread: 3 Spread: 3
Verses: 30%,75%,75%,100%,50% Versus:
None: 30%
Wood: 75%
Light: 75%
Concrete: 50%
Explosion: self_destruct Explosion: self_destruct
WaterExplosion: small_splash WaterExplosion: small_splash
InfDeath: 3 InfDeath: 3
@@ -631,7 +779,11 @@ DogJaw:
Report: DOGG5P Report: DOGG5P
Warhead: Warhead:
Spread: 5 Spread: 5
Verses: 100%,0%,0%,0%,0% Versus:
Wood: 0%
Light: 0%
Heavy: 0%
Concrete: 0%
InfDeath: 0 InfDeath: 0
Damage: 100 Damage: 100
@@ -643,7 +795,11 @@ Heal:
Speed: 100 Speed: 100
Warhead: Warhead:
Spread: 5 Spread: 5
Verses: 100%,0%,0%,0%,0% Versus:
Wood: 0%
Light: 0%
Heavy: 0%
Concrete: 0%
InfDeath: 0 InfDeath: 0
Damage: -50 Damage: -50
@@ -663,7 +819,11 @@ SCUD:
Angle: .1 Angle: .1
Warhead: Warhead:
Spread: 8 Spread: 8
Verses: 90%,75%,60%,25%,100% Versus:
None: 90%
Wood: 75%
Light: 60%
Heavy: 25%
Explosion: napalm Explosion: napalm
WaterExplosion: large_splash WaterExplosion: large_splash
InfDeath: 2 InfDeath: 2
@@ -677,7 +837,11 @@ Atomic:
Damage: 1000 Damage: 1000
Spread: 6 Spread: 6
Ore: true Ore: true
Verses: 90%,100%,60%,25%,50% Versus:
None: 90%
Light: 60%
Heavy: 25%
Concrete: 50%
Explosion: nuke Explosion: nuke
WaterExplosion: nuke WaterExplosion: nuke
InfDeath: 4 InfDeath: 4
@@ -687,7 +851,11 @@ Atomic:
SmudgeType: Scorch SmudgeType: Scorch
Size: 5,4 Size: 5,4
Ore: true Ore: true
Verses: 90%,100%,60%,25%,50% Versus:
None: 90%
Light: 60%
Heavy: 25%
Concrete: 50%
Delay: 3 Delay: 3
InfDeath: 4 InfDeath: 4
@@ -695,7 +863,11 @@ UnitExplode:
Warhead: Warhead:
Damage: 500 Damage: 500
Spread: 10 Spread: 10
Verses: 90%,75%,60%,25%,100% Versus:
None: 90%
Wood: 75%
Light: 60%
Heavy: 25%
Explosion: self_destruct Explosion: self_destruct
InfDeath: 3 InfDeath: 3
ImpactSound: kaboom22 ImpactSound: kaboom22
@@ -704,35 +876,44 @@ UnitExplodeSmall:
Warhead: Warhead:
Damage: 40 Damage: 40
Spread: 10 Spread: 10
Verses: 90%,75%,60%,25%,100% Versus:
None: 90%
Wood: 75%
Light: 60%
Heavy: 25%
Explosion: large_explosion Explosion: large_explosion
InfDeath: 3 InfDeath: 3
ImpactSound: kaboom15 ImpactSound: kaboom15
Crush: Crush:
Warhead: Warhead:
Verses: 100%,100%,100%,100%,100%
ImpactSound: squishy2 ImpactSound: squishy2
Damage: 100 Damage: 100
ATMine: ATMine:
Warhead: Warhead:
Damage: 500 Damage: 500
Verses: 0%,0%,100%,100%,0% Versus:
None: 0%
Wood: 0%
Concrete: 0%
ImpactSound: mineblo1 ImpactSound: mineblo1
Explosion: large_explosion Explosion: large_explosion
APMine: APMine:
Warhead: Warhead:
Damage: 700 Damage: 700
Verses: 100%,0%,0%,0%,0% Versus:
Wood: 0%
Light: 0%
Heavy: 0%
Concrete: 0%
ImpactSound: mine1 ImpactSound: mine1
InfDeath: 2 InfDeath: 2
Explosion: napalm Explosion: napalm
Demolish: Demolish:
Warhead: Warhead:
Verses: 100%,100%,100%,100%,100%
ImpactSound: kaboom25 ImpactSound: kaboom25
Explosion: building Explosion: building
@@ -745,7 +926,6 @@ PortaTesla:
Projectile: TeslaZap Projectile: TeslaZap
Warhead: Warhead:
Spread: 1 Spread: 1
Verses: 100%,100%,100%,100%,100%
InfDeath: 5 InfDeath: 5
Damage: 45 Damage: 45
@@ -757,6 +937,5 @@ TTankZap:
Projectile: TeslaZap Projectile: TeslaZap
Warhead: Warhead:
Spread: 1 Spread: 1
Verses: 100%,100%,100%,100%,100%
InfDeath: 5 InfDeath: 5
Damage: 100 Damage: 100