Skip to content

Commit 96f2d92

Browse files
Mailaenderabcdefg30
authored andcommitted
Add the Osprey.
1 parent b0033de commit 96f2d92

File tree

6 files changed

+133
-3
lines changed

6 files changed

+133
-3
lines changed

mods/ra2/rules/aircraft.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,3 +335,71 @@ hornethusk:
335335
RenderVoxels:
336336
Image: hornet
337337
NormalsPalette: ts-normals
338+
339+
asw:
340+
Inherits: ^Plane
341+
Inherits@EXPERIENCE: ^GainsExperience
342+
-GivesExperience:
343+
Valued:
344+
Cost: 50
345+
GainsExperience:
346+
ExperienceModifier: 500
347+
Tooltip:
348+
Name: Osprey
349+
Health:
350+
HP: 135
351+
Armor:
352+
Type: Light
353+
RevealsShroud:
354+
Range: 2c0
355+
Type: CenterPosition
356+
Armament:
357+
Weapon: ASWBomb
358+
PauseOnCondition: !ammo
359+
RequiresCondition: !rank-elite
360+
Armament@Elite:
361+
Weapon: ASWBombE
362+
PauseOnCondition: !ammo
363+
RequiresCondition: rank-elite
364+
AttackAircraft:
365+
FacingTolerance: 20
366+
RequiresCondition: ammo
367+
Aircraft:
368+
AltitudeVelocity: 240
369+
InitialFacing: 192
370+
TurnSpeed: 8
371+
Speed: 180
372+
RepulsionSpeed: 40
373+
TakeoffSounds: vospstaa.wav
374+
LandingSounds: vosplana.wav
375+
AmmoPool:
376+
Ammo: 5
377+
AmmoCondition: ammo
378+
RejectsOrders:
379+
SpawnActorOnDeath:
380+
Actor: aswhusk
381+
-Selectable:
382+
-ActorLostNotification:
383+
CarrierChild:
384+
LandingDistance: 8c0
385+
HitShape:
386+
Interactable:
387+
RenderVoxels:
388+
NormalsPalette: ts-normals
389+
RenderSprites:
390+
Rearmable:
391+
RearmActors: dest, cdest
392+
393+
aswhusk:
394+
Inherits: ^PlaneHusk
395+
Tooltip:
396+
Name: Osprey
397+
Tooltip@NoRow:
398+
Name: Osprey
399+
Aircraft:
400+
TurnSpeed: 5
401+
Speed: 180
402+
AltitudeVelocity: 240
403+
RenderVoxels:
404+
Image: asw
405+
NormalsPalette: ts-normals

mods/ra2/rules/allied-naval.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,24 @@ dest:
7676
LocalOffset: 1152,0,800
7777
MuzzleSequence: muzzle-2
7878
RequiresCondition: rank-elite
79+
Armament@asw:
80+
Name: asw
81+
Weapon: ASWLauncher
82+
CarrierParent:
83+
Actors: asw
84+
RespawnTicks: 300
85+
ArmamentNames: asw
86+
LoadedCondition: loaded
87+
Exit:
88+
SpawnOffset: 768,0,0
7989
AttackFrontal:
8090
Voice: Attack
91+
Armaments: primary
92+
PauseOnCondition: chronodisable
93+
AttackFrontal@Spawner:
94+
Voice: Attack
95+
Armaments: asw
96+
FacingTolerance: 128
8197
WithMuzzleOverlay:
8298
DetectCloaked:
8399
CloakTypes: Underwater
@@ -86,7 +102,11 @@ dest:
86102
Explodes:
87103
Weapon: UnitExplode
88104
EmptyWeapon: UnitExplode
89-
WithVoxelBody:
105+
WithVoxelBody@FULL:
106+
RequiresCondition: loaded
107+
WithVoxelBody@EMPTY:
108+
Sequence: empty
109+
RequiresCondition: !loaded
90110
RenderSprites:
91111
Voiced:
92112
VoiceSet: AlliedNavalVoice

mods/ra2/sequences/voxels.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ carrier:
2424

2525
cdest:
2626
idle:
27-
#Needs without weapon image cdestwo
27+
empty: cdestwo
2828

2929
cona:
3030
idle:
@@ -44,7 +44,7 @@ cruise:
4444

4545
dest:
4646
idle:
47-
#Needs without weapon image destwo
47+
empty: destwo
4848

4949
#dmisl: #Dreadnought Missile needs voxel projectiles
5050
# idle:

mods/ra2/weapons/bullets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ MirageGunE:
268268
ReloadDelay: 110
269269
Range: 8c0
270270
Report: vdesatta.wav, vrdesattb.wav
271+
InvalidTargets: Underwater
271272
Projectile: Bullet
272273
Blockable: false
273274
Speed: 682

mods/ra2/weapons/misc.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,11 @@ HornetLauncher:
9797
Projectile: InstantHit
9898
Warhead@1Dam: TargetDamage
9999
ValidTargets: Ground, Water
100+
101+
ASWLauncher:
102+
ReloadDelay: 150
103+
Range: 8c0
104+
ValidTargets: Underwater
105+
Projectile: InstantHit
106+
Warhead@1Dam: TargetDamage
107+
ValidTargets: Underwater

mods/ra2/weapons/missiles.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,3 +236,36 @@ HornetBombE:
236236
ValidTargets: Ground
237237
Warhead@4Smu: LeaveSmudge
238238
SmudgeType: MediumCrater, MediumScorch
239+
240+
ASWBomb:
241+
Inherits: HornetBomb
242+
Range: 3c0
243+
ValidTargets: Underwater
244+
Projectile: Missile
245+
BoundToTerrainType: Water
246+
Warhead@1Dam: SpreadDamage
247+
Damage: 50
248+
Spread: 426
249+
ValidTargets: Water, Underwater
250+
Versus:
251+
None: 25
252+
Flak: 25
253+
Plate: 25
254+
Light: 75
255+
Medium: 100
256+
Heavy: 100
257+
Wood: 65
258+
Steel: 85
259+
Concrete: 60
260+
Drone: 25
261+
Warhead@2Eff: CreateEffect
262+
Explosions: small_grey_explosion
263+
ExplosionPalette: effect
264+
-Warhead@4Smu:
265+
266+
ASWBombE:
267+
Inherits: ASWBomb
268+
Projectile: Missile
269+
ContrailColor: EA0000
270+
Warhead@1Dam: SpreadDamage
271+
Damage: 80

0 commit comments

Comments
 (0)