Commit Graph

1084 Commits

Author SHA1 Message Date
Joonas Rikkonen a3344fc23b (01ee2b7fd) More pronounced limping animation, don't restrict movement as much when legs are heavily damaged 2019-04-15 12:05:07 +03:00
Joonas Rikkonen 29f902f0bb (18bb55660) Add unreachable targets on the unreachables list. Reset the list when a new combat objective begins. Don't immediately find a new hull target if the current hull is unsafe. Instead wait a sec at max. Fixes #1417. 2019-04-15 12:01:48 +03:00
Joonas Rikkonen cc0e217e82 (e1476e522) Cleanup. 2019-04-15 12:01:32 +03:00
Joonas Rikkonen e8c67f94c3 (a8e725a96) Optimized AIObjectiveFindSafety.FindBestHull. TODO: optimize further, causes huge lag spikes if the character can't find a path (see #1417) 2019-04-15 12:01:04 +03:00
Joonas Rikkonen b705b1579c (c12fe7d80) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-15 12:00:49 +03:00
Joonas Rikkonen b4ec36f5bb (2fc72545e) new texts regarding missions and beacons. 2019-04-15 12:00:35 +03:00
Joonas Rikkonen 455fbb013f (158a62970) Don't allow to replace an existing character. TODO: should make this possible later on, but requires additional logic. Fixes #1375. 2019-04-15 12:00:21 +03:00
Joonas Rikkonen 4675f969f1 (73da2532a) Only repairable items are indestructible in outposts (oxygen tanks, ammo boxes, etc can still deteriorate normally). 2019-04-15 11:57:28 +03:00
Joonas Rikkonen 561a1a8995 (0880ae29f) Don't add ai targets to alien ruin walls. 2019-04-15 11:56:18 +03:00
Joonas Rikkonen fcdfee6328 (333e0a646) Added automatic hull & item repair option to the campaign. TODO: adjust costs, now both options cost a fixed 500 credits. Closes #1314 2019-04-15 11:55:49 +03:00
Joonas Rikkonen d7e41d95af (bb287fabc) Decreased simple physics distance, sonar now displays characters that are in simple physics mode 2019-04-11 18:28:38 +03:00
Joonas Rikkonen 2f86991ce5 (fdf8cfbbe) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-11 18:27:41 +03:00
Joonas Rikkonen a3342ca96d (ffa3ddbca) Implemented changing mineral sprites when attached to a wall 2019-04-11 18:27:25 +03:00
Joonas Rikkonen f4275de1ac (845cfe372) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-11 18:26:56 +03:00
Joonas Rikkonen a57b7184fb (f6c34b377) Fix crawlers not reacting to any targets if properly latched on walls. 2019-04-11 18:26:42 +03:00
Joonas Rikkonen 9b0e0ab278 (ec990ac7c) Save chatbox & crew menu toggle state between rounds 2019-04-11 18:26:26 +03:00
Joonas Rikkonen c87606fd28 (2ed298287) Add temporal spreading to monster events when spawning multiple monsters. Increase the spatial spread when spawning monsters along the main path. 2019-04-11 18:26:12 +03:00
Joonas Rikkonen e7e858c05b (db7e4d6d5) Fix "crawler balling" caused by crawlers taking damage when targeting the sub and not yet latched on it. 2019-04-11 18:25:58 +03:00
Joonas Rikkonen 21cc6001d4 (fc63971e1) Implement disabling the enemy ai. Fix enablecrewai command. 2019-04-11 18:25:29 +03:00
Joonas Rikkonen dd45af5a9f (20f37d9c7) Option to toggle structure drop shadows and edit the position of the shadow 2019-04-11 18:25:01 +03:00
Joonas Rikkonen b76aa1ff3a (03291eb8d) Use the sourcerect of a structure's default sprite for the background sprite if it doesn't define it's own sourcerect 2019-04-11 18:24:45 +03:00
Joonas Rikkonen 3eaec8bbc6 (c490f5118) Fixed bots not appearing to use repair tools or weapons client-side when repairing something or attacking (i.e. they aimed the item but never fired/used it) 2019-04-11 18:24:01 +03:00
Joonas Rikkonen a53c0fd9bb (8f575fa16) Fixed chatbox & crew menu being hidden if any character uses a controller 2019-04-11 18:23:31 +03:00
Joonas Rikkonen 2af78d096e (8b3cd3de5) Fixed clients never removing network events the server has already received (!), don't create a new client event if there's already an identical event waiting to be sent 2019-04-11 18:23:17 +03:00
Joonas Rikkonen 90086375a4 (9837460b8) Display a progress bar when welding doors shut. 2019-04-11 18:23:03 +03:00
Joonas Rikkonen 8f821c817a (ec5f3cd24) Added mission texts to EnglishVanilla, use "[reward]" tag in the texts instead of the actual number so we don't have to change the descriptions if we change the reward 2019-04-10 15:14:16 +03:00
Joonas Rikkonen 9f55da3677 (8d282f4cc) Hide the crew area and the chat box when using a controller (= aiming with a turret or similar item). 2019-04-10 15:13:25 +03:00
Joonas Rikkonen 488fded57f (208dc8793) Fixed ElectricalDischarger electricity effect staying visible if the item breaks or the component is deactivated from outside (e.g. via a StatusEffect or the parent component). Closes #1402 2019-04-10 15:13:08 +03:00
Joonas Rikkonen e94228d346 (b948206e8) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-10 13:35:03 +03:00
Joonas Rikkonen 9a54b89bf3 (0eb0c36ec) Fixed door background sprites being drawn in front of characters (TODO: update sprite depths in the subs) 2019-04-10 13:30:25 +03:00
Joonas Rikkonen af260565ad (5fbd1cdee) Reload sprite and reset the depth when reset to prefab method is called. 2019-04-10 13:30:08 +03:00
Joonas Rikkonen 06ac9a04ba (84bc4cdae) Display another message when trying to directly open a door that doesn't have buttons on it (wired to remote buttons/controllers). 2019-04-10 13:29:50 +03:00
Joonas Rikkonen 2ca299af10 (ab07307c5) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-10 13:27:49 +03:00
Joonas Rikkonen 593d99ec38 (df9b1966f) Added an option to disable directional voice chat. Closes #1414 2019-04-10 13:27:30 +03:00
Joonas Rikkonen 74da38bd10 (3315662d5) Implement optional required items (lol) and fix the doors. It's a bit confusing, but should work. 2019-04-10 13:26:56 +03:00
Joonas Rikkonen ca5e11e859 (476b2ba9b) Don't allow deattaching items when another component of the item is selected (e.g. wiring interface), interrupt picking if the item is removed or moved to an inventory 2019-04-10 13:24:53 +03:00
Joonas Rikkonen fa4d1caeed (552a3719d) Don't open a door by clicking "select", if the door has any required items (in which case we want to force open it by clicking "use"). 2019-04-10 13:24:36 +03:00
Joonas Rikkonen c1c869b944 (321793927) Always show the outer clothes slot. Reordered the slots so that the most frequently used ones are closer to the "main" inventory. 2019-04-10 13:24:21 +03:00
Joonas Rikkonen 0f4c7c302f (41e8be463) Revert "Rewiring the door changes it's behavior. TODO: Might be better to implement as two separate type of doors?" (Now using two separate doors instead) 2019-04-10 13:23:31 +03:00
Joonas Rikkonen fde99f5373 (586e37096) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-04-10 13:22:57 +03:00
Joonas Rikkonen bd0c8a9d34 (818a83da1) Alternate door versions with integrated buttons 2019-04-10 13:22:39 +03:00
Joonas Rikkonen 842b6a2e34 (9619c01cd) Change the info text colors and cache the list. 2019-04-10 13:22:19 +03:00
Joonas Rikkonen d7c88e3055 (f185bce97) Fix an indentation. 2019-04-10 13:22:02 +03:00
Joonas Rikkonen 5a7abc430c (5d7e5eb93) Rewiring the door changes it's behavior. TODO: Might be better to implement as two separate type of doors? 2019-04-10 13:21:45 +03:00
Joonas Rikkonen 25453018fc (3f015888d) Implement manual doors that can be opened simply by clicking on them. Add a test sub (not added in the project -> have to manually place in the local bin folder to test it). 2019-04-10 13:21:25 +03:00
Joonas Rikkonen a8240379ac (a6437298b) Added LightComponent.IsOn to the SerializableProperties that can be accessed without reflection. 2019-04-08 23:12:22 +03:00
Joonas Rikkonen 443d199017 (cd7359bb3) StatusEffects can modify item sound and sight ranges (requires an AITarget) 2019-04-08 23:12:09 +03:00
Joonas Rikkonen 71128c27e6 (7764eef2d) CustomInterfaces can apply status effects when a button is pressed or depending on the state of a tickbox (OnUse when the tickbox is checked, OnSecondaryUse otherwise). 2019-04-08 23:11:56 +03:00
Joonas Rikkonen 3877c18d0c (c15419d90) Changelog additions + merge fix 2019-04-08 19:20:05 +03:00
Joonas Rikkonen 4811ec796f (50447ac17) Inventory syncing fixes. Could be related to #768. - When moving an item from an inventory to another, create the event for the target inventory first, then for the inventory the item is being removed from. Otherwise clients would first drop the item, and then put it in the container with the next event, which works most of the time, but if the second event is delayed enough that the item is not within the character's reach by the time it arrives, the client will be unable to put it in the container and the item will just be dropped. - Fixed item velocities not being reset when they're dropped from a character's inventory. I'm not exactly sure why, but sometimes they had very high downwards velocities (even though the body was previously inactive), which caused them to launch through floors and made the previous inventory syncing issue much worse (because a delay of just a couple of frames was enough to move the item out of the character's reach). 2019-04-08 19:18:04 +03:00