Skip to content

Commit

Permalink
Simplify weapon yaml definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
PunkPun committed Feb 18, 2023
1 parent d854cb2 commit 022b9c3
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 48 deletions.
6 changes: 1 addition & 5 deletions mods/cnc/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -593,13 +593,9 @@ MSAM:
Turreted:
TurnSpeed: 512
Offset: -256,0,128
Armament@PRIMARY:
Armament:
Weapon: 227mm
LocalOffset: 213,128,0, 213,-128,0
Armament@SECONDARY:
Name: secondary
Weapon: 227mm
LocalOffset: 213,-128,0, 213,128,0
AttackFrontal:
TargetFrozenActors: True
ForceFireIgnoresActors: True
Expand Down
2 changes: 1 addition & 1 deletion mods/cnc/weapons/missiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ MammothMissiles:
Range: 11c0
MinRange: 3c0
Burst: 4
BurstDelays: 4
BurstDelays: 0, 4, 0
Report: rocket1.aud
ValidTargets: Ground, Water
TargetActorCenter: true
Expand Down
26 changes: 4 additions & 22 deletions mods/ra/rules/aircraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,9 @@ YAK:
RevealsShroud@GAPGEN:
Range: 9c0
Type: GroundPosition
Armament@PRIMARY:
Weapon: ChainGun.Yak
LocalOffset: 256,-213,0
MuzzleSequence: muzzle
PauseOnCondition: !ammo
Armament@SECONDARY:
Name: secondary
Armament:
Weapon: ChainGun.Yak
LocalOffset: 256,213,0
LocalOffset: 256,-213,0, 256,213,0
MuzzleSequence: muzzle
PauseOnCondition: !ammo
AttackAircraft:
Expand Down Expand Up @@ -383,17 +377,11 @@ HIND:
RevealsShroud@GAPGEN:
Range: 8c0
Type: GroundPosition
Armament@PRIMARY:
Armament:
Weapon: ChainGun
LocalOffset: 85,-213,-85, 85,213,-85
MuzzleSequence: muzzle
PauseOnCondition: !ammo
Armament@SECONDARY:
Name: secondary
Weapon: ChainGun
LocalOffset: 85,213,-85, 85,-213,-85
MuzzleSequence: muzzle
PauseOnCondition: !ammo
AttackAircraft:
FacingTolerance: 80
PersistentTargeting: false
Expand Down Expand Up @@ -507,17 +495,11 @@ MH60:
RevealsShroud@GAPGEN:
Range: 8c0
Type: GroundPosition
Armament@PRIMARY:
Armament:
Weapon: ChainGun
LocalOffset: 85,-213,-85, 85,213,-85
MuzzleSequence: muzzle
PauseOnCondition: !ammo
Armament@SECONDARY:
Name: secondary
Weapon: ChainGun
LocalOffset: 85,213,-85, 85,-213,-85
MuzzleSequence: muzzle
PauseOnCondition: !ammo
AttackAircraft:
FacingTolerance: 80
PersistentTargeting: false
Expand Down
3 changes: 0 additions & 3 deletions mods/ra/rules/infantry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,6 @@ E7:
Armament@PRIMARY:
Weapon: Colt45
LocalOffset: 0,0,0, 0,0,0
Armament@SECONDARY:
Weapon: Colt45
LocalOffset: 0,0,0, 0,0,0
Armament@GARRISONED:
Name: garrisoned
Weapon: Colt45
Expand Down
12 changes: 4 additions & 8 deletions mods/ra/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ DTRK:
DamageSource: Killer
AttackFrontal:
FacingTolerance: 512
Armament@PRIMARY:
Armament:
Weapon: DemoTruckTargeting
GrantConditionOnAttack:
Condition: triggered
Expand Down Expand Up @@ -811,14 +811,10 @@ CTNK:
RevealGeneratedShroud: False
RevealsShroud@GAPGEN:
Range: 4c0
Armament@PRIMARY:
Weapon: APTusk
LocalOffset: -160,-276,232
LocalYaw: 60
Armament@SECONDARY:
Armament:
Weapon: APTusk
LocalOffset: -160,276,232
LocalYaw: -60
LocalOffset: -160,-276,232, -160,276,232
LocalYaw: 60, -60
AttackFrontal:
FacingTolerance: 0
PortableChrono:
Expand Down
3 changes: 3 additions & 0 deletions mods/ra/weapons/missiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ APTusk:
Inherits: ^AntiGroundMissile
ReloadDelay: 60
Range: 6c0
Burst: 2
BurstDelays: 0
Projectile: Missile
Speed: 298
TrailImage: smokey
Expand All @@ -220,6 +222,7 @@ APTusk:
APTusk.stnk:
Inherits: APTusk
ReloadDelay: 100
Burst: 1

TorpTube:
ReloadDelay: 100
Expand Down
6 changes: 5 additions & 1 deletion mods/ra/weapons/smallcaliber.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ Vulcan:

ChainGun:
Inherits: ^HeavyMG
Burst: 2
BurstDelays: 0
ReloadDelay: 10
Range: 5c0
MinRange: 0c768
Expand All @@ -228,6 +230,8 @@ ChainGun:

ChainGun.Yak:
Inherits: ^HeavyMG
Burst: 2
BurstDelays: 0
ReloadDelay: 3
Range: 5c0
MinRange: 3c0
Expand Down Expand Up @@ -332,5 +336,5 @@ Colt45:
ReloadDelay: 7
Range: 7c0
Warhead@1Dam: SpreadDamage
Damage: 5000
Damage: 10000

8 changes: 1 addition & 7 deletions mods/ts/rules/gdi-support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,7 @@ GACTWR:
Armament@VULCPRIMARY:
RequiresCondition: tower.vulcan
Weapon: VulcanTower
LocalOffset: 588,120,1358
MuzzleSequence: muzzle
Armament@VULCSECONDARY:
RequiresCondition: tower.vulcan
Name: secondary
Weapon: VulcanTower
LocalOffset: 588,-120,1358
LocalOffset: 588,120,1358, 588,-120,1358
MuzzleSequence: muzzle
Armament@ROCKET:
RequiresCondition: tower.rocket
Expand Down
2 changes: 1 addition & 1 deletion mods/ts/rules/nod-infantry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ E3:
HP: 10000
Mobile:
Speed: 56
Armament@PRIMARY:
Armament:
Weapon: Bazooka
LocalOffset: 356,0,967
TakeCover:
Expand Down
2 changes: 2 additions & 0 deletions mods/ts/weapons/smallguns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ VulcanTower:
Inherits: ^MG
ReloadDelay: 26
Range: 6c0
Burst: 2
BurstDelays: 0
Report: chaingn1.aud
Warhead@1Dam: SpreadDamage
Damage: 1800
Expand Down

0 comments on commit 022b9c3

Please sign in to comment.