Skip to content

Commit

Permalink
Implement terror drone jumping into vehicles.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Jul 23, 2020
1 parent c9c2479 commit 1df3b96
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 6 deletions.
42 changes: 42 additions & 0 deletions mods/ra2/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@
Inherits@4: ^ChronoDisable
Inherits@5: ^CrateStatModifiers
Inherits@6: ^DamagedByRadiation
Inherits@7: ^AffectedByTerrorDrone
Health:
OwnerLostAction:
Action: Kill
Expand Down Expand Up @@ -649,6 +650,7 @@
Categories: Infantry

^Parachutable:
Inherits: ^ParachutableAffectedByTerrorDrone
WithSpriteBody@Parachute:
Name: parachute
Sequence: paradrop
Expand Down Expand Up @@ -682,6 +684,7 @@
Condition: parachute

^ParachutableVehicle:
Inherits: ^ParachutableAffectedByTerrorDrone
Parachutable:
FallRate: 26
KilledOnImpassableTerrain: true
Expand All @@ -701,6 +704,15 @@
Targetable@airborne:
TargetTypes: Air
RequiresCondition: parachute
Targetable@Parasiteable:
TargetTypes: DroneParasiteable
RequiresCondition: !parachute && !infected
Targetable@byTerrorDrone:
TargetTypes: ValidForTerrorDrone
RequiresCondition: !parachute
Targetable@InfectedByTerrorDrone:
TargetTypes: TerrorDroned
RequiresCondition: !parachute && infected
ExternalCondition@PARACHUTE:
Condition: parachute

Expand Down Expand Up @@ -821,6 +833,7 @@
Inherits@4: ^ChronoDisable
Inherits@5: ^CrateStatModifiers
Inherits@6: ^ParachutableVehicle
Inherits@7: ^AffectedByTerrorDrone
OwnerLostAction:
Action: Kill
DeathTypes: BulletDeath
Expand Down Expand Up @@ -1230,3 +1243,32 @@
MapEditorData:
Categories: System
Interactable:

^AffectedByTerrorDrone:
Targetable@Parasiteable:
TargetTypes: DroneParasiteable
RequiresCondition: !infected
Targetable@byTerrorDrone:
TargetTypes: ValidForTerrorDrone
Targetable@InfectedByTerrorDrone:
TargetTypes: TerrorDroned
RequiresCondition: infected
Infectable:
RemoveInfectorDamageTypes: DropTerrorDrone
KillInfectorDamageTypes: KillTerrorDrone
BeingInfectedCondition: being-infected
InfectedCondition: infected
SpeedMultiplier@Infected:
Modifier: 0
RequiresCondition: being-infected

^ParachutableAffectedByTerrorDrone:
Targetable@Parasiteable:
TargetTypes: DroneParasiteable
RequiresCondition: !parachute && !infected
Targetable@byTerrorDrone:
TargetTypes: ValidForTerrorDrone
RequiresCondition: !parachute
Targetable@InfectedByTerrorDrone:
TargetTypes: TerrorDroned
RequiresCondition: !parachute && infected
17 changes: 12 additions & 5 deletions mods/ra2/rules/soviet-vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,24 @@ dron:
-RenderVoxels:
WithInfantryBody:
StandSequences: stand
DefaultAttackSequence: shoot
DefaultAttackSequence: jump
RequiresCondition: !jumping
WithFacingSpriteBody:
Sequence: shoot
RequiresCondition: jumping
Armament:
Weapon: DroneJump
ReloadingCondition: attack-cooldown
AttackLeap:
AttackInfect:
Voice: Attack
PauseOnCondition: attacking || attack-cooldown
Damage: 25
DamageInterval: 20
DamageTypes: DefaultDeath, BulletDeath, DroneSurvive
SurviveHostDamageTypes: DroneSurvive
JumpRange: 1c768
AutoTarget:
InitialStance: AttackAnything
AutoTargetPriority@DEFAULT:
ValidTargets: Infantry
ValidTargets: DroneParasiteable
Voiced:
VoiceSet: TerrorDroneVoice
HitShape:
Expand Down
23 changes: 22 additions & 1 deletion mods/ra2/weapons/melee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,29 @@ DogJaw:
DamageTypes: BulletDeath

DroneJump:
Inherits: DogJaw
ValidTargets: DroneParasiteable
ReloadDelay: 10
Range: 3c0
Report: vteratta.wav
Projectile: InstantHit
Warhead@1Dam: SpreadDamage
Spread: 64
Falloff: 100, 0
Damage: 10000
ValidTargets: ValidForTerrorDrone
Versus:
None: 100
Flak: 100
Plate: 100
Light: 0
Medium: 0
Heavy: 0
Wood: 0
Steel: 0
Concrete: 0
Drone: 0
Rocket: 0
DamageTypes: AltBulletDeath, DefaultDeath, DroneSurvive

AlligatorBite:
ReloadDelay: 30
Expand Down

0 comments on commit 1df3b96

Please sign in to comment.