This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
Coalition.rte/Devices/Weapons/MissileLauncher
Techion.rte/Devices/Weapons/NanoRifle Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ function BunkerBreach:UpdateActivity()
214
214
self .defenderBrain = findBrain ;
215
215
else
216
216
self .WinnerTeam = self .attackerTeam ;
217
- MovableMan :KillAllEnemyActors (self .defenderTeam );
217
+ MovableMan :KillAllEnemyActors (self .attackerTeam );
218
218
ActivityMan :EndActivity ();
219
219
return
220
220
end
@@ -313,7 +313,7 @@ function BunkerBreach:UpdateActivity()
313
313
end
314
314
end
315
315
elseif MovableMan :GetTeamMOIDCount (self .CPUTeam ) < 5 then
316
- MovableMan :KillAllEnemyActors (self .CPUTeam );
316
+ MovableMan :KillAllEnemyActors (self .playerTeam );
317
317
self .WinnerTeam = self .playerTeam ;
318
318
ActivityMan :EndActivity ();
319
319
return
@@ -498,7 +498,7 @@ function BunkerBreach:CreateBrainBot(team)
498
498
if actor then
499
499
actor :AddInventoryItem (RandomHDFirearm (" Weapons - Light" , tech ));
500
500
if team == self .attackerTeam then
501
- actor :AddInventoryItem (CreateHDFirearm (" Medium Digger " , " Base.rte" ));
501
+ actor :AddInventoryItem (CreateHDFirearm (" Constructor " , " Base.rte" ));
502
502
else
503
503
actor :AddInventoryItem (RandomHDFirearm (" Weapons - Secondary" , tech ));
504
504
end
Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ AddDevice = HDFirearm
391
391
AddToGroup = Weapons - Heavy
392
392
AddToGroup = Weapons - Explosive
393
393
Description = Can fire powerful automatically guided missiles, excellent at destroying enemy craft. Lock-on to enemy units using the laser pointer!
394
- Mass = 45
394
+ Mass = 36
395
395
HitsMOs = 0
396
396
GetsHitByMOs = 1
397
397
ScriptPath = Coalition.rte/Devices/Weapons/MissileLauncher/MissileLauncher.lua
Original file line number Diff line number Diff line change @@ -29,9 +29,12 @@ function Update(self)
29
29
local terrCheck = SceneMan :GetTerrMatter (checkPos .X , checkPos .Y );
30
30
if terrCheck == rte .airID then
31
31
local moCheck = SceneMan :GetMOIDPixel (checkPos .X , checkPos .Y );
32
- if moCheck ~= rte .NoMOID and MovableMan :GetMOFromID (moCheck ).Team ~= actor .Team then
33
- roughLandPos = checkPos ;
34
- break ;
32
+ if moCheck ~= rte .NoMOID then
33
+ local mo = ToMOSRotating (MovableMan :GetMOFromID (moCheck ));
34
+ if mo and (mo .Team ~= actor .Team or (mo .WoundCount > 0 and mo .PresetName ~= " Nano Rifle" )) then
35
+ roughLandPos = checkPos ;
36
+ break ;
37
+ end
35
38
end
36
39
else
37
40
roughLandPos = checkPos ;
You can’t perform that action at this time.
0 commit comments