Joonas Rikkonen
8053f2ec9e
(c748c569a) Made looping StatusEffect sounds usable (previously they never stopped or updated their position), moved client-specific StatusEffect code to the client project
2019-03-30 15:34:55 +02:00
Joonas Rikkonen
57a84f4b3d
(5e82d9084) PropertyConditionals return a match when checking status tag inequality and the target has no status tags (e.g. checking if a character doesn't have a StatusEffect with a "poison" tag should return true even if the character has no active StatusEffects).
2019-03-30 15:34:42 +02:00
Joonas Rikkonen
7a32e07298
(49c530dbd) Fixed turrets not working if they're placed inside the submarine - a request from a sub builder who couldn't get indoors torpedo tubes to work :)
2019-03-30 15:34:14 +02:00
Joonas Rikkonen
267cdacbb4
(907891b3f) v0.8.9.8
2019-03-29 21:51:36 +02:00
Joonas Rikkonen
854c90c89a
(e38a3fef5) Fixed characters not letting go of the character they're grabbing when the health interface is closed with Esc or by clicking outside the window.
2019-03-29 21:51:24 +02:00
Joonas Rikkonen
c9db9ec4ff
(1631eb0fc) Added a null check to ContextualTutorial.IsFlooding
2019-03-29 21:51:11 +02:00
Joonas Rikkonen
0b098efbf6
(92a838f87) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-03-29 21:50:58 +02:00
Joonas Rikkonen
6f919a4de0
(f8907b59f) Added: Proper scaling based on resolution for VideoPlayer. Modified: IsFlooding check of contextual tutorial to require water volume
2019-03-29 21:50:44 +02:00
Joonas Rikkonen
140f1894d4
(400cf2cbd) Fixed highlight raster scale changing according to lightmap resolution
2019-03-29 17:39:43 +02:00
Joonas Rikkonen
45e33bca28
(3f574078d) Fixed items emitting light from inside containers in the sub editor. Closes #1365
2019-03-29 17:27:08 +02:00
Joonas Rikkonen
c80a3d1d5d
(11190239d) Fixed autointeracting with contained items causing the parent to be selected in MP (e.g. picking up an ammunition box by interacting with the loader caused the loader to be selected)
2019-03-29 17:26:54 +02:00
Joonas Rikkonen
902e5e4493
(797046bbf) Fixed deselecting an item with Esc/E causing the character to interact with whatever the cursor is focused on. TODO: Fix autointeracting causing entities to be selected in MP (e.g. picking up an ammunition box by interacting with the loader causes the loader to be selected)
2019-03-29 17:26:40 +02:00
Joonas Rikkonen
d4d6a2ad30
(f16622a9d) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-03-29 17:26:26 +02:00
Joonas Rikkonen
4eba8faccf
(b619092ec) Continue working on the Charybdis. Refactor enemy ai attack limb selection logic. Implement FallBackUntilCanAttack behaviour.
2019-03-29 17:26:12 +02:00
Joonas Rikkonen
a64096b5aa
(24cde6cae) Add a static sight range. Considerably increase the hull sight ranges.
2019-03-29 17:25:58 +02:00
Joonas Rikkonen
57f8fe437b
(2ae3a8227) Formatting
2019-03-29 17:25:43 +02:00
Joonas Rikkonen
ebe9af92c2
(a9f855db4) Fixed: order of checks in previous commit
2019-03-29 17:25:28 +02:00
Joonas Rikkonen
c1ac2bb5a9
(aa5cc0abe) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-03-29 17:25:14 +02:00
Joonas Rikkonen
ce8501adf3
(b05f3e3d1) Fixed: Flood check logic
2019-03-29 17:25:00 +02:00
Joonas Rikkonen
1e36126544
(ab44f999c) Fixed inability to open the pause menu if the cursor is on any UI element, fixed inability to close item UIs with esc if the cursor is not on the UI
2019-03-29 17:24:45 +02:00
Joonas Rikkonen
b375cd3be1
(db658d442) Keep oxygen percentage at the same level when resizing hulls in the sub editor (otherwise scaling up a hull will cause it to have less oxygen and vice versa)
2019-03-29 17:24:31 +02:00
Joonas Rikkonen
ddfd7274e9
(d5ea3c7d5) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-03-29 17:24:17 +02:00
Joonas Rikkonen
ca08b803dc
(891ef87c3) Fixed: CrewManager throwing errors if changing resolutions when a crewmember is dead. Added: Scaling of the objective list when changing resolutions
2019-03-29 17:24:02 +02:00
Joonas Rikkonen
296ec8bab8
(d95fc9893) Fixed crashing when dragging waypoints in the sub editor due to waypoints not being assigned a prefab
2019-03-29 17:23:47 +02:00
Joonas Rikkonen
af1f8be4fa
(ad3954bd2) Moved item HUD closing logic to Character.ControlLocal and removed it from ItemInventory. The deselection in ItemInventory was not synced with the server, causing the item to be immediately reselected after the HUD has been closed (and the logic was redundant anyway because it's also handled in Character).
2019-03-29 17:23:33 +02:00
Joonas Rikkonen
ce359f5309
(93669eac9) Fix cannot close pause menu by pressing esc.
2019-03-29 17:23:19 +02:00
Joonas Rikkonen
ce2131df42
(e4064088d) Close in-game interfaces when pressing esc. Currently only registered when the mouse is over the interface. Originally I intended to make it so that pressing esc always closes the open interface. But let's test this.
2019-03-29 17:23:05 +02:00
Joonas Rikkonen
817a6100d7
(f4680f78f) Made AI characters less eager to load extra fuel to the reactor (the load needs to be 2x higher than the theoretical max output of the reactor). In some subs the reactor's max output is so low that extra fuel is frequently needed, causing AI characters to constantly put in and take out rods as the load fluctuates. + The AI characters now put the excess rods in their inventory instead of dropping them.
2019-03-29 17:22:36 +02:00
Joonas Rikkonen
c7b89aa333
(505161632) Added PAX to the vanilla content package
2019-03-29 17:22:22 +02:00
Joonas Rikkonen
4c1726ed63
(ad2b7c007) Disable editing the vanilla subs in release builds (The subs can still be saved with another name -> can create copies). Change and and add some texts.
2019-03-29 17:22:07 +02:00
Joonas Rikkonen
db1d0acac9
(4d569f38c) AI characters can take out excess fuel rods from the reactor, and calculate if more fuel is needed to keep the output at a suitable level instead of only adding more fuel when the reactor is completely empty.
2019-03-29 17:21:52 +02:00
Joonas Rikkonen
d974a5d72f
(3a98135bd) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-03-29 17:21:37 +02:00
Joonas Rikkonen
c0cf060526
(7d7e17231) Implement reversing and make it as an option for attacks. Detach latching with "F" (debug feature).
2019-03-29 17:20:54 +02:00
Joonas Rikkonen
b9574dde2d
(361a8d556) LevelResource fixes:
...
- If collecting the resource doesn't require any items, allow it to be picked up withour a repair tool. Closes #1325
- Fixed deattach timer not being synced (the methods were implemented, but the server never sent any events). Closes #1292
- Fixed ridiculously small mineral colliders that made it hard to hit them with the plasma cutter (body size was not updated when the sprites were changed?).
2019-03-28 18:17:19 +02:00
Joonas Rikkonen
c76fb32e15
(5bab406f1) Fixed "allowInsideFixture" raycasts not working correctly - checking if the ray is inside the AABB is not enough, we also need to take the shape and rotation of the fixture into account.
2019-03-28 18:12:23 +02:00
Joonas Rikkonen
f3dc34dfa3
(d211acd47) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-03-28 18:12:09 +02:00
Joonas Rikkonen
2490951b2b
(6912a70c7) Removed: Unused, old code. Fixed: Formatting
2019-03-28 18:11:54 +02:00
Joonas Rikkonen
f51c9c14df
(54ae135f5) Items can be dragged and dropped directly from the inventory into containers without having to select the container first.
2019-03-28 18:11:40 +02:00
Joonas Rikkonen
a351ffcbda
(1beb64bd8) Removed: Duplicate code from VideoPlayer
2019-03-28 18:11:25 +02:00
Joonas Rikkonen
2281035ffa
(05ee3bb5f) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-03-28 18:11:10 +02:00
Joonas Rikkonen
fde8cc1d6f
(9edcbf86d) Added: More prominent graphics for when a tutorial objective is completed
2019-03-28 18:10:56 +02:00
Joonas Rikkonen
98935935c9
(46c711ce2) Made a bunch of ItemContainer UI panels larger
2019-03-28 18:10:41 +02:00
Joonas Rikkonen
68a601722c
(34987308f) Fixed reactor warning lights being clickable
2019-03-28 18:10:27 +02:00
Joonas Rikkonen
4ce2316cb2
(8339ae744) Don't allow autointeracting with contained items (e.g. picking up an ammunition box from a loader) if another item is currently selected. Makes it less likely for players to accidentally pick up items from containers when they deselect another item.
2019-03-28 18:10:13 +02:00
Joonas Rikkonen
b9556280fa
(1f3241833) Fixed chatmessage "popups" overlapping with the report buttons when the chatbox is hidden, color the name of the speaker according to their job
2019-03-28 18:09:59 +02:00
Joonas Rikkonen
c468b4f6f1
(ccaa0d2e9) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-03-28 18:09:45 +02:00
Joonas Rikkonen
3ef9374314
(2464ca95d) Implement random factor (0-100%) for the cooldowns. Add some randomness to the attacks of all new characters.
2019-03-28 18:09:32 +02:00
Joonas Rikkonen
9618c9b7e9
(db8417634) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-03-28 18:09:19 +02: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
0c15748429
(8bea0a96b) Removed minimum conditions from battery deconstruction output (= deconstructing an empty battery still gives the materials used to craft the battery). Closes #1356
2019-03-28 12:41:06 +02:00