Commit Graph

4487 Commits

Author SHA1 Message Date
abcdefg30
24f9ff0ac2 Add a 'ReplaceRequiresPower' update rule 2018-07-22 13:54:21 +01:00
abcdefg30
6c8a943dc9 Add four more update rules 2018-07-22 13:54:21 +01:00
reaperrr
94ad93a301 Add ScaleSupportPowerSecondsToTicks 2018-07-22 13:54:21 +01:00
abcdefg30
ab2fe92dfb Add ScaleDefaultHealth and subclass update rules 2018-07-22 13:54:21 +01:00
abcdefg30
af1a2429b1 Add five more update rules 2018-07-22 13:54:21 +01:00
Paul Chote
01684bc329 Add two more update rules 2018-07-22 13:54:21 +01:00
Paul Chote
fd49e487ec Fix MCV deploy erasing Iron Curtain history. 2018-07-22 13:45:37 +01:00
Paul Chote
01c3c14a4c Add ITransformActorInitModifier.
Remove hardcoded Cargo reference from Transform.
2018-07-22 13:45:37 +01:00
reaperrr
6984c0ec10 Add AlwaysConsiderTurnAsMove plumbing to Mobile
Can be used to make walker units like the TS mechs display move animations while turning on the spot.
2018-07-19 22:09:43 +02:00
Mustafa Alperen Seki
a65a5d17e4 Add CashTricklerMultiplier 2018-07-19 18:49:35 +00:00
teinarss
25a8de8a47 Fixing pathfinding calc when the distance was to small for the bidirectional logic to work. 2018-07-12 10:06:55 +02:00
teinarss
1c0aa24640 Added a player action dropdown.
Adds options for:
 - handling kick
 - transferring admin
 - move to spectator
2018-07-05 23:22:09 +01:00
teinarss
a156a31cf5 Added text aligment to button
Cloning LeftMargin and RightMargin

Refactored the calculations for Text position in ButtonWidget
2018-07-05 23:22:09 +01:00
teinarss
23155c039d Extract LobbyCommand command logic to their own methods. 2018-07-05 23:22:09 +01:00
Oliver Brakmann
3e29ef0bd6 Avoid sending HTTP requests to the FetchNews URL when FetchNews is disabled
Also disables the 'Send SysInfo' settings checkbox when 'Fetch News' is disabled as well.
2018-07-05 11:22:44 +02:00
Mustafa Alperen Seki
2387e49ee7 Add ability to use NukePower via lua. 2018-07-04 16:41:27 +02:00
reaperrr
4c239d4ebc Set Mobile.IsMoving to "true" if queueing a turn that takes only a single tick
At the end of L-turns, actors often end up with an internal facing not 100% matching the direction of the next cell on their path.
As a result, if they haven't reached their destination yet, Move queues a quick Turn as ChildActivity, which previously was not considered as IsMoving.
However, we don't want those mini-turns to interrupt move animations, so we now consider them a move as well. Additionally, to avoid any issues, we make these mini-turns non-interruptible, just like the MovePart activities already are.
2018-07-01 15:33:30 +01:00
reaperrr
e167d1f848 Add plumbing to make Turn uninterruptible 2018-07-01 15:33:30 +01:00
reaperrr
c93333a816 Cache IFacing in Turn activity
Instead of looking it up every tick.
2018-07-01 15:33:30 +01:00
reaperrr
96377a99c4 Fix losing a tick when next Move.ChildActivity is Turn
While the first tick of the MoveFirstHalf child would run at the parent Move tick (see 2nd-to-last line in Move.Tick), this was not the case for Turn.
As a result, this Move tick would get wasted if a Turn was necessary, which at least contibuted to that visible jerk at the end of each L-turn (actors usually don't have the exact facing needed for the next move at the end of an L-turn).
2018-07-01 15:33:30 +01:00
reaperrr
1c78073808 Lint check for distinct sprite body names 2018-07-01 13:16:07 +02:00
reaperrr
9d24c40f92 Fix various Mods.Common animation traits not supporting actors having multiple sprite bodies 2018-07-01 13:16:07 +02:00
reaperrr
0d0d2e0ae3 Play WithAcceptDeliveredCashAnimation only on the assigned WithSpriteBody 2018-07-01 13:16:07 +02:00
reaperrr
f85f2cd104 Add LaunchEffect support to LaserZap
Can act as replacement for WithMuzzleOverlay.
2018-07-01 12:19:32 +02:00
reaperrr
384aaf14b5 Added LaunchEffect effect 2018-07-01 12:19:32 +02:00
reaperrr
145b8c87c5 Make LaserZap source point follow source actor muzzle
For moving actors, it looks better when the source point of the beam follows the source actor.
2018-07-01 12:19:32 +02:00
reaperrr
0fafaf1b09 Add DamageDuration and DamageInterval to LaserZap 2018-07-01 12:19:32 +02:00
Paul Chote
670e153372 Remove byte order marks from csproj files. 2018-07-01 11:08:32 +02:00
Paul Chote
1ac13de4b2 Remove byte order marks from C# files. 2018-07-01 11:08:32 +02:00
Paul Chote
8c0f4fde81 Fix newlines in C# files. 2018-07-01 11:08:32 +02:00
Paul Chote
6b6167d37c Use the default sprite sequence for automatic mouse bounds. 2018-07-01 01:20:55 +02:00
Paul Chote
707514572b Fix crlfs in CheckUnknown*Fields lint tests. 2018-07-01 00:25:56 +02:00
Paul Chote
51a2ca8253 Add CheckUnknownWeaponFields lint check. 2018-06-30 17:12:19 +01:00
Paul Chote
0a5016c803 Add CheckUnknownTraitFields lint check. 2018-06-30 17:12:19 +01:00
Paul Chote
d46278ab0e Add ModData parameter to ILintMapPass. 2018-06-30 17:12:19 +01:00
Paul Chote
8ec3df7550 Fix recently introduced bad line endings. 2018-06-30 16:54:25 +01:00
Zimmermann Gyula
86bfd4700f Implement DeathTypes support to OwnerLostAction. 2018-06-30 16:31:39 +01:00
Paul Chote
0875766bcc Use MoveAndRenameNode in MoveHackyAISupportPowerDecisions. 2018-06-26 15:47:39 +02:00
Zimmermann Gyula
72eb5543c2 Rename a server-affecting artifact within SeparateTeamSpawns. 2018-06-22 17:28:20 +01:00
Zimmermann Gyula
9e3d210ee0 Change CRLF line-endings to LF in Harvester.cs. 2018-06-20 12:34:52 +02:00
Zimmermann Gyula
d9786dcf72 Normalize the line-endings on RepairableBuilding. 2018-06-17 16:13:16 +02:00
Ivaylo Draganov
3a377a572c Add "Restart" button for multiplayer replays 2018-06-16 15:53:43 +02:00
Andre Mohren
fc82c24e1f FreeActor now supports to be triggered by condition. 2018-06-16 14:47:45 +02:00
reaperrr
3a60dcd4a1 Use new update util extensions to simplify some update rules 2018-06-16 00:00:13 +02:00
reaperrr
f6278a1f41 Add some more useful extensions to UpdateUtils
In many situations, these will save up to 3-4 lines, because quite often this will be enough to avoid curly brackets, "if"s or one-by-on renamings.
2018-06-16 00:00:13 +02:00
reaperrr
3c9891e729 Refactor some update util extensions
Using arguments instead of separate overloads, plus better support for
automatically handling trait/property removals ('-' prefix).
2018-06-16 00:00:13 +02:00
reaperrr
4a081e2111 Replace spaces with tabs in RenameEmitInfantryOnSell 2018-06-16 00:00:13 +02:00
Paul Chote
4d664d4f74 Report custom map rule errors in the lint output. 2018-06-15 23:39:48 +02:00
Paul Chote
cce9b06a40 Move SupportPowerDecisions to a single parent node.
This is required before we can force all trait
properties to match a TraitInfo-defined field.
2018-06-15 17:24:00 +02:00
Paul Chote
e4dd78c5cd Add a tab to the credits panel for mod-specific text.
Enabled by adding a ModCredits block to mod.yaml.
2018-06-11 22:07:20 +02:00