Merge pull request #5824 from reaperrr/pronedamage
Moved ProneDamage to Warhead
This commit is contained in:
@@ -52,6 +52,8 @@ namespace OpenRA.GameRules
|
|||||||
public readonly DamageModel DamageModel = DamageModel.Normal;
|
public readonly DamageModel DamageModel = DamageModel.Normal;
|
||||||
[Desc("Whether we should prevent prone response for infantry.")]
|
[Desc("Whether we should prevent prone response for infantry.")]
|
||||||
public readonly bool PreventProne = false;
|
public readonly bool PreventProne = false;
|
||||||
|
[Desc("By what percentage should damage be modified against prone infantry.")]
|
||||||
|
public readonly int ProneModifier = 50;
|
||||||
|
|
||||||
public float EffectivenessAgainst(ActorInfo ai)
|
public float EffectivenessAgainst(ActorInfo ai)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ namespace OpenRA.Mods.RA
|
|||||||
public class TakeCoverInfo : TurretedInfo
|
public class TakeCoverInfo : TurretedInfo
|
||||||
{
|
{
|
||||||
public readonly int ProneTime = 100; /* ticks, =4s */
|
public readonly int ProneTime = 100; /* ticks, =4s */
|
||||||
public readonly float ProneDamage = .5f;
|
|
||||||
public readonly decimal ProneSpeed = .5m;
|
public readonly decimal ProneSpeed = .5m;
|
||||||
public readonly WVec ProneOffset = new WVec(85, 0, -171);
|
public readonly WVec ProneOffset = new WVec(85, 0, -171);
|
||||||
|
|
||||||
@@ -56,9 +55,10 @@ namespace OpenRA.Mods.RA
|
|||||||
LocalOffset = WVec.Zero;
|
LocalOffset = WVec.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
public float GetDamageModifier(Actor attacker, WarheadInfo warhead )
|
public float GetDamageModifier(Actor attacker, WarheadInfo warhead)
|
||||||
{
|
{
|
||||||
return IsProne ? Info.ProneDamage : 1f;
|
var proneDamage = (warhead.ProneModifier / 100f);
|
||||||
|
return IsProne ? proneDamage : 1f;
|
||||||
}
|
}
|
||||||
|
|
||||||
public decimal GetSpeedModifier()
|
public decimal GetSpeedModifier()
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ Minigun:
|
|||||||
Explosion: piffpiff
|
Explosion: piffpiff
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: 12
|
Damage: 12
|
||||||
|
ProneModifier: 70
|
||||||
|
|
||||||
Grenade:
|
Grenade:
|
||||||
ROF: 60
|
ROF: 60
|
||||||
@@ -61,6 +62,7 @@ Grenade:
|
|||||||
Concrete: 28%
|
Concrete: 28%
|
||||||
InfDeath: 3
|
InfDeath: 3
|
||||||
Damage: 40
|
Damage: 40
|
||||||
|
ProneModifier: 70
|
||||||
Explosion: large_grey_explosion
|
Explosion: large_grey_explosion
|
||||||
ImpactSound: expnew13.aud
|
ImpactSound: expnew13.aud
|
||||||
|
|
||||||
@@ -135,6 +137,7 @@ Heal:
|
|||||||
Concrete: 0%
|
Concrete: 0%
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: -50
|
Damage: -50
|
||||||
|
ProneModifier: 100
|
||||||
|
|
||||||
Sniper:
|
Sniper:
|
||||||
ROF: 60
|
ROF: 60
|
||||||
@@ -144,6 +147,7 @@ Sniper:
|
|||||||
Speed: 1c682
|
Speed: 1c682
|
||||||
Warhead:
|
Warhead:
|
||||||
Damage: 150
|
Damage: 150
|
||||||
|
ProneModifier: 100
|
||||||
Spread: 42
|
Spread: 42
|
||||||
Versus:
|
Versus:
|
||||||
None: 100%
|
None: 100%
|
||||||
@@ -169,6 +173,7 @@ M1Carbine:
|
|||||||
Explosion: piffpiff
|
Explosion: piffpiff
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: 15
|
Damage: 15
|
||||||
|
ProneModifier: 70
|
||||||
|
|
||||||
LtRail:
|
LtRail:
|
||||||
ROF: 60
|
ROF: 60
|
||||||
@@ -181,6 +186,7 @@ LtRail:
|
|||||||
Color: 200,0,128,255
|
Color: 200,0,128,255
|
||||||
Warhead:
|
Warhead:
|
||||||
Damage: 150
|
Damage: 150
|
||||||
|
ProneModifier: 100
|
||||||
Spread: 42
|
Spread: 42
|
||||||
Versus:
|
Versus:
|
||||||
None: 100%
|
None: 100%
|
||||||
@@ -210,6 +216,7 @@ CyCannon:
|
|||||||
Concrete: 40%
|
Concrete: 40%
|
||||||
InfDeath: 6
|
InfDeath: 6
|
||||||
Damage: 120
|
Damage: 120
|
||||||
|
ProneModifier: 100
|
||||||
Explosion: large_bang
|
Explosion: large_bang
|
||||||
ImpactSound: expnew12.aud
|
ImpactSound: expnew12.aud
|
||||||
|
|
||||||
@@ -230,6 +237,7 @@ Vulcan3:
|
|||||||
Explosion: piffpiff
|
Explosion: piffpiff
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: 10
|
Damage: 10
|
||||||
|
ProneModifier: 70
|
||||||
|
|
||||||
Vulcan2:
|
Vulcan2:
|
||||||
ROF: 50
|
ROF: 50
|
||||||
@@ -249,6 +257,7 @@ Vulcan2:
|
|||||||
Explosion: piffpiff
|
Explosion: piffpiff
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: 50
|
Damage: 50
|
||||||
|
ProneModifier: 70
|
||||||
|
|
||||||
Vulcan:
|
Vulcan:
|
||||||
ROF: 60
|
ROF: 60
|
||||||
@@ -266,6 +275,7 @@ Vulcan:
|
|||||||
Explosion: piffpiff
|
Explosion: piffpiff
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: 20
|
Damage: 20
|
||||||
|
ProneModifier: 70
|
||||||
|
|
||||||
FiendShard:
|
FiendShard:
|
||||||
ROF: 30
|
ROF: 30
|
||||||
@@ -287,6 +297,7 @@ FiendShard:
|
|||||||
Concrete: 10%
|
Concrete: 10%
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: 35
|
Damage: 35
|
||||||
|
ProneModifier: 100
|
||||||
|
|
||||||
JumpCannon:
|
JumpCannon:
|
||||||
ROF: 40
|
ROF: 40
|
||||||
@@ -305,6 +316,7 @@ JumpCannon:
|
|||||||
Explosion: piffpiff
|
Explosion: piffpiff
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: 15
|
Damage: 15
|
||||||
|
ProneModifier: 70
|
||||||
|
|
||||||
HoverMissile:
|
HoverMissile:
|
||||||
ROF: 68
|
ROF: 68
|
||||||
@@ -386,6 +398,7 @@ MammothTusk:
|
|||||||
Concrete: 28%
|
Concrete: 28%
|
||||||
InfDeath: 3
|
InfDeath: 3
|
||||||
Damage: 40
|
Damage: 40
|
||||||
|
ProneModifier: 70
|
||||||
Explosion: medium_bang
|
Explosion: medium_bang
|
||||||
ImpactSound: expnew12.aud
|
ImpactSound: expnew12.aud
|
||||||
|
|
||||||
@@ -405,6 +418,7 @@ Repair:
|
|||||||
Concrete: 0%
|
Concrete: 0%
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: -50
|
Damage: -50
|
||||||
|
ProneModifier: 100
|
||||||
|
|
||||||
SlimeAttack:
|
SlimeAttack:
|
||||||
ROF: 80
|
ROF: 80
|
||||||
@@ -421,6 +435,7 @@ SlimeAttack:
|
|||||||
Concrete: 10%
|
Concrete: 10%
|
||||||
InfDeath: 2
|
InfDeath: 2
|
||||||
Damage: 100
|
Damage: 100
|
||||||
|
ProneModifier: 100
|
||||||
|
|
||||||
SuicideBomb:
|
SuicideBomb:
|
||||||
ROF: 1
|
ROF: 1
|
||||||
@@ -475,6 +490,7 @@ MechRailgun:
|
|||||||
Concrete: 25%
|
Concrete: 25%
|
||||||
InfDeath: 5
|
InfDeath: 5
|
||||||
Damage: 200
|
Damage: 200
|
||||||
|
ProneModifier: 100
|
||||||
|
|
||||||
AssaultCannon:
|
AssaultCannon:
|
||||||
ROF: 50
|
ROF: 50
|
||||||
@@ -492,6 +508,7 @@ AssaultCannon:
|
|||||||
Explosion: piffpiff
|
Explosion: piffpiff
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: 40
|
Damage: 40
|
||||||
|
ProneModifier: 70
|
||||||
|
|
||||||
BikeMissile:
|
BikeMissile:
|
||||||
ROF: 60
|
ROF: 60
|
||||||
@@ -541,6 +558,7 @@ RaiderCannon:
|
|||||||
Explosion: piffpiff
|
Explosion: piffpiff
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: 40
|
Damage: 40
|
||||||
|
ProneModifier: 70
|
||||||
|
|
||||||
FireballLauncher:
|
FireballLauncher:
|
||||||
ROF: 50
|
ROF: 50
|
||||||
@@ -562,6 +580,7 @@ FireballLauncher:
|
|||||||
Concrete: 2%
|
Concrete: 2%
|
||||||
InfDeath: 5
|
InfDeath: 5
|
||||||
Damage: 25
|
Damage: 25
|
||||||
|
ProneModifier: 100
|
||||||
|
|
||||||
SonicZap:
|
SonicZap:
|
||||||
ROF: 120
|
ROF: 120
|
||||||
@@ -654,6 +673,7 @@ Dragon:
|
|||||||
Concrete: 35%
|
Concrete: 35%
|
||||||
InfDeath: 3
|
InfDeath: 3
|
||||||
Damage: 150
|
Damage: 150
|
||||||
|
ProneModifier: 100
|
||||||
Explosion: large_explosion
|
Explosion: large_explosion
|
||||||
ImpactSound: expnew09.aud
|
ImpactSound: expnew09.aud
|
||||||
|
|
||||||
@@ -704,6 +724,7 @@ Bomb:
|
|||||||
Concrete: 100%
|
Concrete: 100%
|
||||||
InfDeath: 3
|
InfDeath: 3
|
||||||
Damage: 160
|
Damage: 160
|
||||||
|
ProneModifier: 100
|
||||||
Explosion: large_explosion
|
Explosion: large_explosion
|
||||||
ImpactSound: expnew09.aud
|
ImpactSound: expnew09.aud
|
||||||
|
|
||||||
@@ -752,6 +773,7 @@ HarpyClaw:
|
|||||||
Explosion: piffpiff
|
Explosion: piffpiff
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: 60
|
Damage: 60
|
||||||
|
ProneModifier: 70
|
||||||
|
|
||||||
Pistola:
|
Pistola:
|
||||||
ROF: 20
|
ROF: 20
|
||||||
@@ -769,6 +791,7 @@ Pistola:
|
|||||||
Explosion: piff
|
Explosion: piff
|
||||||
InfDeath: 1
|
InfDeath: 1
|
||||||
Damage: 2
|
Damage: 2
|
||||||
|
ProneModifier: 70
|
||||||
|
|
||||||
Tiberium:
|
Tiberium:
|
||||||
ROF: 16
|
ROF: 16
|
||||||
@@ -793,6 +816,7 @@ IonCannon:
|
|||||||
Spread: 1c0
|
Spread: 1c0
|
||||||
InfDeath: 5
|
InfDeath: 5
|
||||||
Explosion: ring1
|
Explosion: ring1
|
||||||
|
ProneModifier: 100
|
||||||
Warhead@area:
|
Warhead@area:
|
||||||
DamageModel: PerCell
|
DamageModel: PerCell
|
||||||
Damage: 250
|
Damage: 250
|
||||||
@@ -839,6 +863,7 @@ RPGTower:
|
|||||||
Concrete: 70%
|
Concrete: 70%
|
||||||
InfDeath: 2
|
InfDeath: 2
|
||||||
Damage: 110
|
Damage: 110
|
||||||
|
ProneModifier: 70
|
||||||
Explosion: large_clsn
|
Explosion: large_clsn
|
||||||
ImpactSound: expnew14.aud
|
ImpactSound: expnew14.aud
|
||||||
|
|
||||||
@@ -876,6 +901,7 @@ ObeliskLaser:
|
|||||||
InfDeath: 5
|
InfDeath: 5
|
||||||
SmudgeType: Scorch
|
SmudgeType: Scorch
|
||||||
Damage: 250
|
Damage: 250
|
||||||
|
ProneModifier: 60
|
||||||
|
|
||||||
TurretLaser:
|
TurretLaser:
|
||||||
ROF: 40
|
ROF: 40
|
||||||
@@ -889,6 +915,7 @@ TurretLaser:
|
|||||||
InfDeath: 5
|
InfDeath: 5
|
||||||
SmudgeType: Scorch
|
SmudgeType: Scorch
|
||||||
Damage: 30
|
Damage: 30
|
||||||
|
ProneModifier: 60
|
||||||
|
|
||||||
TiberiumExplosion:
|
TiberiumExplosion:
|
||||||
Warhead:
|
Warhead:
|
||||||
|
|||||||
Reference in New Issue
Block a user