Joonas Rikkonen
3c11bc2fca
(420c429b4) Fix issues in reporting.
2019-05-16 05:40:50 +03:00
Joonas Rikkonen
7d0d669cdc
(8fd5fa292) Fix a stack overflow issue.
2019-05-16 05:40:19 +03:00
Joonas Rikkonen
ddd84a4f9e
(c45394988) Refactor and fix button interaction and access checks in the indoors steering manager.
2019-05-16 05:40:00 +03:00
Joonas Rikkonen
3575c8df52
(03ab09991) Load chinese fonts dynamically, removed unnecessary duplicate block from DynamicRenderAtlas
2019-05-16 05:39:25 +03:00
Joonas Rikkonen
96eb27140e
(ab2157c70) Remove KeepDivingGear property, because it can cause issues when the objective tree is deep. Checking the property is possible via recursion, but it seems that the checks can miss a frame. Instead, let's just make it simple and remove the diving suit only when idling.
2019-05-16 05:37:46 +03:00
Joonas Rikkonen
6f9690eeaf
(326dbd217) Don't take the diving suit off while trying to get a diving suit as a part of the goto objective. Fixes bots occasionally standing next to the diving suit cabinet apparently holding the suit in hands but not putting it on or moving anywhere.
2019-05-16 05:37:14 +03:00
Joonas Rikkonen
01743eb7e1
(6fe53068b) Add a wait timer at the beginning and a temporal spread on creating the autonomous objectives. Should improve performance, because the find target loops are thus spread a bit.
2019-05-16 05:36:58 +03:00
Joonas Rikkonen
a3db11876b
(d34fb2097) Major refactoring: - Replace custom logic regarding subobjectives with generic logic. - Ensure that all the objectives follow the same logic, reduce duplicate code where possible.
2019-05-16 05:32:56 +03:00
Joonas Rikkonen
a447a47661
(06129f656) Add some missing texts. Incomplete.
2019-05-16 05:26:25 +03:00
Joonas Rikkonen
812598774e
(24bcea40e) Fix the ai checks about door buttons. Don't aim at targets that cannot be seen.
2019-05-16 05:25:52 +03:00
Joonas Rikkonen
e284e1039a
(ee2d498e3) Fix bots ignoring doors when shooting.
2019-05-16 05:24:28 +03:00
Joonas Rikkonen
52d25694ed
(050157f65) Fix bots not being able to use buttons or ladders because the were aiming. Don't aim when farther than 500 pixels away from the target.
2019-05-16 05:23:39 +03:00
Joonas Rikkonen
cf55de90ba
(0ccb08c95) Remove item collision category, since we only want to check the walls and the characters here.
2019-05-16 05:22:30 +03:00
Joonas Rikkonen
99307f764a
(a47ab977d) Allow shooting through platforms.
2019-05-16 05:21:56 +03:00
Joonas Rikkonen
1e200722ae
(81244db07) Implement AIObjectiveFightIntruders.
2019-05-16 05:21:03 +03:00
Joonas Rikkonen
88de435487
(cf495e03c) Check the visibility to the target when engaging (the distance is not enough, if there's something blocking the line of sight).
2019-05-16 05:20:45 +03:00
Joonas Rikkonen
3b313976c5
(5394332a8) Add a note.
2019-05-16 05:19:52 +03:00
Joonas Rikkonen
bcd18aab4e
(8025561da) Implement offensive combat.
2019-05-16 05:19:31 +03:00
Joonas Rikkonen
363eb0540a
(a8f2f39bd) The ai now sorts the weapons by the combat priority value, which can be set in xml. Ranged weapons are favored. The required items are also taken into account.
2019-05-16 05:19:14 +03:00
Joonas Rikkonen
2ae54a01a5
(ac7ab10b0) Pass AIObjectiveManager reference in the constructors instead of methods so that we can always access it.
2019-05-16 05:14:20 +03:00
Joonas Rikkonen
7ebb0be29b
(db42ef494) Don't allow combat priority go over 100.
2019-05-16 05:09:51 +03:00
Joonas Rikkonen
ff5a819ad3
(62a89ce6a) Refactor and fix priority calculations. WIP, but should already improve things.
2019-05-16 05:05:53 +03:00
Joonas Rikkonen
d0795791e7
(3bb9485ad) Add automatic orders as objectives instead of orders so that we can take advantage of the existing priority system. Turn the priority values defined in the xml into modifiers.
2019-05-16 05:04:53 +03:00
Joonas Rikkonen
039d07f693
(a2943d8b7) Merge branch 'dev' into human-ai
2019-05-16 05:04:10 +03:00
Joonas Rikkonen
60f52375e6
(7788ec72a) Test issuing orders automatically.
2019-05-16 05:03:49 +03:00
Joonas Rikkonen
6262b3ea54
(ce8e185aa) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-04-16 17:12:09 +03:00
Joonas Rikkonen
bd07acf26d
(052ab6307) Use MonoKickstart on Linux so installing Mono is not required, fixed division by zero if the width of the server console window is 0
2019-04-16 17:11:49 +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
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
d15a88c619
(3e8bdbb0a) v0.8.9.9 + merge fix
2019-04-06 17:54:39 +03:00
Joonas Rikkonen
14d0daf16d
(ccef21f63) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-04-06 17:49:31 +03:00
Joonas Rikkonen
45c1ed499a
(e326112f5) Increased discharge coil sound range and added camera shake to make it more noticeable when it's used
2019-04-06 17:49:18 +03:00
Joonas Rikkonen
25768d8845
(4b54fb4bf) Refactor AIObjectiveCombat and the reactions to the damage. Fixes bots not reacting to any damage done with repair tools. Now they should flee (but not retaliate).
2019-04-05 16:20:11 +03:00
Joonas Rikkonen
709d9e44ab
(541e3ffbe) Check that the mask is equipped in the head before trying to unequip.
2019-04-04 11:12:18 +03:00
Joonas Rikkonen
7126a60b7a
(558e47075) -Reduced condition loss per use for plastiseal (-100 to -25), reduced the effect a bit (TODO: add more plastiseal to subs) -Reduced condition loss per use for antibiotic glue (-100 -> -50) -Implemented crafting recipes for antidotes -Made spacing more uniform in medical xml
2019-04-04 11:12:05 +03:00
Joonas Rikkonen
4e45876a6c
(502e453a9) Instead of placing the weapon to a slot 3, find the allowed hand slots.
2019-04-04 11:11:51 +03:00
Joonas Rikkonen
b08a31a68f
(33ab1e038) Add buttons for resetting the settings to the defaults and setting the default keybindings. TODO: pressing the buttons should refresh the settings frame instead of closing it.
2019-04-04 11:10:14 +03:00
Joonas Rikkonen
a3425a0432
(bb85ea959) Fixed last item not being visible in grid layout groups if it's the only item on the last row
2019-04-04 11:08:49 +03:00
Joonas Rikkonen
7eb03ea6b3
(874c38a79) Show keybindings for use or shoot in the tooltips.
2019-04-04 11:08:33 +03:00
Joonas Rikkonen
d4752bb6a0
(9f5c9fbcb) Make sure lazy-loaded sprites load their texture when creating a GUIImage, because the image needs to know the size of the texture to scale itself correctly. Fixes location portraits not being visible in the campaign menu when a location is selected for the first time.
2019-04-04 11:08:18 +03:00
Joonas Rikkonen
7491b06a5d
(bbd192053) Rebind Select and Use keys. Refactor GameSettings to support legacy bindings, when they are set. That is, if the new "deselect" and "shoot" keys are not defined, but the player config file is found, use the "select" and the "use" keys instead of the defaults.
2019-04-04 11:08:02 +03:00
Joonas Rikkonen
79ea41e6c9
(4f4395b00) Reduced the size of the disallowed item interface area around the chatbox
2019-04-04 11:07:45 +03:00
Joonas Rikkonen
2d52a8ddf4
(883c460d5) Don't require holding the aim key when using the periscope/controller. Move the RequireAimToUse from Controller component to Item. Change the use and shoot logic accordingly. TODO: fix the camera centering.
2019-04-04 11:07:14 +03:00
Joonas Rikkonen
63eb4d64e5
f8b0295...0671290
2019-03-18 23:30:58 +02:00
Joonas Rikkonen
23687fbf2f
aeafa16...4d3cf73
2019-03-18 22:57:05 +02:00
Joonas Rikkonen
3301bed442
409d4d9...aeafa16 (merge human-ai)
2019-03-18 22:52:17 +02:00
Joonas Rikkonen
5dc31c213f
ad0bbaf...7245c72
...
commit 7245c721339885d062567befc052a592391b3b4a
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sun Mar 10 15:22:31 2019 +0200
Fixed StatusEffects only applying afflictions to one limb even if the target is "Character" instead of "Limb", added a subtle screen distortion effect to heavy radiation sickness. Closes #1256
commit e0db27e62ec9546fd4b182a0cc97f7e5830645ae
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sat Mar 9 21:53:51 2019 +0200
Fixed WrapText adding unnecessary spaces after every line break. Closes #1215
commit 988bc58d51c195ad9265b84a1e97e0101cd3f808
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sat Mar 9 21:12:50 2019 +0200
Fixed crashing when attempting to create a body for a wall section that's less than 1 unit long (e.g. if a wall that's just slightly longer than the wall section size receives damage).
commit 8c31157425a9e2ec02312618d1bfa359ab3ee87d
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sat Mar 9 20:30:44 2019 +0200
Fixed clients being unable to toggle the respawn shuttle on/off
commit a4ccb039219830efe9cd305c26942dda1bd04e9c
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sat Mar 9 19:33:22 2019 +0200
Fixed inability to select the respawn shuttle as a client host
commit b89b2d2c282d8c74d7ccd37b3f29dcab51eff680
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sat Mar 9 19:32:41 2019 +0200
Made it possible to edit the style of the ListBox under GUIDropDowns, increased the opacity of the listbox to make the contents more readable when there's text behind it
commit 8f6d9aef3d637fe37a18c78f4b15ef8fd266374e
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sat Mar 9 18:11:23 2019 +0200
Fixed NetLobbyScreen not showing the names of the submarines the client doesn't have
2019-03-18 22:39:57 +02:00
Joonas Rikkonen
044fd3344b
2f107db...5202af9
2019-03-18 21:42:26 +02:00
Joonas Rikkonen
6c0679c297
38f1ddb...178a853: v0.8.9.1, removed content folder
2019-03-18 20:39:27 +02:00
Joonas Rikkonen
d81ee1a27e
Added a bunch of checks to make sure a normalized zero vector (= NaN, NaN) is not used in any position/velocity/movement calculations. There were at least three places where it was causing problems according to error reports: when a character that can't enter a sub spawns at the center of a hull and when using an underwater scooter or throwing something while the cursor is at the position of the character, but there were tons of other places as well where it may have potentially caused physics errors.
2018-07-31 12:28:04 +03:00