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
3877c18d0c
(c15419d90) Changelog additions + merge fix
2019-04-08 19:20:05 +03:00
Joonas Rikkonen
28f2c00255
(02bbfb6a3) Let the ai objectives handle waiting (after switching characters). Currently only idle objective uses wait timer, others ignore it. Reduce the wait time from 20 to 10 secs.
2019-04-08 15:59:36 +03:00
Joonas Rikkonen
1ffe3e4ec0
(6b95aa87e) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-04-08 13:36:44 +03:00
Joonas Rikkonen
2efcd200f5
(17490598f) Don't allow putting items into locked inventories by double-clicking (causes them to be dropped in multiplayer)
2019-04-08 13:36:30 +03:00
Joonas Rikkonen
10776572d2
(0eef99a8b) Don't change targets, wander or stay still in ladders. Don't stay still in water. Improve bot behavior in close spaces.
2019-04-08 13:36:16 +03:00
Joonas Rikkonen
9c07ebda53
(8311f9380) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-04-08 13:36:00 +03:00
Joonas Rikkonen
d28b04ed3b
(30308f7e4) Fixed players being able to overwrite vanilla content when the vanilla package is not selected
2019-04-08 13:35:46 +03:00
Joonas Rikkonen
8a227a4f2c
(570318151) Cleanup.
2019-04-08 13:34:48 +03:00
Joonas Rikkonen
935cd6bc65
(235745275) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-04-08 12:06:09 +03:00
Joonas Rikkonen
47ee14227e
(551008fc1) Abandon FixLeakObjective when the goto subobjective cannot be completed. Reset AIObjectiveLoops when the objective is activated or added. Don't clear ignored targets periodically by default. Calculate AIObjectiveGoTo CloseEnough when the objective is created. Don't use arm length in CloseEnough, because it's not used in range checks. Partial fixes to #1343 .
2019-04-08 12:01:54 +03:00
Joonas Rikkonen
55eecc49d8
(842e6af33) Human AI needs AITargets too (not much, but they are still useful). Therefor add Type property to AITargets, so that certain targets can be treated human only and others enemy only. Implement target filtering in the Enemy AI Controller.
2019-04-08 11:58:50 +03:00
Joonas Rikkonen
33b205b1c7
(3300d3915) When searching for a new room to move to, AIObjectiveIdle only attempts to find a path to one potential room per frame. Fixes lag spikes caused by idling NPCs (was particularly noticeable if the character was in a room with no way out). Closes #1397
2019-04-07 21:44:15 +03:00
Joonas Rikkonen
1297127ae2
(0be4bd31d) Todo note about idling characters killing the framerate (see #1397 )
2019-04-07 13:41:07 +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
501a114000
(4119dec1c) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-04-05 16:19:55 +03:00
Joonas Rikkonen
d7364171fb
(e31a38ae1) Fixed spritebatch not being disposed when saving submarine preview images, don't reload all subs when saving a sub
2019-04-05 16:19:40 +03:00
Joonas Rikkonen
161f725778
(2b36813ef) Added Back button to submarine editor
2019-04-05 16:19:07 +03:00
Joonas Rikkonen
8f42801c7a
(2d473d38a) Add RequireAimToUse checks for being logical and for future. Shouldn't have any functional implications in the current version, but we could have RepairTools or Weapons that don't require aiming.
2019-04-05 16:18:52 +03:00
Joonas Rikkonen
350e6d6036
(5c39920a7) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-04-05 16:18:37 +03:00
Joonas Rikkonen
aef3a96d60
(cb01ae2fe) Small adjustments to Sub Editor entity list
2019-04-05 16:18:23 +03:00
Joonas Rikkonen
f6bf7d9219
(dc09b0993) Fix bots not aiming with the welding tool when trying to repair, because of a dump error when checking the RequireAimToUse property.
2019-04-05 16:18:08 +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
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
e86d86c41f
(9bd8db487) Allow to aim in ladders when not moving.
2019-04-02 12:41:18 +03:00
Joonas Rikkonen
2eaf22683d
(ae643deeb) Added alive checks to a couple of diving gear status effects (don't consume tanks when dead)
2019-04-01 22:47:22 +03:00
Joonas Rikkonen
ec7e23061b
(38b5d9aad) Experimental changes to syncing ragdolled (unconscious/dead) characters: - Higher error tolerance when syncing the positions. It's often hard to get the main limb exactly to the same position as the collider, because the positions of the limbs aren't synced and the pose of the ragdoll may differ between the server and clients. Increasing the tolerance makes it less likely for dead/unconscious characters to "twitch" when the game attempts to force the main limb to the position of the collider. - If the position of the ragdoll differs from the position of the collider so much that CheckDistFromCollider disables limb collisions, apply an additional force to all limbs to force the ragdoll to the correct position. Otherwise the ragdoll can occasionally start "hanging" midair, clipping through solid objects, because the main limb's pull joint doesn't necessarily have enough force to pull the entire ragdoll up to the collider.
2019-04-01 22:47:03 +03:00
Joonas Rikkonen
44a8bfce08
(808e7257d) Attempt to fix the issue where bots are not avoiding walls properly while wandering around.
2019-03-28 18:09:05 +02:00
Joonas Rikkonen
72e7cb6e99
(b0feecc1f) Use the code that includes wall avoidance for wandering also in AIObjectiveFindSafety and AIObjectiveGetItem when the target is unreachable.
2019-03-28 12:35:01 +02:00
Joonas Rikkonen
05f12a144b
(afed4e8fa) Check that the container is in the same hull than the character before allowing to contain items. Might solve the floating diving suit mentioned in #1362 .
2019-03-28 12:34:47 +02:00
Joonas Rikkonen
080ac78ded
(5c35a640e) Update tutorial-rework with dev
2019-03-27 20:52:47 +02:00
Joonas Rikkonen
3f82c9a2cb
(f417b026f) Fetched: Changes for playing video tutorial from local branch
2019-03-27 20:45:14 +02: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