Commit Graph

990 Commits

Author SHA1 Message Date
Joonas Rikkonen 81b6d2199f (c35335f47) Fixed CharacterInfo.IncreaseSkillLevel crashing if the character has been removed, steering component stops giving xp to the user if the user is removed. Closes #1553 2019-06-09 17:44:02 +03:00
Joonas Rikkonen fdd6850743 (090ca8617) Fixed AIObjectiveFindSafety crashing when inside a hull that doesn't belong to any sub (e.g. in ruins). Closes #1542 2019-06-09 17:43:44 +03:00
Joonas Rikkonen cdc58316ed (f2cce83a3) AI combat improvements: - Bots now find weapons that are inside the equipped containers (tool boxes). - Bots can now use any item as a weapon as long as there's a combat priority defined for the items. - Adjust the combat priorities a bit; the bots now prioritize welding tool and plasma cutter over wrench or toolbox. 2019-06-04 16:52:24 +03:00
Joonas Rikkonen 3393cb7a1b (4ca1f10d7) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-06-04 16:41:59 +03:00
Joonas Rikkonen fd8fe59688 (7d2df62c0) fixed ID card tags 2019-06-04 16:41:39 +03:00
Joonas Rikkonen 440393d0cd (87a0f7ac8) If the bot is on a different level than the target, keep running to the target. i.e. Cannot use linear distance calculation inside the sub. 2019-06-04 16:40:41 +03:00
Joonas Rikkonen 7f5a6f77dd (c8c4b0d92) Require that the bot is in the same hull as the goto target, before calling it done. 2019-06-04 16:40:23 +03:00
Joonas Rikkonen 7a4e0ea1bb (c9039a4ad) Shorter the follow distance to make to make it less likely that bots stay on the doorways when following. TODO: We'd probably want to check that the target is in the same room? 2019-06-04 16:38:34 +03:00
Joonas Rikkonen bea7b58ff3 (a410fd46c) Trying to help the merge script through a jungle of merges 2019-06-04 16:37:31 +03:00
Joonas Rikkonen 81dd2f3202 (0c86b4b28) Revert "Don't reset the los if there is no client (single player). Fixes los resetting between game sessions (less tedious debugging)." 2019-06-04 16:02:25 +03:00
Joonas Rikkonen edccfe223d (9a7d83a40) Fullscreen bug workarounds 2019-06-04 16:00:38 +03:00
Joonas Rikkonen 1a892815fb (91ea4d8cb) Fixed: Incorrect parameter formatting 2019-06-04 15:38:50 +03:00
Joonas Rikkonen e592c49fa8 (221f9f2a6) Merge branch 'dev' into capitalizationfixes 2019-06-04 15:38:31 +03:00
Joonas Rikkonen f797235bfd (38d8117f7) Added: More routing of TextManager.Get().Replace -> TextManager.GetWithVariable(s), missing workshop-related localization tags to englishvanilla 2019-06-04 15:38:12 +03:00
Joonas Rikkonen 62646dfc96 (299a6cc5b) Added an upper limit to impact damage done to ragdolls (10% of the character's max health). Because ragdolled characters can now receive impact damage, getting the sub thrown around by monsters was way too lethal. 2019-06-04 15:37:33 +03:00
Joonas Rikkonen a83532f7a9 (5f61edb68) Allow to issue orders in single player while not controlling any character (freecam debug). 2019-06-04 15:35:45 +03:00
Joonas Rikkonen ef5e0359c3 (93b896fa9) Fixed items not being moved to the humanhusk's inventory when a huskified player dies due to the inventory slot types not matching. 2019-06-04 15:34:30 +03:00
Joonas Rikkonen 04f69dbe63 (b3c71807f) Updated to the latest version of GameAnalytics 2019-06-04 15:33:38 +03:00
Joonas Rikkonen a3e67dd40a (7163b300e) Added: Way for capitalizing / lowercasing replaced variables depending on the position in the sentence & some implementations 2019-06-04 15:32:59 +03:00
Joonas Rikkonen bc566ac0e7 (bc44f3622) Fixed credits not resizing when resolution is changed 2019-06-04 15:32:04 +03:00
Joonas Rikkonen 93e4767fb8 (657674526) Reallow changing resolution in fullscreen/borderless. TODO: test, disable in borderless because it seems to do nothing? 2019-06-04 15:30:32 +03:00
Joonas Rikkonen bce99f2e6f (7e0adb991) Fixed legacy items failing to load if a sub is saved with a language other than English and the language then changed to something else. 2019-06-04 15:29:55 +03:00
Joonas Rikkonen ebd916e95c (9a7d83a40) Fullscreen bug workarounds 2019-06-04 15:29:36 +03:00
Joonas Rikkonen 405cdf63a3 (a7543019c) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-05-23 17:04:47 +03:00
Joonas Rikkonen 304db988b1 (b63c9bf0c) Fixed OpenFileDialog not closing on Linux 2019-05-23 17:04:30 +03:00
Joonas Rikkonen 834ee2947b (32eb82193) Fix: bots not using the oxygen tanks found in their inventory when the find safety objective is active. 2019-05-23 16:28:22 +03:00
Joonas Rikkonen e9d31ed0be (1241a5bd4) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-05-23 16:28:04 +03:00
Joonas Rikkonen 44a5c9e588 (81babbeac) Added Linux System.Windows.Forms 2019-05-23 16:27:46 +03:00
Joonas Rikkonen 90149b9435 (912383b95) Unequip the diving gear when the follow target unequips it. 2019-05-23 16:27:10 +03:00
Joonas Rikkonen b8ebf34c38 (4c111302a) Fixed Shuttle Shell A01/A02 colliders not being resized according to the size of the wall 2019-05-23 16:26:51 +03:00
Joonas Rikkonen aab7b3ff16 (c08201dee) Hide the texture scale for now, because currently you shouldn't edit it in the editor. 2019-05-23 16:26:31 +03:00
Joonas Rikkonen 48e8c62cae (97bf93407) Fix a typo in a function name. 2019-05-23 16:26:13 +03:00
Joonas Rikkonen a95f1b7186 (d7b8238d6) Don't show reports from breaches that are room to room (the bots should still target them). 2019-05-23 15:18:50 +03:00
Joonas Rikkonen 90b0c208fc (1343e66e3) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-05-23 15:08:45 +03:00
Joonas Rikkonen 1fb558d7ef (84593b8fb) Fixed: Oxygen levels of the patient on the submarine being adjusted too late 2019-05-23 15:08:27 +03:00
Joonas Rikkonen a965314b8f (15bea4eef) Only ask medical assistance if there is a character with the rescue all objective. Don't allow to add targets if the bot is dead. 2019-05-23 15:07:50 +03:00
Joonas Rikkonen f3cb071b1d (2921cd18b) Fix potential null reference exceptions in the IsValidTarget of the rescue all method. 2019-05-23 15:07:32 +03:00
Joonas Rikkonen 9b56fa9832 (db31ead65) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-05-20 21:03:14 +03:00
Joonas Rikkonen 7c67b1f164 (57c46943d) Quick fix watchman graphics (not quite right yet, but better). Re-enable the variant 2. 2019-05-20 21:00:11 +03:00
Joonas Rikkonen b71adc7589 (2e0e45e1f) Updated: Localization 2019-05-20 20:46:21 +03:00
Joonas Rikkonen 11d115cca4 (f33b03b1a) Remove the "repair job-specific"/"repair everything" options from the repair order and use "repair everything" by default. "Repair job-specific" isn't very useful anymore because the characters can prioritize what to fix based on their skills pretty well. 2019-05-20 20:35:44 +03:00
Joonas Rikkonen b8da5670c1 (220a59c65) Fixed nullref exception in AIObjectiveRescure.Act if the character has no FindSafety objective 2019-05-20 20:32:35 +03:00
Joonas Rikkonen 97b095bd10 (0e668e083) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev (squashed together 20290af96..0e668e083 because the merge script shit itself due to the merges in between) 2019-05-20 20:25:12 +03:00
Joonas Rikkonen 120dc39a9e (36d2ff935) Merge branch 'dev' of github.com:Regalis11/Barotrauma-development into dev 2019-05-20 20:18:17 +03:00
Joonas Rikkonen 1340780205 (18af6c22d) Fixed: On/Off switches not being highlighted in mechanic tutorial 2019-05-20 20:17:59 +03:00
Joonas Rikkonen 1101252ad2 (a652b4140) Added missing "dialognorescuetargets" to EnglishVanilla, don't attempt to say the line on languages other than English 2019-05-20 20:17:42 +03:00
Joonas Rikkonen 3cf514db97 (29fc2e4d4) Fixed AIObjectiveRescue throwing a nullref exception if the target is not the character itself, added null checks 2019-05-20 20:17:25 +03:00
Joonas Rikkonen eed0666879 (76909c3c7) Fixed "clowncostume" and "crewaway" achievements not unlocking in multiplayer, fixed being able to get the "killclown" achievement by committing suicide while wearing a clown costume. Closes #1478
+ merge fix
2019-05-18 18:24:03 +03:00
Joonas Rikkonen a01729514b (deeaf479b) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev 2019-05-18 17:52:26 +03:00
Joonas Rikkonen 31f74aca8d (e3fee50d9) Use roughly matching "fallback translations" for ConnectionPanel texts that haven't been translated yet (e.g. "signal_1" -> "signal_in_1", "trigger_out" -> "shoot"). Still missing the charge-related connection names in batteries, couldn't find any suitable replacements for them 2019-05-18 17:51:52 +03:00