Commit Graph

2814 Commits

Author SHA1 Message Date
Joonas Rikkonen 4685121eee (3ffde5103) Disabled alpha premultiplication on a bunch of non-transparent textures (-> minor loading time reduction) 2019-04-03 16:24:48 +03:00
Joonas Rikkonen fd0e394827 (04facf9b6) Gray out the text in disabled buttons if the button has no visible sprite (the buttons in the main menu for example looked the same when disabled) 2019-04-03 16:24:34 +03:00
Joonas Rikkonen 64bec6d3b9 (684bcee1a) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-03 16:24:20 +03:00
Joonas Rikkonen 516159fe43 (d404aba3e) Added background color to keybind inputs in the Controls settings layout, to help readability 2019-04-03 16:24:06 +03:00
Joonas Rikkonen c9ad39da08 (b35e82550) Added a longer delay to getting killed by pressure (5 seconds in max pressure), made the pressure-zoom-in effect appear as soon as the pressure in a room starts to rise (not after it's half-way to lethal pressure), added blood particle effects when under high pressure 2019-04-03 16:23:51 +03:00
Joonas Rikkonen abad70f0c1 (7e32870a0) Check that item has a non-zero mass before applying water forces (couldn't reproduce it, but had a debug assertion fail due to the mass of an alien artifact being 0), validate clamped force before attempting to apply it 2019-04-03 16:23:37 +03:00
Joonas Rikkonen 98cf26178f (3b3130a00) Added an option to disable mouselook, let camera zoom further when controlling a large monster 2019-04-03 16:23:23 +03:00
Joonas Rikkonen d66a49bb7c (929d3d0fd) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-03 16:23:08 +03:00
Joonas Rikkonen 212b7074a8 (8bcb4dfd5) Refined cable holders, added variants for 1-3 cables (background still missing) 2019-04-03 16:22:54 +03:00
Joonas Rikkonen c751c58495 (c793f55af) Clamp velocities when pushing characters out of doorways, play only one damage sound when hit by a door (not once per each limb that's in the doorway), refactored the logic so to prevent creating new lists 2019-04-03 16:22:41 +03:00
Joonas Rikkonen f676e8c67e (914a15437) Fixed: Checking for jobs using name instead of the prefab identifier 2019-04-03 16:22:26 +03:00
Joonas Rikkonen 0ecfc426ff (45f083a5a) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-03 16:22:12 +03:00
Joonas Rikkonen 0dd1823eb1 (44a496915) Added: Template for using a video with the Welcome text in the tutorial if needed. Removed: Old spritesheets. Fixed: Bug in fetching crew with certain jobs 2019-04-03 16:21:57 +03:00
Joonas Rikkonen 8de2eccff2 (7d0cf0d4f) Clamp forces in a bunch of more places where forces are applied to bodies 2019-04-03 16:21:38 +03:00
Joonas Rikkonen 0844f1eae4 (8e2e6e4da) Physics error prevention: - Use the ApplyForce/ApplyImpulse method overrides that clamp the resulting velocity to a value (in this case NetConfig.MaxPhysicsBodyVelocity, 64 m/s). Without this, explosions and attacks for example could apply arbitrarily large forces to bodies, causing physics errors in Ragdoll.CheckValidity. - Make sure angular velocity still has a sane value after applying an impulse to a specific point of a collider. 2019-04-03 16:21:22 +03:00
Joonas Rikkonen 5d7dba0f70 (cef39af84) Fixed server creating "attempted to create a network event for an item that hasn't been fully initialized yet" console errors when spawning LightComponents mid-round. + Simplified ragdoll collider null check 2019-04-03 16:21:06 +03:00
Joonas Rikkonen e4eb6c131c (c225b9831) Fixed crashing if none of the selected content packages contain location portraits suitable for the main menu. 2019-04-03 16:20:52 +03:00
Joonas Rikkonen 03f2444968 (7341d33ff) Fixed nullref exception if a fabricator finishes creating an item after the user has been removed. 2019-04-03 16:20:37 +03:00
Joonas Rikkonen b75db42253 (010c23458) Added a notification that tells the player where cargo spawns 2019-04-03 16:20:22 +03:00
Joonas Rikkonen 3eb11d9c5d (7c7004099) Fixed syringes being launched backwards from the syringe gun when firing to the right. 2019-04-02 12:42:14 +03:00
Joonas Rikkonen baadd60d8d (cd4cc584f) Fixed projectiles not applying status effects on impact if they have no attack defined. Closes #1382 2019-04-02 12:42:00 +03:00
Joonas Rikkonen 4009a2f2b7 (5ef33c5cd) Revert "Set preview image size a bit larger to commodate larger resolutions and to get a clear image". Loading the preview image caused the game to hang. 2019-04-02 12:41:46 +03:00
Joonas Rikkonen 5cf66d7343 (ecda2cb2a) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-02 12:41:32 +03:00
Joonas Rikkonen e86d86c41f (9bd8db487) Allow to aim in ladders when not moving. 2019-04-02 12:41:18 +03:00
Joonas Rikkonen 7d8b489319 (683847e26) Test: disable camera movement completely when an item interface is open (not just when the cursor is on the interface) 2019-04-02 12:41:04 +03:00
Joonas Rikkonen 6de0fa4b73 (c5f9e6070) Fixed lighting artifacts cause by the LOS changes 2019-04-02 12:40:50 +03:00
Joonas Rikkonen b2c71e92c0 (f37be42bb) Fixed severed limbs occasionally noclipping into the submarine 2019-04-02 12:40:36 +03:00
Joonas Rikkonen 95fb792cd6 (06f76e063) Set preview image size a bit larger to commodate larger resolutions and to get a clear image 2019-04-02 12:40:22 +03:00
Joonas Rikkonen 1aad8b2038 (007519ad5) Higher-res submarine preview images 2019-04-02 12:40:08 +03:00
Joonas Rikkonen 28a8a5a2ed (99be2b970) Fixed submarine preview info text overlap 2019-04-02 12:39:55 +03:00
Joonas Rikkonen 34ee220bc9 (bb5ebaee3) Minor layout improvements to New Game and Game Settings 2019-04-02 12:39:42 +03:00
Joonas Rikkonen cae366e807 (4d924cc86) Fixes to New Game and Game Settings layouts
+ merge fix
2019-04-01 22:55:04 +03:00
Joonas Rikkonen 22372dfffe (061c63299) Wall collider tuning 2019-04-01 22:53:41 +03:00
Joonas Rikkonen 43578f3bb2 (bb8a4525e) Progress on LOS effect improvements. Hiding the unnecessary shadows at spots where the ends of two walls meet works now, still got to do something about corner areas where a vertical wall meets a horizontal one. 2019-04-01 22:53:27 +03:00
Joonas Rikkonen 98e0504e1f (52748e937) Fixed nullref exception if a character eats another one when a gamesession has not been started 2019-04-01 22:53:12 +03:00
Joonas Rikkonen ae3dea40b0 (3c1d889c9) Fixed voice activity controls going outside the settings frame 2019-04-01 22:52:58 +03:00
Joonas Rikkonen ee18a1b508 (66b8e2955) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-01 22:52:44 +03:00
Joonas Rikkonen 6332a6e077 (c896c51fb) Display submarine preview in the "new game" menu, layout tweaks 2019-04-01 22:52:31 +03:00
Joonas Rikkonen ca9a516403 (8ea276c68) Fixed game settings panel input consistency 2019-04-01 22:52:17 +03:00
Joonas Rikkonen 26210da6a6 (7076afabd) Reimplemented the "new game" menu changes in b378675 using layout groups 2019-04-01 22:52:04 +03:00
Joonas Rikkonen a3eabfabac (2400ab447) Revert "Improved New Game panel" (easier to do the columns with layoutgroups than by setting the contents to half the width) 2019-04-01 22:51:50 +03:00
Joonas Rikkonen 8b12f85f48 (b6f451292) Moved crafting recipes from the fabricator xml to the xmls of the items. Makes it possible for modders to add new craftable items without having to modify the fabricators. Closes #1001 2019-04-01 22:51:37 +03:00
Joonas Rikkonen 508bd960be (b378675eb) Improved New Game panel 2019-04-01 22:51:21 +03:00
Joonas Rikkonen a46c195532 (2a183f60c) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-01 22:51:07 +03:00
Joonas Rikkonen 8cb4702a5a (cda6af1ad) Increase the steering speed when going to eat. TODO: Adjusting the weight shouldn't have any effect on character speed. The steering vector should be normal until multiplied by the movement speed in the Update function. 2019-04-01 22:50:53 +03:00
Joonas Rikkonen 5d6cbb5898 (b522c4551) Don't assign the attackinglimb if we shouldn't be attacking. Fixes Hammerhead not falling back after hitting the sub. 2019-04-01 22:50:39 +03:00
Joonas Rikkonen e9a3577316 (b2df6e88c) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-01 22:50:25 +03:00
Joonas Rikkonen d511ecd4e3 (5218c43a0) Server sends the IDs of both selected characters and selected items to the clients. Previously this wasn't needed, because it wasn't possible to have both a character and an item selected at the same time. Fixes characters floating mid-air client-side when dragging others up stairs, and probably some other undiscovered bugs as well. 2019-04-01 22:50:11 +03:00
Joonas Rikkonen ae6b797d73 (c2e1b24e2) Fixed remote characters sliding slowly to the left in multiplayer. Happened because linear velocity was written with an accuracy of 12 bits, causing the lowest possible value to be about 1.5 cm/s. Now extremely low velocity values are rounded down to zero. The server also now quantizes the LinearVelocity/AngularVelocity values, which should make position syncing a little more reliable because the server runs the physics using the same rounded values as the clients. 2019-04-01 22:49:58 +03:00
Joonas Rikkonen c5725dbb62 (d47fee08d) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-01 22:49:42 +03:00