Simplify weapon yaml definitions

This commit is contained in:
Gustas
2023-02-17 21:57:50 +02:00
committed by Matthias Mailänder
parent 4dec79a5fb
commit d77fd5c13e
10 changed files with 23 additions and 49 deletions

View File

@@ -594,13 +594,9 @@ MSAM:
Turreted: Turreted:
TurnSpeed: 512 TurnSpeed: 512
Offset: -256,0,128 Offset: -256,0,128
Armament@PRIMARY: Armament:
Weapon: 227mm Weapon: 227mm
LocalOffset: 213,128,0, 213,-128,0 LocalOffset: 213,128,0, 213,-128,0
Armament@SECONDARY:
Name: secondary
Weapon: 227mm
LocalOffset: 213,-128,0, 213,128,0
AttackFrontal: AttackFrontal:
TargetFrozenActors: True TargetFrozenActors: True
ForceFireIgnoresActors: True ForceFireIgnoresActors: True

View File

@@ -147,7 +147,7 @@ MammothMissiles:
Range: 11c0 Range: 11c0
MinRange: 3c0 MinRange: 3c0
Burst: 4 Burst: 4
BurstDelays: 4 BurstDelays: 0, 4, 0
Report: rocket1.aud Report: rocket1.aud
ValidTargets: Ground, Water ValidTargets: Ground, Water
TargetActorCenter: true TargetActorCenter: true

View File

@@ -164,15 +164,9 @@ YAK:
RevealsShroud@GAPGEN: RevealsShroud@GAPGEN:
Range: 9c0 Range: 9c0
Type: GroundPosition Type: GroundPosition
Armament@PRIMARY: Armament:
Weapon: ChainGun.Yak Weapon: ChainGun.Yak
LocalOffset: 256,-213,0 LocalOffset: 256,-213,0, 256,213,0
MuzzleSequence: muzzle
PauseOnCondition: !ammo
Armament@SECONDARY:
Name: secondary
Weapon: ChainGun.Yak
LocalOffset: 256,213,0
MuzzleSequence: muzzle MuzzleSequence: muzzle
PauseOnCondition: !ammo PauseOnCondition: !ammo
AttackAircraft: AttackAircraft:
@@ -383,17 +377,11 @@ HIND:
RevealsShroud@GAPGEN: RevealsShroud@GAPGEN:
Range: 8c0 Range: 8c0
Type: GroundPosition Type: GroundPosition
Armament@PRIMARY: Armament:
Weapon: ChainGun Weapon: ChainGun
LocalOffset: 85,-213,-85, 85,213,-85 LocalOffset: 85,-213,-85, 85,213,-85
MuzzleSequence: muzzle MuzzleSequence: muzzle
PauseOnCondition: !ammo PauseOnCondition: !ammo
Armament@SECONDARY:
Name: secondary
Weapon: ChainGun
LocalOffset: 85,213,-85, 85,-213,-85
MuzzleSequence: muzzle
PauseOnCondition: !ammo
AttackAircraft: AttackAircraft:
FacingTolerance: 80 FacingTolerance: 80
PersistentTargeting: false PersistentTargeting: false
@@ -507,17 +495,11 @@ MH60:
RevealsShroud@GAPGEN: RevealsShroud@GAPGEN:
Range: 8c0 Range: 8c0
Type: GroundPosition Type: GroundPosition
Armament@PRIMARY: Armament:
Weapon: ChainGun Weapon: ChainGun
LocalOffset: 85,-213,-85, 85,213,-85 LocalOffset: 85,-213,-85, 85,213,-85
MuzzleSequence: muzzle MuzzleSequence: muzzle
PauseOnCondition: !ammo PauseOnCondition: !ammo
Armament@SECONDARY:
Name: secondary
Weapon: ChainGun
LocalOffset: 85,213,-85, 85,-213,-85
MuzzleSequence: muzzle
PauseOnCondition: !ammo
AttackAircraft: AttackAircraft:
FacingTolerance: 80 FacingTolerance: 80
PersistentTargeting: false PersistentTargeting: false

View File

@@ -427,9 +427,6 @@ E7:
Armament@PRIMARY: Armament@PRIMARY:
Weapon: Colt45 Weapon: Colt45
LocalOffset: 0,0,0, 0,0,0 LocalOffset: 0,0,0, 0,0,0
Armament@SECONDARY:
Weapon: Colt45
LocalOffset: 0,0,0, 0,0,0
Armament@GARRISONED: Armament@GARRISONED:
Name: garrisoned Name: garrisoned
Weapon: Colt45 Weapon: Colt45

View File

@@ -771,7 +771,7 @@ DTRK:
DamageSource: Killer DamageSource: Killer
AttackFrontal: AttackFrontal:
FacingTolerance: 512 FacingTolerance: 512
Armament@PRIMARY: Armament:
Weapon: DemoTruckTargeting Weapon: DemoTruckTargeting
GrantConditionOnAttack: GrantConditionOnAttack:
Condition: triggered Condition: triggered
@@ -812,14 +812,10 @@ CTNK:
RevealGeneratedShroud: False RevealGeneratedShroud: False
RevealsShroud@GAPGEN: RevealsShroud@GAPGEN:
Range: 4c0 Range: 4c0
Armament@PRIMARY: Armament:
Weapon: APTusk Weapon: APTusk
LocalOffset: -160,-276,232 LocalOffset: -160,-276,232, -160,276,232
LocalYaw: 60 LocalYaw: 60, -60
Armament@SECONDARY:
Weapon: APTusk
LocalOffset: -160,276,232
LocalYaw: -60
AttackFrontal: AttackFrontal:
FacingTolerance: 0 FacingTolerance: 0
PortableChrono: PortableChrono:

View File

@@ -209,6 +209,8 @@ APTusk:
Inherits: ^AntiGroundMissile Inherits: ^AntiGroundMissile
ReloadDelay: 60 ReloadDelay: 60
Range: 6c0 Range: 6c0
Burst: 2
BurstDelays: 0
Projectile: Missile Projectile: Missile
Speed: 298 Speed: 298
TrailImage: smokey TrailImage: smokey
@@ -218,6 +220,7 @@ APTusk:
APTusk.stnk: APTusk.stnk:
Inherits: APTusk Inherits: APTusk
ReloadDelay: 100 ReloadDelay: 100
Burst: 1
TorpTube: TorpTube:
ReloadDelay: 100 ReloadDelay: 100

View File

@@ -210,6 +210,8 @@ Vulcan:
ChainGun: ChainGun:
Inherits: ^HeavyMG Inherits: ^HeavyMG
Burst: 2
BurstDelays: 0
ReloadDelay: 10 ReloadDelay: 10
Range: 5c0 Range: 5c0
MinRange: 0c768 MinRange: 0c768
@@ -221,6 +223,8 @@ ChainGun:
ChainGun.Yak: ChainGun.Yak:
Inherits: ^HeavyMG Inherits: ^HeavyMG
Burst: 2
BurstDelays: 0
ReloadDelay: 3 ReloadDelay: 3
Range: 5c0 Range: 5c0
MinRange: 3c0 MinRange: 3c0
@@ -325,5 +329,5 @@ Colt45:
ReloadDelay: 7 ReloadDelay: 7
Range: 7c0 Range: 7c0
Warhead@1Dam: SpreadDamage Warhead@1Dam: SpreadDamage
Damage: 5000 Damage: 10000

View File

@@ -91,16 +91,10 @@ GACTWR:
RequiresCondition: !build-incomplete && tower.sam RequiresCondition: !build-incomplete && tower.sam
Recoils: false Recoils: false
Sequence: turret-sam Sequence: turret-sam
Armament@VULCPRIMARY: Armament@VULCAN:
RequiresCondition: tower.vulcan RequiresCondition: tower.vulcan
Weapon: VulcanTower Weapon: VulcanTower
LocalOffset: 588,120,1358 LocalOffset: 588,120,1358, 588,-120,1358
MuzzleSequence: muzzle
Armament@VULCSECONDARY:
RequiresCondition: tower.vulcan
Name: secondary
Weapon: VulcanTower
LocalOffset: 588,-120,1358
MuzzleSequence: muzzle MuzzleSequence: muzzle
Armament@ROCKET: Armament@ROCKET:
RequiresCondition: tower.rocket RequiresCondition: tower.rocket

View File

@@ -20,7 +20,7 @@ E3:
HP: 10000 HP: 10000
Mobile: Mobile:
Speed: 56 Speed: 56
Armament@PRIMARY: Armament:
Weapon: Bazooka Weapon: Bazooka
LocalOffset: 356,0,967 LocalOffset: 356,0,967
TakeCover: TakeCover:

View File

@@ -62,6 +62,8 @@ VulcanTower:
Inherits: ^MG Inherits: ^MG
ReloadDelay: 26 ReloadDelay: 26
Range: 6c0 Range: 6c0
Burst: 2
BurstDelays: 0
Report: chaingn1.aud Report: chaingn1.aud
Warhead@1Dam: SpreadDamage Warhead@1Dam: SpreadDamage
Damage: 1800 Damage: 1800