b797d112b7
(db4f4a55b) HasRequiredItems method is used for different purposes. Thus we shouldn't return true if the door is damaged but not broken, because it would cause issues for example in steering. Similarly I don't think we should use the canBePicked here, because it could be possible that the door should be interactable but not pickable.
Joonas Rikkonen
2019-05-06 11:22:20 +03:00
872eeb70ce
(9b19bda7d) Workaround to characters' arms occasionally spinning when standing in place, don't offset limping characters' feet when not moving (the heavy leaning forwards looks unnatural), added a comment
Joonas Rikkonen
2019-05-03 13:57:42 +03:00
9121c878f5
(df822b5d5) Fixed characters not receiving impact damage when ragdolled. Closes#1433
Joonas Rikkonen
2019-05-03 13:57:24 +03:00
f6f97d580f
(c6222f711) Don't allow selecting crate ItemContainers (= the inventory can only be accessed by picking up the item)
Joonas Rikkonen
2019-05-03 13:53:22 +03:00
9bd0706c43
(00eb16887) Workaround to missing location change texts: use texts that are meant for a different location type change but still fit (e.g. use "ruins.changeto.military" when an outpost becomes a military outpost, because the actual text is just "a military outpost has been established in x")
Joonas Rikkonen
2019-05-03 13:53:05 +03:00
7545e8efec
(6fc1d03cd) Fixed humpback waypoints, removed extra door
Joonas Rikkonen
2019-05-03 13:52:32 +03:00
0a931f31e6
(e9cc325b5) Cherry pick from human-ai: Fix not being able to open partially broken doors with integrated buttons.
Joonas Rikkonen
2019-05-03 13:52:15 +03:00
1218ebb719
(d1070d74c) Fixed CustomInterface labels displaying the text tag instead of the actual text when using translatable texts
Joonas Rikkonen
2019-05-03 13:51:58 +03:00
da3810b0d4
(df2c04949) Changed all subs' docking toggles to use the new button. Changed custom outputs to use localized text.
Joonas Rikkonen
2019-05-03 13:51:41 +03:00
809fa5adb0
(ef2bdb136) Fixed "biome "none" not found" console error when loading level generation params
Joonas Rikkonen
2019-05-03 13:51:22 +03:00
e3a485edd3
(cb8c9ec1b) Fixed subs not being rendered when switching from the game screen to the sub editor immediately after the round starts
Joonas Rikkonen
2019-05-03 13:51:05 +03:00
8c678e3977
(9f9b86b9b) Fixed tutorial level generation params being used in normal levels.
Joonas Rikkonen
2019-05-03 13:50:49 +03:00
c7a71d5627
(52c4b3002) Fixed CustomInterface labels & signals not being saved correctly
Joonas Rikkonen
2019-05-03 13:50:32 +03:00
5d9c61598b
(e695ea73c) Changes to draw order logic. Fixes background lights bleeding through background walls that can only be resized on one axis.
Joonas Rikkonen
2019-05-03 13:50:14 +03:00
dedc9b5083
(9a7f4893d) Don't select the chatbox when pressing R/T while another textbox is selected.
Joonas Rikkonen
2019-05-03 13:49:57 +03:00
a11e7db190
(78f064b46) Revert "Cherry pick from human-ai: Fix bots not knowing how to use the integrated controllers, effectively failing to use the doors with integrated buttons."
Joonas Rikkonen
2019-05-03 13:49:23 +03:00
bd659383b4
(1aa050263) Cherry pick from human-ai: Fix bots not knowing how to use the integrated controllers, effectively failing to use the doors with integrated buttons.
Joonas Rikkonen
2019-05-03 13:48:48 +03:00
3701f0e957
(7e3aa6097) Merge remote-tracking branch 'origin/docking-interface' into dev
Joonas Rikkonen
2019-05-03 13:48:31 +03:00
8d3a48584b
(92fc1380e) Allow interacting with items inside outposts (only prevent deattaching items from walls)
Joonas Rikkonen
2019-05-03 13:48:15 +03:00
088f7e5485
(d3c10117b) Fixed nullref exception if there are no texts defined for a location type change
Joonas Rikkonen
2019-05-03 13:47:58 +03:00
5031432e77
(513733e88) Check that the character is inside the same room as the target before repairing/operating an item.
Joonas Rikkonen
2019-05-03 13:47:39 +03:00
1ff1584be5
(53f9210d1) Check the line of sight before fixing leaks or extinguishing fires.
Joonas Rikkonen
2019-05-03 13:47:22 +03:00
3371e7dca4
(17183b3e8) Add a reference in the project.
Joonas Rikkonen
2019-05-03 13:46:15 +03:00
e0732e6d57
(2eca8483c) Refactor CanSeeCharacter method and implement CanSeeTarget method. If we check whether or not we can see a character, it should now check if any of the limbs can be seen instead of always checking the head/torso etc. Not tested.
Joonas Rikkonen
2019-05-03 13:45:58 +03:00
953b5690ec
(2a7829fab) Add ISpatialEntity as a common interface for everything that has a position in the game world. Would have used IMapEntity, but there's already MapEntity, which inherits Entity, so that would be confusing. Declare the inheritance only in the shared class (Character).
Joonas Rikkonen
2019-05-03 13:45:41 +03:00
904cad71a5
(3be596a23) Don't allow using invalid filename characters in a save name. Fixes crashing when attempting to use symbols such as <, > or | in the name.
Joonas Rikkonen
2019-05-03 13:45:10 +03:00
a640439617
(3a64fa8f4) Fixes to wall textures bleeding into adjacent sprites, incorrect dimensions & misaligned colliders
Joonas Rikkonen
2019-05-03 13:44:53 +03:00
16e49d10d9
(a8b3957c6) Fixed nullref exception when selecting categories in the sub editor
Joonas Rikkonen
2019-05-03 13:44:38 +03:00
aef95740d3
(768877381) Test: change the docking indicator to a pulsating crosshair when ready to dock (more noticeable than just changing the color of the centerline)
Joonas Rikkonen
2019-05-03 13:43:26 +03:00
7d7950e70b
(c3c244ef4) Nicer looking docking interface buttons (actual arrows instead of U, D, <, >)
Joonas Rikkonen
2019-05-03 13:43:09 +03:00
9b9735e2e7
(6aff06511) Fixed GUIComponent.SpriteEffects not having an effect on GUIImages
Joonas Rikkonen
2019-05-03 13:42:53 +03:00
bc5f571903
(29d8edbb9) Use a sprite to draw the lines on the sonar display (looks better than GUI.DrawLine)
Joonas Rikkonen
2019-05-03 13:42:36 +03:00
1d7faa8d1d
(b778c4641) Docking button works now in the docking interface, change button text depending on whether we're docking/undocking, some placeholder UI graphics for the nav terminal
Joonas Rikkonen
2019-05-03 13:42:19 +03:00
2f60af4365
(0947e0f05) Item.GetConnectedComponentsRecursive can traverse through relays and logic components
Joonas Rikkonen
2019-05-03 13:42:00 +03:00
32a8b97ad4
(01452b66f) Fixed "maintain position" indicators & inputs being relative to the center of the screen, not the center of the sub. Flash the docking button when ready to dock.
Joonas Rikkonen
2019-05-03 13:41:42 +03:00
45ba589d96
(12412e6fd) Determine the steering vector relative to the center of the sub, not the center of the display when clicking on the display
Joonas Rikkonen
2019-05-03 13:41:06 +03:00
5d4a3f18c6
(021a3d977) Draw the steering indicator at the center of the sub, not at the center of the display. Change the color of the docking indicators when ready to dock
Joonas Rikkonen
2019-05-03 13:40:49 +03:00
a2c2f72357
(2edf7845f) Progress on docking interface (nudge controls), focus sonar on the center of the submarine instead of the nav terminal
Joonas Rikkonen
2019-05-03 13:40:31 +03:00
2199a0f97f
(276dcf6d2) Docking indicator changes color when the docking port is within the sector
Joonas Rikkonen
2019-05-03 13:40:12 +03:00
9e8a5046fb
(ec7043278) Set correct location change rules, removed ruins from the world until we know what to do with them.
Joonas Rikkonen
2019-04-29 21:19:24 +03:00
cb96e4667f
(d7d1a1027) First pass rebalance of the distribution of missions in the campaign.
Joonas Rikkonen
2019-04-29 21:19:08 +03:00
c0b8a26bfc
(63010b9f0) Fixed incorrect keybinds being displayed in a couple of tutorial texts
Joonas Rikkonen
2019-04-29 21:18:52 +03:00
285ca8f78b
(5cf4ab11c) Don't draw order indicators (the icons pointing towards the target item) when far away and not inside the same sub as the target. Prevents exploiting the indicators in locating the sub. Closes#1444
Joonas Rikkonen
2019-04-29 21:18:36 +03:00
4f0f5b309b
(94b673f74) Monsters stop dragging targets if there's a collider between the characters. Closes#1441
Joonas Rikkonen
2019-04-29 21:18:20 +03:00
482b3dacfd
(392954b0e) Swap the order of the starting location & destination in nav terminals when playing in a mirrored sub.
Joonas Rikkonen
2019-04-29 21:18:04 +03:00
aa48f19801
(902225da6) More automatic text scaling in places where texts are likely to overflow
Joonas Rikkonen
2019-04-29 21:13:51 +03:00
ce7d36d9e2
(78888f7fb) Changes to reactor interface to make it adapt better to different text lengths
Joonas Rikkonen
2019-04-29 21:13:36 +03:00
ad298c69c2
(118683d11) Fixed crashing when generating levels in the level editor.
Joonas Rikkonen
2019-04-29 21:13:20 +03:00
8d3d103e17
(a2b4f82e7) Fixed Job.Save not saving the identifier of the job, preventing jobs from being loaded correctly if the language is changed after saving.
Joonas Rikkonen
2019-04-29 21:13:03 +03:00
8737a0e0dd
(26639256a) - Added a method that automatically sets the text scale of a set of GUITextBlocks so that they all use the same scale and the text fits in all of the blocks. - Fixed TextBlock padding not being taken into account if the text is centered. - AutoScale and change the layout in a bunch of places where translated texts are likely to not fit.
Joonas Rikkonen
2019-04-29 21:12:47 +03:00
e21b4e5efc
(529c58f9a) Added a couple of missing texts to EnglishVanilla. Because it may take a while until these can be added, a hard-coded text is used if these lines can't be found.
Joonas Rikkonen
2019-04-29 21:12:31 +03:00
f10adc2612
(08ad40cc0) Fixed items "vanishing" if they move directly from sub to another without going outside first.
Joonas Rikkonen
2019-04-29 21:11:42 +03:00
9930a3081c
(e082ed22d) Fixed AllowRagdollButton settings not being synced with clients. Might be related to #1297
Joonas Rikkonen
2019-04-29 21:11:24 +03:00
dd24c604d1
(d653e2340) Fixed workshop items switching order in the workshop menu when the preview thumbnails are received.
Joonas Rikkonen
2019-04-29 21:11:07 +03:00
2ffb8d922d
(acf0cb343) Fixes to EnableWorkShopItem: - Don't allow enabling if the item is not compatible with the user's version of Barotrauma or if it's a core package that's missing some required files. - Don't allow enabling if the item external files referenced in the content package are not found (e.g. if a mod uses vanilla files but the vanilla files aren't found).
Joonas Rikkonen
2019-04-29 21:10:51 +03:00
d3ef770243
(9122340aa) Fixed inability to enable content packages if some of the files included in the package are already in the game folder (which may happen, for example, if enabling a content package fails)
Joonas Rikkonen
2019-04-29 21:10:20 +03:00
4d1c3b1ed4
(43a58c2c3) Fixed content package hash calculation failing if the package is not enabled and contains new monster files. Was caused by Character.GetConfigFile failing to find the config file because it only searched from currently selected content packages.
Joonas Rikkonen
2019-04-29 21:10:05 +03:00
97c4e3019d
(e268fbb97) Simplify Humpback front. Increase the front hull health from 200 to 400 for both front pieces. Update the fronts also for Orca and Dugong.
Joonas Rikkonen
2019-04-29 21:09:33 +03:00
250368078f
(5c32d30a9) Adjust and fix the steering behavior: Only the characters in the idle state and outside the sub are considered active members of the group.
Joonas Rikkonen
2019-04-29 21:09:18 +03:00
e583f570ff
(c29165793) Increase the gap seeking distance, because some walls are thicker than 200 pixels.
Joonas Rikkonen
2019-04-29 21:09:03 +03:00