Skip to content

Commit

Permalink
Add Carryall to Transport
Browse files Browse the repository at this point in the history
It can carry vehicles without infantry loaded
and not pickup vehicles when infantry is inside.
  • Loading branch information
Mailaender committed Jan 15, 2023
1 parent de4bc77 commit 9335682
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mods/cnc/rules/aircraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ TRAN:
MaxWeight: 10
UnloadVoice: Unload
AfterUnloadDelay: 40
RequiresCondition: !carrying
LoadedCondition: loaded
Carryall:
BeforeLoadDelay: 10
BeforeUnloadDelay: 10
LocalOffset: 0,0,-200
CarryCondition: carrying
RequiresCondition: !loaded
SpawnActorOnDeath:
Actor: TRAN.Husk
Selectable:
Expand Down
1 change: 1 addition & 0 deletions mods/cnc/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@
HitShape:
MapEditorData:
Categories: Vehicle
Carryable:

^Tank:
Inherits: ^Vehicle
Expand Down

0 comments on commit 9335682

Please sign in to comment.