Commit Graph

37 Commits

Author SHA1 Message Date
Paul Chote
9aab4b2be6 Move shared font files to the common mod directory. 2014-10-19 19:54:02 +13:00
Paul Chote
b1fba883a9 Remove legacy Lua API. 2014-10-19 12:43:17 +13:00
atlimit8
6640fa2539 Fixes old Lua Move Activity 2014-10-11 06:27:49 -05:00
atlimit8
0e182e4fa8 Fixes old Lua Turn Activity crash 2014-10-11 05:26:56 -05:00
Oliver Brakmann
0cf49ad49f Fix old-lua paradrop too. 2014-07-19 14:42:36 +12:00
Oliver Brakmann
33b916a713 Fix RepairBuilding not working for AI and Lua scripts
Fixes #5861
2014-07-07 19:43:52 +02:00
Oliver Brakmann
3a67b3dec3 Fix breakage of the old Lua API due to recent changes
Specifically, the CPos::CenterPosition -> Map::CenterOfCell rename (#5758),
as well as the additional argument to Paradrop::SetLZ (#5695).
2014-07-06 01:21:22 +02:00
Matthias Mailänder
1e2e7bcf42 StyleCop 2014-07-05 09:00:20 +02:00
Oliver Brakmann
f8e5217b11 Fix breakage of old Lua api. Fixes #5686. 2014-06-21 13:04:31 +02:00
Oliver Brakmann
3a2bb75e01 Check team members' health in Team.Do function 2014-06-03 20:19:49 +02:00
Oliver Brakmann
7b3974d688 Add Reinforcements.ReinforceWithCargo 2014-03-23 14:16:05 +01:00
Oliver Brakmann
ca786f6039 Add Production.BuildTeamFromTemplate
Production.BuildTeamFromTemplate allows the production of teams from a
list of
actor types, assigning a function to that team once it is complete.

A 'template' in this case looks like this:
template = { {factory, {list of units to build using aforementioned factory}} }
e.g. template = { {barracks, {"e1", "e1", "e1", "e3", "e3"}} }

You can also build teams using multiple factories like this:
template = { {barracks, {"e3", "e3", "e3"}}, {war_factory, {"3tnk", "3tnk"}} }

Before using Production.BTFT you need to call
Production.EventHandlers.Setup once.
2014-03-21 23:22:01 +01:00
Oliver Brakmann
0eb1e2cc6d Actor.Patrol*: make sure that the actor is still alive 2014-03-21 23:22:01 +01:00
Oliver Brakmann
64a18389b7 Allow for incremental team assembly 2014-03-17 22:20:04 +01:00
Oliver Brakmann
00bc3f71fe Make Production.SetRallyPoint and .SetPrimaryBuilding more robust 2014-03-17 22:20:04 +01:00
Oliver Brakmann
800665579b Add Actor.RepairBuilding 2014-03-17 22:20:03 +01:00
ScottNZ
7d43ecc33f Remove the temperate RA shellmap and port the desert shellmap to Lua. 2014-03-06 19:27:29 +13:00
Oliver Brakmann
e65626cc6b Add Actor.Guard 2014-02-17 19:16:47 +01:00
Oliver Brakmann
bfc34df581 Add Actor.OnDamaged
Allows the AI to react to its units being attacked.
2014-02-17 19:16:47 +01:00
Oliver Brakmann
ba1558259b Add constants for the 8 main facing values to Lua. Fixes #4490 2014-02-17 19:16:47 +01:00
ScottNZ
025de83d3a Fix cargo loading/unloading.
- Fix the unloading subcell bug, letting us have units move to directly adjacent cells.
- Have the cursor change to a deploy-blocked cursor if the transport can't unload due to terrain type.
- Add RenderTransport for transport door opening.
- Remove turning/opening in general.
2014-02-12 20:07:44 +13:00
Oliver Brakmann
2f9b1459a8 Fix OpenRA.GetRandomInteger crashing under certain circumstances
OpenRA.GetRandomInteger crashes when the supplied high value is less or
equal to the low value.  A situation where this might occur is when you
try to get a random member of a dynamically generated array that
happens to have only a single member.
2014-02-02 23:37:22 +01:00
Oliver Brakmann
6be0a26353 Fix OpenRA.RunAfterDelay queuing a null action. Fixes #4512. 2014-02-02 23:37:22 +01:00
Oliver Brakmann
886efd0b97 Add production-related Lua functions 2014-02-02 23:37:22 +01:00
Oliver Brakmann
42532efd8f Replace Lua's for loops with Utils.Do/Team.Do
Besides fitting in better with the OpenRA coding style, this also gets
rid of some weird timing-related errors I have seen when creating teams
with a larger number (6+) of members. (The script would just print
'Error: function' in Team.AddActorEventHandlers. Adding a strategically
placed print statement fixed that. Replacing the original for loop with
Team.Do did as well)
2014-02-02 23:37:22 +01:00
Oliver Brakmann
b3323869cb Add Map.FindActorsInCircle and ...InBox, plus related shortcuts 2014-02-02 23:37:22 +01:00
Oliver Brakmann
5322096dc4 Add Team.Patrol and Actor.Patrol. Fixes #4491. 2014-02-02 23:37:22 +01:00
Oliver Brakmann
43e386a48d Add Utils.Seconds and Utils.Minutes 2014-02-02 22:30:36 +01:00
Oliver Brakmann
9500a11689 Add Actor.ReturnToBase 2014-02-02 22:30:36 +01:00
Paul Chote
fae9611d27 Fix HeliFly lua bindings. 2014-02-01 10:56:06 +13:00
Dan9550
91050ba458 OnCapture lua trigger & nod03a
Cleaned up nod03a, spaces -> tabs

nod03a and OnCapture lua trigger
2014-01-05 20:19:13 +11:00
Matthias Mailänder
da8341e336 InitialAltitude is now part of CenterPositition in Lua, too
followup of #4371
2013-12-30 08:38:39 +01:00
ScottNZ
7ca5d56c1f Move the TraitInfo stuff into rules.lua 2013-12-20 22:53:37 +13:00
Paul Chote
883b014888 Generalize reinforcement insertion / extraction. 2013-12-20 20:32:42 +13:00
ScottNZ
09b694095c Add Map.GetNamedActor for map actor lookup 2013-12-20 19:20:56 +13:00
ScottNZ
061eb412ca Rename SupportPowers.Parabomb to SupportPowers.Airstrike 2013-12-19 19:26:58 +13:00
ScottNZ
a4f3caa6e7 Moved mods/ra/lua to mods/common/lua 2013-12-19 19:26:58 +13:00