Commit Graph

17524 Commits

Author SHA1 Message Date
Matthias Mailänder
3b25a2029a Merge pull request #8805 from obrakmann/fix8802_enemy-unit-selection
Fix not being able to select enemy units
2015-07-27 19:38:37 +02:00
abcdefg30
adfa2af4bc Merge pull request #8800 from Mailaender/ts-deployed-units
Fixed deployed vehicles being treated as buildings
2015-07-27 18:53:48 +02:00
abcdefg30
88466473dd Use HeadshotDeath instead of BulletDeath for Umagon's rifle 2015-07-27 17:34:12 +02:00
reaperrr
e1ef6967f6 Sniper isn't buildable anymore 2015-07-27 16:00:53 +02:00
Oliver Brakmann
a2a0059f7f Fix chronoshift duration being visible to enemy players 2015-07-27 13:32:51 +02:00
reaperrr
76f2145db2 Added random factor to building production delay
Early game AI usually follows the same build order (power plant first, then refinery), which also means they all start producing them at the same tick. This adds a random factor to the production delay, so not all AIs produce on the same tick.
2015-07-27 13:28:07 +02:00
reaperrr
c7af9c180e Further improved building placement failure check
Since naval structures have their own safety measures now and therefore shouldn't count towards failCount under normal circumstances, we can now assume that 3 consecutive placement failures mean lack of space. Therefore, rather than unconditionally resetting the failCount and retry every N ticks, we now cache the number of buildings and construction yards at the time of the 3rd consecutive failure and if the number of buildings hasn't decreased and number of construction yards not increased, we assume there is still not enough space and reset the retry delay instead.
2015-07-27 13:28:06 +02:00
reaperrr
65a6489ef1 Avoid consecutive attempts to build naval structures
If not enough water space can be found inside the base perimeter, stop the AI from trying to build naval production buildings permanently until it deploys another construction yard.

If enough water is available within the base perimeter, check whether any
building that provides buildable area (for adjacency) is close enough to
water, otherwise don't even start producing this naval structure.
2015-07-27 13:28:05 +02:00
reaperrr
0a5b812bb7 Check for consecutive failures to place a structure.
After 3 consecutive failed attempts, wait one minute before resetting the counter and trying again.
2015-07-27 13:21:58 +02:00
Oliver Brakmann
618ba6342c Fix not being able to select enemy units 2015-07-27 13:07:07 +02:00
reaperrr
6ff394991d Fixed AI BaseBuilder low power check.
This was extremely borked:
The priority overrides for refinery, production and silo ignored power completely and never checked whether the structure might drive the AI into low power state; whereas the check for regular building checked whether the structure's power -exceeded- MinimumExcessPower (previously just 0). The catch is that power draw is represented by negative numbers, so the only buildings that would trigger this were - power plants.
Now it checks whether the sum of building power draw (negative) and AI's current power level are lower than MinimumExcessPower, if not, build the structure, if yes, build a power plant instead.
Additionally, this check is now performed for the early-game priority overrides as well.

Last but not least the AI would not(!) give power plants priority if it was already low on power. This has been fixed as well.
2015-07-27 13:06:18 +02:00
Matthias Mailänder
a3eac88e36 Merge pull request #8774 from atlimit8/v19husk_noRenderBuilding
Add StartSequence to WithIdleOverlay & change V19.Husk
2015-07-27 07:50:18 +02:00
Matthias Mailänder
00017a9b4e Merge pull request #8770 from RoosterDragon/ai-order-throttle
Throttle AI order speed to prevent lag spikes
2015-07-27 07:37:01 +02:00
Matthias Mailänder
5800c07602 don't define deployed vehicles as buildings 2015-07-26 21:17:25 +02:00
atlimit8
4976f9fec9 Add StartSequence to WithIdleOverlay & change V19.Husk 2015-07-26 12:53:09 -05:00
Matthias Mailänder
1748588ec8 remove redundant push/pop with nothing in between 2015-07-26 14:05:22 +02:00
RoosterDragon
942ce6b5a6 Throttle the issuing of orders by the AI.
To prevent the AI generating lag spikes by issuing too many orders in a single tick, it is now limited in how many orders can be issued per tick. Extra orders are queued. This allows the performance hit of issuing multiple orders to be spread out over several ticks.
2015-07-26 12:57:19 +01:00
Matthias Mailänder
f3490dd8e4 double quote to prevent globbing and word splitting
detected by http://www.shellcheck.net/
2015-07-26 13:03:01 +02:00
Matthias Mailänder
0c2934a536 switch to the new container based infrastructure 2015-07-26 13:02:14 +02:00
Matthias Mailänder
03ace48031 remove the thirdparty nsProcess plugin 2015-07-26 12:33:02 +02:00
Paul Chote
d9d37d54c8 Merge pull request #8782 from Mailaender/ts-tmpl
Added the Tiberian Sun Temple of Nod
2015-07-26 11:07:29 +01:00
Paul Chote
3dfd6360ac Merge pull request #8793 from atlimit8/SandwormNoLzay
Remove unnecessary Lazy<>s from Sandworm.cs
2015-07-26 11:06:44 +01:00
Oliver Brakmann
bb40d57944 Merge pull request #8791 from penev92/bleed_cancelActivity
Fix an NRE when cancelling repair orders on units at the wrong time
2015-07-26 11:09:56 +02:00
Matthias Mailänder
4d81cc262c Merge pull request #8783 from obrakmann/reenable-mission-replays
Re-enable mission replays
2015-07-26 09:44:19 +02:00
Matthias Mailänder
2119b26e18 Merge pull request #8790 from pchote/restore-aircraft-height
Revert "Lower aircraft altitude"
2015-07-26 08:51:31 +02:00
atlimit8
cc3b286fa6 Remove unnecessary Lazy<>s from Sandworm.cs 2015-07-25 23:10:42 -05:00
Pavel Penev
cccf5c5931 Check if the inner activity is null before trying to cancel it 2015-07-26 02:15:38 +03:00
Paul Chote
04a71f4dc5 Revert "Fix fallrates for parachutable things to match lowered release altitude"
This reverts commit f7a02eeca5.
2015-07-25 23:31:38 +01:00
Paul Chote
2a93a95245 Revert "Lower aircraft altitude"
This reverts commit d53cfafde9.
2015-07-25 23:27:06 +01:00
Oliver Brakmann
b749548e76 Re-enable replays for missions 2015-07-25 20:51:39 +02:00
Oliver Brakmann
4de03e991c Remove revealing views from observer mode in missions 2015-07-25 20:51:39 +02:00
Matthias Mailänder
a56ecc3f6b add Temple of Nod 2015-07-25 20:30:41 +02:00
Oliver Brakmann
808bbb8d2e Merge pull request #8105 from deniz1a/scrollafterend
Removes LeaveMap window.
2015-07-25 18:13:57 +02:00
Oliver Brakmann
a77e9c0d87 Delay loading the observer UI until the game is actually over 2015-07-25 18:56:25 +03:00
Oliver Brakmann
a725d63b0c Remove World.ObserveAfterWinOrLose
Fixes RenderPlayer for "All Players" view.
2015-07-25 18:56:24 +03:00
deniz1a
5546298866 Merges LeaveMapLogic into GameInfoLogic.
Opens options menu when game ends.

Closes settings or music window before opening options menu.

Moves game end video playback logic from GameInfoLogic to
LoadIngamePlayerOrObserverUILogic.

Improves menu buttons.

Stop video from playing on fatal lua script error
2015-07-25 18:56:24 +03:00
deniz1a
ef143e5f8a Freezes map after game ends.
Adds newline.

Disables keyboard hotkeys for units after game ends.
2015-07-25 18:56:23 +03:00
Pavel Penev
ea3a680eda Merge pull request #8725 from reaperrr/bye-rendersimple-pr1
Step towards removing RenderSimple and its derivatives (Part 1)
2015-07-25 18:43:13 +03:00
Oliver Brakmann
8c766a4a79 Merge pull request #8721 from penev92/bleed_rename
Some more Country -> Faction renaming
2015-07-25 17:10:35 +02:00
reaperrr
65c95eb2ee Adapted WithHarvestAnimation to account for damage stages 2015-07-25 16:17:08 +02:00
Paul Chote
537c252e83 Merge pull request #8779 from GraionDilach/fix-gameover
Fix Observers/players using the nofogcheat crashing during win/lose the game.
2015-07-25 14:47:28 +01:00
penev92
4616828b28 Deprecate PlayerProperties.Race 2015-07-25 16:43:34 +03:00
Pavel Penev
4ad9067f51 Merge pull request #8776 from pchote/editor-path-fix
Create the user map directory if required.
2015-07-25 16:36:24 +03:00
Zimmermann Gyula
8f43ae96ae Fix Observers crashing during win/lose the game. 2015-07-25 14:04:47 +02:00
Oliver Brakmann
229a059e06 Merge pull request #8771 from deniz1a/support-power-bounds
Aligns observer support power timers to the left edge of the screen.
2015-07-25 13:13:00 +02:00
Paul Chote
655f4d30ff Merge pull request #8769 from obrakmann/lobby-esc-hotkey
Remove ESC hotkey from lobby 'Back' button
2015-07-25 10:12:50 +01:00
bryanwilbur
09472c3275 Update AUTHORS 2015-07-25 10:04:15 +01:00
bryanwilbur
031109d766 The 'Jump to base' hotkey is useless if the Construction Yard is destroyed #3318
Now works like original Red Alert.  When there are no more Construction Yards the 'Jump to base' hotkey goes to the oldest undestroyed building.
2015-07-25 10:04:14 +01:00
Paul Chote
c70ebfab74 Create the user map directory if required.
Fixes #8772.
2015-07-25 09:36:29 +01:00
reaperrr
2e9a4b78a3 Refactor RenderEditorOnly into RenderSpritesEditorOnly + WithSpriteBody 2015-07-25 10:28:07 +02:00