Commit Graph

170 Commits

Author SHA1 Message Date
abcdefg30
b85cff62d3 Added OnInfiltrated function to lua 2014-10-19 13:24:51 +02:00
Paul Chote
b1fba883a9 Remove legacy Lua API. 2014-10-19 12:43:17 +13:00
Oliver Brakmann
c0da807ee7 Add production support to the new Lua API 2014-10-18 18:19:03 +02:00
Oliver Brakmann
5140ce4762 More Lua API enhancements 2014-10-18 18:19:02 +02:00
Oliver Brakmann
a1ce37ddc5 Fix issues in ScriptTriggers' Clean method
* fixes a memory leak
* moves the cleanup into a FrameEndTask to avoid collisions with the
  trigger iterator (fixes #6747)
2014-10-18 16:25:46 +02:00
Matthias Mailänder
5701162588 Merge pull request #6746 from pchote/lua-ownership
Fix ChangeOwner bogosity.
2014-10-18 12:41:59 +02:00
Paul Chote
79492a3240 End the mission when a script error occurs. 2014-10-18 13:32:15 +13:00
Paul Chote
dbd4b0931b Don’t crash if trigger callbacks throw exceptions. 2014-10-18 12:59:11 +13:00
Paul Chote
8508fc5155 Support changing owner from within scripted maps. 2014-10-18 08:41:11 +13:00
Matthias Mailänder
df5b7d4497 Merge pull request #6699 from obrakmann/fix6692_new_objective_notification
Added notifications for new objectives to scripted missions
2014-10-11 11:05:33 +02:00
Oliver Brakmann
36477ae323 Added notifications for new objectives to scripted missions
Fixes #6692
2014-10-08 06:24:51 +02:00
Paul Chote
34eb634779 Add self argument to Move constructors. 2014-10-07 19:30:23 +13:00
Paul Chote
772994c1c4 Remove Mobile assumptions from Lua APIs. 2014-10-07 19:30:23 +13:00
Matthias Mailänder
24732ae635 port allies-02 to new Lua API 2014-10-05 22:45:23 +02:00
Paul Chote
85b26d1ff8 Update Lua bindings to use array arguments. 2014-10-04 19:43:27 +13:00
Matthias Mailänder
beed736169 Merge pull request #6528 from atlimit8/DragIntoTransports
Modifies IMove & Enter and Fixes #4640 - Units teleport into transports
2014-10-03 15:37:29 +02:00
atlimit8
3f6e1a608a Added IDisableMove 2014-10-03 08:07:05 -05:00
Paul Chote
fd14ebddb8 Remove the now-redundant ScriptInvulnerable trait. 2014-10-01 21:50:18 +13:00
Paul Chote
b6d17d3034 Expose upgrades to map scripts. 2014-10-01 21:50:18 +13:00
Paul Chote
a61fdba44d Implement cell triggers. Closes #4400. 2014-09-30 19:25:09 +13:00
Matthias Mailänder
867ebcec3b port allies-01 to new Lua API 2014-09-28 10:53:01 +02:00
Paul Chote
ca6119821f Allow lua API to bind a minimal set of properties to dead actors. 2014-09-28 14:46:37 +13:00
Jacob Dufault
67ff4dbac1 Remove unnecessary conditionals
- Game.modData.Manifest.LuaScripts is never null.
- context.LoadLuaScripts will work properly even if the file collection is empty.
2014-09-26 17:36:28 -04:00
Oliver Brakmann
6f538e0180 Add more functions for objectives management to Lua API 2014-09-20 10:42:40 +02:00
Matthias Mailänder
9c3baabb6e Merge pull request #6423 from TWaalen/upstream/fix-spelling-luadocs
LuaDocs/Desc attributes spelling fixes
2014-09-07 08:37:01 +02:00
Thijs Waalen
de66e947e0 Changed "the player" to "this player" for the mission objective properties 2014-09-07 00:21:38 +02:00
Thijs Waalen
3a80ee27cd Fix spelling for Actor.Create description 2014-09-06 21:56:33 +02:00
Thijs Waalen
4f4bdf249b Fix wrong changes of possessive 2014-09-06 21:42:19 +02:00
Thijs Waalen
f47fe75970 LuaDocs consistency fixes 2014-09-06 19:29:38 +02:00
Thijs Waalen
eb959c5858 LuaDocs punctuation fixes 2014-09-06 19:29:37 +02:00
Thijs Waalen
a9b5e1d911 LuaDocs spelling fixes 2014-09-06 19:29:37 +02:00
Matthias Mailänder
128b2b8b67 rename the boolean 2014-09-05 15:42:38 +02:00
Matthias Mailänder
a7389a0e45 make this a seasonal easter egg 2014-08-31 20:38:16 +02:00
Oliver Brakmann
d85b5d5a4f Replace explicit Dispose() calls with using statements in ScriptTrigger.cs 2014-08-23 16:21:40 +02:00
Oliver Brakmann
74c45d5d21 Add reinforcements functions to Lua API 2014-08-23 16:21:40 +02:00
Oliver Brakmann
882f3f34c2 Add a number of small helper functions to Lua API 2014-08-23 16:21:40 +02:00
Oliver Brakmann
d23707b5f7 Add OnCapture, OnAddedToWorld and OnRemovedFromWorld triggers to Lua API
This brings the new Lua API up to feature-parity with the old API in the
trigger department.
2014-08-23 16:21:40 +02:00
Oliver Brakmann
1c8a56d197 Make ScriptContext available in Actor- and PlayerProperty classes
Needed to return non-native types to Lua
2014-08-23 16:21:40 +02:00
Alexander Fast
070d00c678 Fixes year numbers in license text in file headers. 2014-08-21 11:27:52 +02:00
Paul Chote
e2ede4ec24 Merge pull request #6201 from cjshmyr/morelua
Add more Lua functions
2014-08-17 12:54:30 +12:00
Curtis Shmyr
cb4bd52fc0 Added more Lua functions 2014-08-15 19:51:02 -06:00
Paul Chote
0425416ce2 Convert damage modifiers to integer percentages. 2014-08-12 11:41:09 +12:00
Oliver Brakmann
8c43ffb802 Add some Media functions to new Lua API 2014-08-08 13:35:50 +02:00
Oliver Brakmann
cca6646927 Add mission objectives to Lua interface 2014-08-08 13:35:43 +02:00
Oliver Brakmann
a448ba29a8 Move trigger lists into a dictionary for easier access and enumeration 2014-08-08 13:34:47 +02:00
Oliver Brakmann
6e3000ab0e Make Conquest- and StrategicVictoryConditions use objectives backend
Note: 3rd party KotH maps will need to be modified to work correctly
with this change.  Previously, StrategicVictoryConditions was a
supplement to ConquestVictoryConditions.  After this change, each works
by itself.  So KotH maps will need to remove the ConquestVictoryConditions
trait from the player definitions, or both victory conditions will have
to be satisfied to win the game.
2014-08-07 16:56:17 +02:00
UberWaffe
c972b39687 Custom Warheads refactor
Changes included:

Warhead code split out of weapon code and refactored.
Warhead functionality now split into several classes, each handling one effect/impact.

Additional custom warheads can now be defined and called via yaml.
Custom warheads inherit the abstract class Warhead,
which provides target check functions.

Custom warheads have to define their own impact functions,
and can also define their own replacement for check
functions.
2014-08-03 17:10:44 +02:00
Matthias Mailänder
405d21d797 add Game.AddChatLine to the new Lua API 2014-07-27 07:34:24 +02:00
Matthias Mailänder
7901c06e4c differentiate new/old Lua APIs 2014-07-20 13:53:12 +02:00
Paul Chote
87e425042f Fix scripted paradrops. 2014-07-19 14:40:29 +12:00