Commit Graph

4493 Commits

Author SHA1 Message Date
reaperrr
415e0bb54c Split AudReader from AudLoader and move it to FileFormats
We already separated loading from file format reading for sprites and videos.
2016-06-23 23:47:54 +02:00
reaperrr
ed210b380f Move audio loaders from engine to mod level 2016-06-23 23:47:52 +02:00
reaperrr
27993729be Make attack cursor smarter
Rather than simply taking the first valid armament, regardless of available ammo and regardless of which valid armament has the highest range, the attack cursor is now chosen a) by whether the armament has ammo and b) by which valid armament has the highest range.
2016-06-23 15:09:11 +02:00
reaperrr
40e5dfbedb Fix helicopters not returning when all valid weapons are out of ammo
They now return if all weapons are invalid (which includes those that are otherwise valid, but out of ammo) and at least one AmmoPool needs reloading at RearmBuilding.
2016-06-23 14:47:42 +02:00
reaperrr
4f55b088eb Check if weapon without self-reloading is out of ammo when deciding validity
This should prevent attacking helicopters (or other actors) staying at the range to target of a weapon that is out of ammo and needs manual reloading at a RearmBuilding or via upgrades.
2016-06-23 14:47:41 +02:00
Oliver Brakmann
c2d4a3a8e8 Merge pull request #11470 from pchote/fix-direction-check
Fix Mobile.IsMovingInMyDirection check.
2016-06-22 22:49:03 +02:00
abcdefg30
34c6edbbe7 Merge pull request #11456 from obrakmann/disable-singleplayer-by-default-for-dedicateds
Disable single-player games by default on dedicated servers
2016-06-22 22:28:37 +02:00
Oliver Brakmann
95dbaa5d1f Merge pull request #11373 from reaperrr/fix-footprints
Fixed footprints of several RA and TD base structures
2016-06-22 20:51:36 +02:00
Oliver Brakmann
8e2adc7627 Disable singleplayer games by default on dedicated servers 2016-06-22 20:37:31 +02:00
reaperrr
096d82a901 Map actor Location upgrade rules
To move all buildings with changed footprint down by 1 cell.
2016-06-21 23:53:52 +02:00
reaperrr
57ff4822fc Add support for custom locations to legacy map importer
For example, to place actors with changed footprint correctly.
Use it to ensure correct positioning of several RA and TD structures as well as TD tiberium trees.
2016-06-21 23:53:50 +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
2355ad9dd1 Move carryall code to Mods.Common. 2016-06-21 21:38:19 +01:00
Oliver Brakmann
2e07459e98 Make RejectsOrders upgradable 2016-06-21 19:13:25 +02:00
Oliver Brakmann
41417c5ad2 Add a DeathTypes filter to GivesBounty
also:

* Updates the documentation
* Adds an option to disable the floating text
2016-06-21 19:13:25 +02:00
reaperrr
8ba833777c Make AI deploy MCVs in the vincinity of existing construction yards
While the general idea of AIs building distant secondary bases might be tempting, in reality the AI would way too often send the MCV close to some enemy base, wasting the cash and potentially increased build speed/additional build queue.

Deploying MCVs close to the existing base ensures that the AI will actually have some benefit from building an MCV.
2016-06-20 20:52:04 +02:00
reaperrr
5992530655 Fix AI giving orders to MCVs that already have orders
Checking for IsMoving is a flawed approach no matter how you look at it. The MCV might just have temporarily stopped due to an obstacle, or about to be deployed.

Checking for IsIdle instead ensures that the MCV really isn't already in the process of doing something.
2016-06-20 20:52:04 +02:00
reaperrr
b5a67444e7 Pass ModData to upgrade methods 2016-06-20 18:59:26 +02:00
reaperrr
526f851489 Merge pull request #11426 from pchote/actorpreview-dynamic-facing
Support dynamic ActorPreview facings and creating previews from live actors.
2016-06-20 14:38:11 +02:00
reaperrr
7467a0e1a9 Merge pull request #11451 from pchote/map-lua-options
Port map difficulties to new lobby options backend.
2016-06-20 13:03:47 +02:00
reaperrr
94bde04422 Merge pull request #11483 from Mailaender/supportpower-factionspeech
Added support power speech notifications
2016-06-20 12:21:48 +02:00
Paul Chote
b59b57f67e Hide checkboxes if no matching trait exists. 2016-06-19 22:15:27 +01:00
Paul Chote
6570e1b22e Avoid crash when parsing an order with duplicate IDs. 2016-06-19 22:15:27 +01: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
Taryn Hill
1359361832 Add a utility command to output an actor's MiniYaml tree
Possibly taking in a path (to a .zip/.oramap/directory).
2016-06-19 15:39:39 -05:00
abcdefg30
a8fc18522e Merge pull request #11479 from reaperrr/improve-shadow
Improve WithShadow
2016-06-19 22:29:29 +02:00
abcdefg30
2d21d6aad2 Merge pull request #11485 from obrakmann/fix11472_X.vqa
Fix blank video heuristic for legacy map import to include upper-case 'X'
2016-06-19 20:40:27 +02:00
Oliver Brakmann
e08ba5eaee Fix blank video heuristic for legacy map import to include upper-case 'X' 2016-06-19 20:11:05 +02:00
reaperrr
cc9b24d932 Make WithShadow Offset and ZOffset customizable 2016-06-19 19:13:10 +02:00
Matthias Mailänder
409fe9067a Add speech notification equivalents to support power sounds. 2016-06-19 18:46:05 +02:00
reaperrr
723c107aa5 Merge pull request #11473 from pchote/shroud-map-crate
Disable hide map crate if explored map is enabled.
2016-06-19 18:32:11 +02:00
reaperrr
e5986788a2 Merge pull request #11396 from Mailaender/sync-projectiles
Speed up sync by only syncing projectiles
2016-06-19 18:22:41 +02:00
reaperrr
6b1adbacc4 Make WithShadow public and upgradable 2016-06-19 15:16:28 +02:00
Matthias Mailänder
5245df729d Migrate to Open.Nat version 2.0.16
Move the dependency from all libraries to game engine only.
Initialize after the renderer setup to ensure a visible window.
2016-06-19 08:41:14 +02:00
reaperrr
38295341a8 Merge pull request #11445 from abcdefg30/emp-support-power
Emp support power take 2
2016-06-18 21:14:01 +02:00
Oliver Brakmann
87df458c2e Merge pull request #11462 from pchote/stream-installer-copy
Extract installer data using direct stream-stream copies
2016-06-18 20:56:26 +02:00
Paul Chote
9edf4be229 Disable hide map crate if explored map is enabled. 2016-06-18 14:18:05 +01:00
abcdefg30
4d130892c0 Merge pull request #11461 from pchote/fmv-install-prompt
Prompt FMV installation when trying to play a missing video.
2016-06-18 14:15:10 +02:00
Paul Chote
cf23c85834 Fix Mobile.IsMovingInMyDirection check.
self.Location returns mobile.ToCell, so the old
code would always return a dot product of 0.
2016-06-18 13:07:59 +01:00
Paul Chote
5a1766ab5d Merge pull request #11467 from Mailaender/asset-installer-rework-minor-fixes
Fixed some minor issues in the new mod content extraction.
2016-06-18 12:30:55 +01:00
Paul Chote
8a6bc1f6f1 Merge pull request #11308 from reaperrr/fix-11304-IsMoving
Fix IsMoving returning false when activity is a MovePart-derivative
2016-06-18 11:32:51 +01:00
Zimmermann Gyula
58a0e381a5 Expose ParachutableInfo. 2016-06-18 11:37:57 +02:00
Matthias Mailänder
790171ed87 Fix the MIX file ending. 2016-06-18 11:05:29 +02:00
Paul Chote
6463b31c99 Add a minimum size threshold for showing progress. 2016-06-17 19:26:13 +01:00
Paul Chote
f1758e9559 Stream installer copy and raw extraction. 2016-06-17 18:53:59 +01:00
Paul Chote
63782aad2e Stream MSCab extraction output. 2016-06-16 21:20:42 +01:00
Paul Chote
a9a5b9bc71 Change Blast.Decompress to use Stream I/O. 2016-06-16 21:20:27 +01:00