Commit Graph

165 Commits

Author SHA1 Message Date
Paul Chote
dcad5c3f7c Rename UpgradeManager to ConditionManager. 2016-12-23 14:57:56 +00:00
Paul Chote
9ddfdc45b3 Introduce SoundType enum. 2016-12-23 11:34:23 +00:00
Paul Chote
ea7ad2e337 Migrate lua upgrades to conditions. 2016-12-11 00:40:14 +00:00
reaperrr
f550c3b762 Merge pull request #12315 from obrakmann/activities-pt1
Activities re-write, part 1 (aka the boring bits)
2016-11-18 13:52:06 +01:00
Oliver Brakmann
2c66ee8c13 Add native support for uninterruptible activities
This pattern occurs a few times throughout the code, so it makes sense to bake it into the Activity class itself.
2016-10-31 18:46:27 +01:00
Paul Chote
6b29d70520 Merge pull request #12284 from reaperrr/interface-cleanups02
More explicit interface cleanups
2016-10-30 18:40:43 +00:00
reaperrr
146c07ac5c Merge pull request #12112 from abcdefg30/luaFlash
Add support for applying a target flash to actors through lua
2016-10-22 22:53:38 +02:00
reaperrr
d9ecba7b60 Make INotifyInfiltrated require explicit implementation 2016-10-22 18:21:52 +02:00
reaperrr
1ffb151a38 Merge pull request #12162 from abcdefg30/heliHost
Fix HeliReturnToBase not exposing an host actor parameter
2016-10-22 15:58:06 +02:00
abcdefg30
bfef8694a1 Add support for applying a target flash to actors through lua 2016-10-11 11:05:40 +02:00
abcdefg30
90e6a69152 Rename the airfield parameter to destination 2016-10-05 16:05:56 +02:00
abcdefg30
5d2a6ff2e7 Add a CanTarget method to lua 2016-10-04 10:02:18 +02:00
abcdefg30
3ac6739a8d Target.FromActor never returns a TargetType.FrozenActor 2016-10-04 10:00:01 +02:00
abcdefg30
55143ced87 Fix HeliReturnToBase not exposing an host actor parameter 2016-10-03 14:56:52 +02:00
Paul Chote
34b10dcb77 Hack around the Lua API. 2016-09-26 17:48:25 +01:00
Matthias Mailänder
abbcdbd5df Add OnSelling and OnSold to the Lua API. 2016-09-02 21:59:59 +02:00
Matthias Mailänder
e3df47d6d2 Add Sell to the Lua API. 2016-09-02 21:59:59 +02:00
Matthias Mailänder
9775352856 Add a PassengerCount property to the Lua API. 2016-08-30 07:16:56 +02:00
abcdefg30
284d5e5af5 Fix a possible crash in the lua Player.Team property 2016-08-27 19:44:37 +02: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
WolfGaming
f08853850d Merge pull request #11809 from obrakmann/fix11808_player-lua-api-breakage
Fix Lua API returning wrong player info
2016-08-15 11:57:00 +00:00
Taryn Hill
9089012a79 Allow scripts to get the Valued.Cost value of an actor type 2016-08-13 18:46:48 -05:00
Oliver Brakmann
f6f81e84df Fix Lua API returning wrong player info
The Lua API would return wrong information on player fields such as the team or faction when it was changed in the lobby. It referenced fields on the PlayerReference, which are pretty much read-only and don't get changed by the lobby.
2016-08-11 20:16:01 +02:00
Zimmermann Gyula
cf8fff2b99 Remove passing the warheads from DamageWarhead to AttackInfo.
Added a Damage class to pass damage value and damage(types) instead.
This removes a great amount of overhead and longterm opens possibilities to have damagetypes without warheads.
2016-07-12 10:09:49 +02:00
Oliver Brakmann
20d55a1d93 Add Lua integration for PlayerExperience 2016-07-10 15:30:17 +02:00
abcdefg30
61fd9d2959 Add AmmoPoolProperties to lua 2016-06-21 23:20:02 +02:00
abcdefg30
4461379963 Make the Attack lua method available for non-mobile actors 2016-06-21 22:49:29 +02:00
abcdefg30
19482863fd Expose Land and Resupply functions for aircraft to lua 2016-06-21 22:49:28 +02: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
RoosterDragon
773eb25917 Merge pull request #10630 from reaperrr/UAN-custom-pos
Make UpgradeActorsNear vertical range customizable
2016-05-28 13:37:09 +01: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
Matthias Mailänder
3e011a74af Rename C4Demolition to Demolition. 2016-05-26 19:27:40 +02:00
Oliver Brakmann
ebba7fdaf1 Add methods to retrieve player stats to Lua API 2016-05-19 23:08:01 +02:00
Oliver Brakmann
09d1dacd95 Add a Lua API method to randomize a collection 2016-05-19 23:08:01 +02:00
Oliver Brakmann
735975057d Add another way to call air strikes/paradrops to the Lua API 2016-05-19 23:08:01 +02:00
Oliver Brakmann
d743c23482 Add missing Requires to MissionObjectiveProperties 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
reaperrr
828dc61b67 Use already cached mobile in MobileProperties.Scatter 2016-04-24 20:12:51 +02:00
Matthias Mailänder
f37f1f1e0c Add Player.GetActors to the Lua API. 2016-04-10 19:52:41 +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