Skip to content

Commit 349c7de

Browse files
committed
Add AI yaml for LoadCargoBotModule
1 parent 2563a1d commit 349c7de

File tree

4 files changed

+64
-55
lines changed

4 files changed

+64
-55
lines changed

mods/ca/rules/ai.yaml

Lines changed: 47 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,22 +1961,18 @@ Player:
19611961
bori: 15
19621962
yuri: 15
19631963
mast: 15
1964-
apc.ai: 20
1965-
sapc.ai: 10
1966-
sapc.ai2: 10
1967-
intl.ai: 10
1968-
intl.ai2: 10
1964+
apc: 20
1965+
sapc: 10
1966+
intl: 10
19691967
jeep: 30
1970-
apc2.nodai: 20
1971-
apc2.gdiai: 20
1972-
rapc.ai: 20
1973-
vulc.ai: 10
1968+
apc2: 20
1969+
rapc: 20
1970+
vulc: 10
19741971
hmmv: 30
19751972
gdrn: 30
19761973
mdrn: 20
19771974
xo: 20
19781975
btr: 20
1979-
btr.ai: 10
19801976
gunw: 20
19811977
shrw: 20
19821978
bggy: 30
@@ -1993,7 +1989,7 @@ Player:
19931989
ruin: 20
19941990
atmz: 20
19951991
1tnk: 70
1996-
ifv.ai: 70
1992+
ifv: 70
19971993
2tnk: 45
19981994
gtnk.squad: 20
19991995
tnkd: 45
@@ -2032,7 +2028,7 @@ Player:
20322028
nhaw: 3
20332029
ctnk: 3
20342030
chpr: 3
2035-
batf.ai: 10
2031+
batf: 10
20362032
wtnk: 3
20372033
ttnk: 25
20382034
ttra: 25
@@ -2088,17 +2084,15 @@ Player:
20882084
mgg: 1
20892085
cdrn: 1
20902086
nhaw: 1
2091-
apc.ai: 2
2092-
apc2.nodai: 2
2093-
apc2.gdiai: 2
2094-
rapc.ai: 2
2095-
vulc.ai: 5
2096-
btr.ai: 5
2087+
apc: 2
2088+
apc2: 2
2089+
rapc: 2
2090+
vulc: 5
2091+
btr: 5
2092+
sapc: 1
20972093
hmmv: 2
20982094
bggy: 2
20992095
jeep: 2
2100-
sapc.ai: 1
2101-
sapc.ai2: 1
21022096
e6: 1
21032097
n6: 1
21042098
s6: 1
@@ -2231,21 +2225,17 @@ Player:
22312225
bori: 15
22322226
yuri: 15
22332227
mast: 15
2234-
apc.ai: 20
2235-
sapc.ai: 10
2236-
sapc.ai2: 10
2237-
intl.ai: 10
2238-
intl.ai2: 10
2228+
apc: 20
2229+
sapc: 10
2230+
intl: 10
22392231
jeep: 30
2240-
apc2.nodai: 20
2241-
apc2.gdiai: 20
2242-
vulc.ai: 10
2232+
apc2: 20
2233+
vulc: 10
22432234
hmmv: 30
22442235
gdrn: 30
22452236
mdrn: 20
22462237
xo: 20
22472238
btr: 20
2248-
btr.ai: 10
22492239
gunw: 20
22502240
shrw: 20
22512241
bggy: 30
@@ -2262,7 +2252,7 @@ Player:
22622252
ruin: 20
22632253
atmz: 20
22642254
1tnk: 70
2265-
ifv.ai: 70
2255+
ifv: 70
22662256
2tnk: 45
22672257
gtnk.squad: 20
22682258
tnkd: 45
@@ -2301,7 +2291,7 @@ Player:
23012291
nhaw: 3
23022292
ctnk: 3
23032293
chpr: 3
2304-
batf.ai: 10
2294+
batf: 10
23052295
wtnk: 3
23062296
ttnk: 25
23072297
ttra: 25
@@ -2357,17 +2347,15 @@ Player:
23572347
mgg: 1
23582348
cdrn: 1
23592349
nhaw: 1
2360-
apc.ai: 2
2361-
apc2.nodai: 2
2362-
apc2.gdiai: 2
2363-
rapc.ai: 2
2364-
vulc.ai: 5
2365-
btr.ai: 5
2350+
apc: 2
2351+
apc2: 2
2352+
rapc: 2
2353+
vulc: 5
2354+
btr: 5
2355+
sapc: 1
23662356
hmmv: 2
23672357
bggy: 2
23682358
jeep: 2
2369-
sapc.ai: 1
2370-
sapc.ai2: 1
23712359
e6: 1
23722360
n6: 1
23732361
s6: 1
@@ -2498,7 +2486,7 @@ Player:
24982486
ruin: 20
24992487
atmz: 20
25002488
1tnk: 70
2501-
ifv.ai: 70
2489+
ifv: 70
25022490
2tnk: 45
25032491
gtnk.squad: 20
25042492
tnkd: 45
@@ -2537,7 +2525,7 @@ Player:
25372525
nhaw: 3
25382526
ctnk: 3
25392527
chpr: 3
2540-
batf.ai: 10
2528+
batf: 10
25412529
wtnk: 3
25422530
ttnk: 25
25432531
ttra: 25
@@ -2731,7 +2719,7 @@ Player:
27312719
ruin: 20
27322720
atmz: 20
27332721
1tnk: 70
2734-
ifv.ai: 70
2722+
ifv: 70
27352723
2tnk: 45
27362724
gtnk.squad: 20
27372725
tnkd: 45
@@ -2770,7 +2758,7 @@ Player:
27702758
nhaw: 3
27712759
ctnk: 3
27722760
chpr: 3
2773-
batf.ai: 10
2761+
batf: 10
27742762
wtnk: 3
27752763
ttnk: 25
27762764
ttra: 25
@@ -2944,3 +2932,19 @@ Player:
29442932
deva: 3
29452933
pac: 3
29462934
mshp: 1
2935+
LoadCargoBotModule:
2936+
RequiresCondition: enable-brutal-ai || enable-vhard-ai || enable-hard-ai || enable-normal-ai || enable-easy-ai || enable-naval-ai
2937+
TransportTypesAndLoadRequirement:
2938+
apc: IdleUnit
2939+
sapc: IdleUnit
2940+
intl: IdleUnit
2941+
apc2: IdleUnit
2942+
apc2.reinforce: IdleUnit
2943+
rapc: IdleUnit
2944+
vulc: IdleUnit
2945+
btr: IdleUnit
2946+
ifv: All
2947+
batf: All
2948+
PassengerTypes: e1, e1r1, e2, e3, e3r1, e4, n1, n1r1, n2, n2r1, n3, n3r1, n4, n5, n5r1, n1c, n3c, s1, s2, s3, s4, feed, u3, rmbc, enli, mort, shok, e8, snip, bjet, acol, tplr, bh, ivan, rmbo, e7, seal, bori
2949+
ScanTick: 203
2950+
ValidTransportOwner: AlliedBot

mods/ca/rules/defaults.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3766,6 +3766,12 @@
37663766
UnloadOnCondition@AIUNLOAD:
37673767
RequiresCondition: damage || aiming
37683768

3769+
^AIEJECT:
3770+
GrantConditionOnDamageState@AIEJECT:
3771+
Condition: damage
3772+
UnloadOnCondition@AIEJECT:
3773+
RequiresCondition: damage
3774+
37693775
^QueueUpdater:
37703776
FreeActor@QUEUEUPDATER:
37713777
Actor: QueueUpdaterDummy

mods/ca/rules/scrin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,7 @@ INTL:
12071207
Inherits@HOVERTRAIL: ^HoverTrail
12081208
Inherits@TANKBUSTERVULN: ^TankBusterVulnerability
12091209
Inherits@SCRINVEHICLEVOICE: ^ScrinVehicleVoice
1210+
Inherits@AIUNLOAD: ^AIUNLOAD
12101211
RenderSprites:
12111212
PlayerPalette: playerscrin
12121213
Valued:
@@ -1300,7 +1301,6 @@ INTL.AI:
13001301

13011302
INTL.AI2:
13021303
Inherits: INTL.AI
1303-
Inherits@AIUNLOAD: ^AIUNLOAD
13041304
RenderSprites:
13051305
Image: INTL
13061306
Buildable:

mods/ca/rules/vehicles.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,7 @@ SAPC:
13211321
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
13221322
Inherits@BERSERK: ^Berserk
13231323
Inherits@TRANSPORT: ^Transport
1324+
Inherits@AIUNLOAD: ^AIUNLOAD
13241325
Buildable:
13251326
Queue: VehicleSQ, VehicleMQ
13261327
BuildPaletteOrder: 255
@@ -1401,7 +1402,6 @@ SAPC:
14011402

14021403
SAPC.AI:
14031404
Inherits: SAPC
1404-
Inherits@AIUNLOAD: ^AIUNLOAD
14051405
RenderSprites:
14061406
Image: sapc
14071407
Buildable:
@@ -1411,7 +1411,6 @@ SAPC.AI:
14111411

14121412
SAPC.AI2:
14131413
Inherits: SAPC
1414-
Inherits@AIUNLOAD: ^AIUNLOAD
14151414
RenderSprites:
14161415
Image: sapc
14171416
Buildable:
@@ -1690,6 +1689,7 @@ APC:
16901689
Inherits@BERSERK: ^Berserk
16911690
Inherits@TRANSPORT: ^Transport
16921691
Inherits@SLOWCRUSH: ^SlowedByCrushing
1692+
Inherits@AIUNLOAD: ^AIUNLOAD
16931693
Buildable:
16941694
Queue: VehicleSQ, VehicleMQ
16951695
BuildPaletteOrder: 50
@@ -1783,7 +1783,6 @@ RAPC:
17831783

17841784
APC.AI:
17851785
Inherits: APC
1786-
Inherits@AIUNLOAD: ^AIUNLOAD
17871786
RenderSprites:
17881787
Image: APC
17891788
Buildable:
@@ -1795,7 +1794,6 @@ APC.AI:
17951794

17961795
RAPC.AI:
17971796
Inherits: RAPC
1798-
Inherits@AIUNLOAD: ^AIUNLOAD
17991797
RenderSprites:
18001798
Image: RAPC
18011799
Buildable:
@@ -2784,6 +2782,7 @@ APC2:
27842782
Inherits@BERSERK: ^Berserk
27852783
Inherits@TRANSPORT: ^Transport
27862784
Inherits@SLOWCRUSH: ^SlowedByCrushing
2785+
Inherits@AIUNLOAD: ^AIUNLOAD
27872786
RenderSprites:
27882787
FactionImages:
27892788
nod: apc2.nod
@@ -2857,7 +2856,6 @@ APC2:
28572856

28582857
APC2.NODAI:
28592858
Inherits: APC2
2860-
Inherits@AIUNLOAD: ^AIUNLOAD
28612859
Buildable:
28622860
Prerequisites: ~botplayer, ~vehicles.nod, ~!vulcan.upgrade, ~vehicles.apc2, ~techlevel.low
28632861
RenderSprites:
@@ -2869,7 +2867,6 @@ APC2.NODAI:
28692867

28702868
APC2.GDIAI:
28712869
Inherits: APC2
2872-
Inherits@AIUNLOAD: ^AIUNLOAD
28732870
Buildable:
28742871
Prerequisites: ~botplayer, ~vehicles.gdi, ~!vulcan.upgrade, ~vehicles.apc2, ~techlevel.low
28752872
RenderSprites:
@@ -2881,7 +2878,6 @@ APC2.GDIAI:
28812878

28822879
APC2.Reinforce:
28832880
Inherits: APC2
2884-
Inherits@AIUNLOAD: ^AIUNLOAD
28852881
RenderSprites:
28862882
Image: APC2
28872883
-Buildable:
@@ -2901,6 +2897,7 @@ VULC:
29012897
Inherits@TRANSPORT: ^Transport
29022898
Inherits@SLOWCRUSH: ^SlowedByCrushing
29032899
Inherits@A2GPROTECTION: ^AirToGroundProtection
2900+
Inherits@AIUNLOAD: ^AIUNLOAD
29042901
Buildable:
29052902
Queue: VehicleSQ, VehicleMQ
29062903
BuildPaletteOrder: 52
@@ -3020,7 +3017,6 @@ VULC:
30203017

30213018
VULC.AI:
30223019
Inherits: VULC
3023-
Inherits@AIUNLOAD: ^AIUNLOAD
30243020
RenderSprites:
30253021
Image: VULC
30263022
Buildable:
@@ -3030,7 +3026,6 @@ VULC.AI:
30303026

30313027
VULC.Reinforce:
30323028
Inherits: VULC
3033-
Inherits@AIUNLOAD: ^AIUNLOAD
30343029
RenderSprites:
30353030
Image: vulc
30363031
-Buildable:
@@ -4285,6 +4280,7 @@ BTR:
42854280
Inherits@TRANSPORT: ^Transport
42864281
Inherits@SLOWCRUSH: ^SlowedByCrushing
42874282
Inherits@A2GPROTECTION: ^AirToGroundProtection
4283+
Inherits@AIUNLOAD: ^AIUNLOAD
42884284
Buildable:
42894285
Queue: VehicleSQ, VehicleMQ
42904286
BuildPaletteOrder: 21
@@ -4348,7 +4344,6 @@ BTR:
43484344

43494345
BTR.AI:
43504346
Inherits: BTR
4351-
Inherits@AIUNLOAD: ^AIUNLOAD
43524347
RenderSprites:
43534348
Image: BTR
43544349
Buildable:
@@ -4364,6 +4359,7 @@ IFV:
43644359
Inherits@SLOWCRUSH: ^SlowedByCrushing
43654360
Inherits@COMMANDOSKULL: ^CommandoSkull
43664361
Inherits@A2GPROTECTION: ^AirToGroundProtection
4362+
Inherits@AIEJECT: ^AIEJECT
43674363
Buildable:
43684364
Queue: VehicleSQ, VehicleMQ
43694365
BuildPaletteOrder: 120
@@ -6046,6 +6042,7 @@ BATF:
60466042
Inherits@SHRAPNEL: ^ThrowsShrapnel
60476043
Inherits@COMMANDOSKULL: ^CommandoSkull
60486044
Inherits@TANKBUSTERVULN: ^TankBusterVulnerability
6045+
Inherits@AIEJECT: ^AIEJECT
60496046
Buildable:
60506047
Queue: VehicleSQ, VehicleMQ
60516048
BuildPaletteOrder: 340
@@ -6196,7 +6193,9 @@ BATF:
61966193
Palette: effect
61976194
Position: TopLeft
61986195
ValidRelationships: Ally, Enemy, Neutral
6199-
-Targetable@HERO:
6196+
-Targetable@HERO:
6197+
GrantConditionOnDamageState@AIEJECT:
6198+
ValidDamageStates: Critical
62006199

62016200
BATF.AI:
62026201
Inherits: BATF

0 commit comments

Comments
 (0)