Commit Graph

2935 Commits

Author SHA1 Message Date
Matthias Mailänder
3a7558c273 Document and lint test pips and groups. 2016-07-03 12:26:29 +02:00
reaperrr
f25398c731 Add option to apply Rectangle HitShape to all TargetablePositions
This allows to simulate a footprint-shaped HitShape until we have a proper Polygon HitShape.
2016-07-02 17:39:15 +02:00
reaperrr
610f08f652 Add RotateToIsometry to Rectangle HitShape
This is a temporary measue until we have a more flexible Polygon HitShape.
2016-07-02 17:23:34 +02:00
reaperrr
8590be5f74 Merge pull request #11482 from pchote/rework-zip-updating
Rework zip updating
2016-07-02 17:00:06 +02:00
reaperrr
c8012baffb Make all Attack* traits listen to Stop order 2016-07-02 16:02:00 +02:00
reaperrr
c153277e8b Add AttackSounds trait
This trait plays sounds when preparing to attack or attacking.
2016-07-02 16:02:00 +02:00
reaperrr
3b43544e2d Add start delay functionality to attack animation traits 2016-07-02 16:02:00 +02:00
reaperrr
75c49620d1 Introduce INotifyAttack.PreparingAttack
And use it to allow triggering attack animations/overlays at a different point
than the actual weapon firing.
2016-07-02 16:02:00 +02:00
reaperrr
87537d9669 Move WithAttackOverlay to Mods.Common 2016-07-02 16:02:00 +02:00
Paul Chote
21c150fae3 Throw a sensible exception when an invalid path is given. 2016-07-01 21:58:26 +01:00
Paul Chote
c706e68b73 Rework zip file updating. 2016-07-01 21:58:26 +01:00
Paul Chote
5d62881be6 Support upgrading explicitly referenced yaml paths. 2016-07-01 21:58:26 +01:00
Paul Chote
9baee57443 Use BeforeGameStart to remove shellmap UI on editor start. 2016-07-01 21:54:25 +01:00
abcdefg30
4732f3767f Merge pull request #11459 from reaperrr/fix-range-check
Fix weapon min/max range and validity checks
2016-07-01 14:24:41 +02:00
Taryn Hill
023b17a68e Allow overriding previously registered chatcommands 2016-06-30 09:28:27 -05:00
reaperrr
4d90361b8b Merge pull request #11514 from abcdefg30/64ops
Fix a crash with not space occupying actors granting support powers
2016-06-30 15:35:02 +02:00
reaperrr
8493b1deda Merge pull request #11512 from Nelax/ai-squadexclude
Added Squad Exclusion to HackyAI
2016-06-30 15:21:22 +02:00
reaperrr
f5c89ae56d Merge pull request #11497 from obrakmann/stuff-for-sp-1
Add functionality requested for Shattered Paradise
2016-06-30 15:13:49 +02:00
reaperrr
213c1bcb3e Merge pull request #11463 from reaperrr/fix-ai-mcv
Improve AI MCV deployment
2016-06-30 11:44:14 +02:00
reaperrr
e647af3dd1 Allow modders to choose AI MCV deployment base restriction
For some mods, a random map location might be a better choice for the AI than deploying the MCV inside the base, so we allow modders to customize it.
2016-06-27 18:17:51 +02:00
reaperrr
09e365bc4a Fix Wanders to be usable on its own
Allows unarmed actors like civilians or harmless critters to wander around when idle.

Additionally made it upgradable.
2016-06-26 20:30:06 +02:00
Paul Chote
40089e7076 Fix logging on bogus extraction metadata. 2016-06-26 18:23:44 +01:00
Paul Chote
d1a973458b Add support for installing content from disk. 2016-06-26 18:18:40 +01:00
Paul Chote
7ca7e695e1 Rename Disc -> Source in asset installer. 2016-06-26 18:18:40 +01:00
Oliver Brakmann
aad17148bc Merge pull request #11533 from HenrytheSlav/pword_UI
Password UI improvements
2016-06-26 17:47:35 +02:00
reaperrr
7ed792ba88 Merge pull request #11286 from Mailaender/open.nat-2.0.16
Dump Mono.NAT in favor of Open.Nat 2.0.16
2016-06-26 16:16:11 +02:00
HenrytheSlav
17d6afa071 Do not keep the wrong password in the textfield for next try. 2016-06-26 15:54:41 +02:00
HenrytheSlav
d19c9eadb0 Jump to textfield in password prompt. 2016-06-26 15:44:19 +02:00
Paul Chote
30dcbeb873 Remove legacy Move constructor. 2016-06-25 16:29:47 +01:00
reaperrr
c643a0abd6 Change AttackWander trait lookup
AttackMove is required and therefore can't be null, so the 'OrDefault' was redundant.
2016-06-25 12:42:42 +02:00
reaperrr
f5a0c7e425 Move AttackWander into root Traits folder
It's not really an Attack* trait, so it doesn't belong into that subfolder.
2016-06-25 12:36:35 +02:00
reaperrr
46ca650324 Fix initial Wanders delay
The previous 'fix' was apparently incomplete. This time it has been properly tested and works as intended.
2016-06-25 12:29:00 +02:00
Matthias Mailänder
a55b8659c7 Avoid importing spawn points with the same location. 2016-06-25 09:44:39 +02:00
Oliver Brakmann
9eae2ca154 Merge pull request #11510 from reaperrr/move-loaders
Move audio loaders from engine to mod level
2016-06-24 23:59:08 +02:00
Oliver Brakmann
694fe2bdf1 Merge pull request #11515 from reaperrr/fix-wanders
Fix Wanders always triggering move at first game tick
2016-06-24 20:47:48 +02:00
abcdefg30
756f88c187 Merge pull request #11402 from Mailaender/sp-utility
Improved map import for singleplayer missions
2016-06-24 18:02:13 +02:00
reaperrr
38e1d409ff Make Wanders.TickIdle virtual
So inheriting traits can override it.
2016-06-24 16:43:54 +02:00
reaperrr
4eb17e1642 Fix all wandering actors wandering at first game tick
NotifyBecomingIdle is only notified at the first idle tick, so `countdown` is not set when TickIdle checks it at first game tick. Therefore, we let TickIdle return early at first game tick to avoid that.
2016-06-24 16:43:53 +02:00
Bynnar18
dace814829 Added ExcludeFromSquads to HackyAI 2016-06-24 09:18:43 -05:00
abcdefg30
dd5e229886 Fix a crash with not space occupying actors granting support powers 2016-06-24 15:30:57 +02:00
reaperrr
61acbe70d6 Extract WavReader to own file and move it to FileFormats 2016-06-23 23:47:57 +02:00
reaperrr
f1882e2dd6 Rename ImaAdpcmLoader to *Reader and move it to FileFormats 2016-06-23 23:47:55 +02:00
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