Commit Graph

99 Commits

Author SHA1 Message Date
Mustafa Alperen Seki
9c61217bc6 Add ability to send a radar ping with lua. 2018-07-26 00:03:45 +01:00
reaperrr
5364515004 Don't pass movement class via IsPassable directly
Let IsPassable get that info from the locomotor instead.
2018-05-03 10:49:21 +02:00
reaperrr
81343926b6 Split Locomotor trait from Mobile
Add GrantConditionOn*Layer traits

This allows to
- drop some booleans from Locomotor
- drop a good part of the subterranean- and jumpjet-specific code/hacks from Mobile
- grant more than 1 condition per layer type (via multiple traits)
- easily add more traits of this kind for other layers
2018-05-03 10:49:21 +02:00
abcdefg30
d15b462350 Remove the deprecated Difficulty member from MapGlobal (lua) 2018-03-23 20:23:09 +01:00
Arular101
8a60918841 Update copyright notice year to 2018 2018-01-17 00:47:34 +01:00
abcdefg30
2366490fa0 Add an domain index check 2017-10-08 13:08:51 +02:00
abcdefg30
f48ba0ff86 Find alternative landing spots for blocked reinforcements 2017-10-08 13:08:51 +02:00
reaperrr
3b01da737c Introduce Aircraft VTOL boolean
Rather than hard-linking vertical take-off/land to the CanHover = Helicopter assumption.
2017-08-31 18:03:59 +02:00
rob-v
78bedb0513 Fix IsSinglePlayer 2017-06-27 22:43:15 +01:00
atlimit8
b6810f3dd3 Merge pull request #12986 from abcdefg30/withDesc
Expand the documentation of Reinforce(WithTransport)
2017-03-22 10:23:36 -05:00
abcdefg30
a36a77d637 Add a note about EnemyWatcher being required for On(Player)Discovered 2017-03-18 18:09:20 +01:00
abcdefg30
6069a12973 Expand the documentation of Reinforce(WithTransport) 2017-03-18 16:40:35 +01:00
Paul Chote
6aa2f962b1 Merge pull request #12769 from abcdefg30/luaTile
Add a lua function to query the terrain type of a cell
2017-03-03 22:19:58 +00:00
Paul Chote
78a3dcae85 Remove deprecated Lua APIs. 2017-02-19 14:10:39 +00:00
abcdefg30
603e7ca408 Add a lua function to query the terrain type of a cell 2017-02-12 21:05:48 +01:00
Taryn Hill
43317e0f5d Update copyright notice year to 2017 2016-12-31 23:46:13 -06:00
Paul Chote
9ddfdc45b3 Introduce SoundType enum. 2016-12-23 11:34:23 +00:00
Zimmermann Gyula
3309e8ac3d Look up the production queue multiplier in Lua. 2016-08-21 12:05:34 +02:00
Zimmermann Gyula
de10cb22e8 Shift CustomBuildTimeValue to Buildable. 2016-08-21 12:05:32 +02:00
Taryn Hill
9089012a79 Allow scripts to get the Valued.Cost value of an actor type 2016-08-13 18:46:48 -05:00
Paul Chote
8ce4ab0bd1 Port map difficulty to new options backend. 2016-06-19 22:15:26 +01:00
Paul Chote
1d1b97cb6a Add ScriptLobbyDropdown trait and lua API. 2016-06-19 22:15:26 +01:00
Matthias Mailänder
1a2851bdaf Merge pull request #11316 from obrakmann/mp-allies02
Add Scott's Allies02 multiplayer mission as "Evacuation"
2016-05-30 19:49:07 +02:00
reaperrr
b0e90989a6 Add plumbing for customizable vertical ProximityTrigger range
And check DistanceAboveTerrain instead of just vertical distance to upgrade
source.
This is necessary to avoid situations where an actor is technically on the right
vertical distance above/below ground, but not upgraded because it is located on a lower/higher terrain level than the upgrade source.
2016-05-26 22:47:45 +02:00
Oliver Brakmann
09d1dacd95 Add a Lua API method to randomize a collection 2016-05-19 23:08:01 +02:00
Matthias Mailänder
6a9b8e81f4 Don't expose palettes and sprites to Lua. 2016-05-01 12:29:39 +02:00
Matthias Mailänder
59fbfbc851 Don't enforce beacons to be player palettes. 2016-05-01 12:29:38 +02:00
Matthias Mailänder
9f4cdb9843 Unhardcode player beacons for documentation and lint testing. 2016-05-01 12:27:02 +02:00
abcdefg30
b02a9a188d Add a Utils.Where function to lua for filtering collections 2016-04-08 11:00:19 +02:00
abcdefg30
1c6253c3fb Add a lua method for querying all actors that are currently InWorld 2016-04-07 22:53:13 +02:00
abcdefg30
95f091853e Merge pull request #10975 from Phrohdoh/trait-taggable
Add ScriptTags trait
2016-03-31 01:09:29 +02:00
Oliver Brakmann
4c8b13ef27 Merge pull request #10917 from abcdefg30/luaClosedCell
Add a ClosestEdgeCell and a ClosestMatchingEdgeCell function to lua
2016-03-31 01:04:01 +02:00
abcdefg30
cec2821f13 Add a ClosestEdgeCell and a ClosestMatchingEdgeCell function to lua 2016-03-30 16:05:10 +02:00
abcdefg30
d907296f4e Make the SpawnMapActors field in MapGlobal.cs readonly 2016-03-30 16:05:10 +02:00
Taryn Hill
c6265527b2 Expose passenger enter/exit notifications to Lua 2016-03-29 07:00:01 -05:00
Taryn Hill
6582d0f480 Add ScriptTags trait
This allows actors to be tagged with arbitrary strings.
Also includes ScriptTagsInit and MapGlobal.ActorsWithTag
  which expose this functionality to map scripters.
2016-03-28 16:15:44 -05:00
Paul Chote
e71225496b Clarify GPL version. 2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9 Update licence header year. 2016-02-21 16:27:31 +00:00
Paul Chote
d573e21a48 Traits open files via the Map. 2016-02-18 18:12:33 +00:00
RoosterDragon
8e89a6a696 Simplify names, remove unused usings, remove redundant casts. 2016-01-17 21:35:36 +00:00
Paul Chote
83477ec19e Move VqaReader to Mods.Common. 2016-01-07 21:07:42 +00:00
RoosterDragon
6ab6d774a7 Ensure LuaValues are disposed.
Adding in these missing calls prevents these instances from having to be finalized.
2015-12-23 17:22:51 +00:00
Pavel Penev
1b88d24cfa Unstatic GlobalFileSystem and rename it to FileSystem
Add a ModFiles field on ModData and move all access to the file system to go through that.
2015-12-14 03:42:22 +02:00
Pavel Penev
4c7e6db4da Merge pull request #9599 from ChaoticMind/lua_debug
Add a Lua wrapper to display debug messages (shows if setting enabled)
2015-11-14 20:00:38 +02:00
atlimit8
dac15edce5 Load rgb[a] hex colors from MiniYaml (+ Lua) 2015-10-27 16:09:48 -05:00
abcdefg30
e65465c539 Fix Utils.FormatTime not working properly on different game speeds 2015-10-24 23:42:32 +02:00
abcdefg30
ce95ff074a Add checks for missing music tracks 2015-10-18 20:43:47 +02:00
abcdefg30
0c373cc8c4 Remove an unused using 2015-10-18 20:43:46 +02:00
abcdefg30
4afef8868e Add lua support for playing background music 2015-10-18 20:43:45 +02:00
abcdefg30
674b1672f5 Merge pull request #9488 from atlimit8/MapMusic
Map Music
2015-10-18 17:47:26 +02:00