Joonas Rikkonen
4a8845c604
Fixed docking ports creating duplicate hulls and gaps during loading
2018-07-24 13:21:36 +03:00
Joonas Rikkonen
65b8d2d36e
Fixed door gaps being removed twice when unloading a sub (in door.Remove and Entity.RemoveAll). Probably didn't cause any issues other than unnecessary console warnings.
2018-07-24 13:19:07 +03:00
Joonas Rikkonen
3b6bedb180
Fixed clients not recreating docking port hulls/gaps when receiving a network event if the docking port is already locked
2018-07-23 23:27:27 +03:00
Joonas Rikkonen
002e63f1eb
Fixed entity IDs occasionally getting messed up due to the gaps and hulls created by docking ports. Clients would simply use the existing hulls and gaps when a network event for an already docked port is received, even though they may have been removed and replaced with ones with different IDs.
2018-07-23 21:36:49 +03:00
Joonas Rikkonen
faf0a87cfa
Added a bunch of error checks to physicsbody-manipulating code
2018-07-20 16:33:12 +03:00
Joonas Rikkonen
f1c4bd3c67
- Some of the non-game-crashing error messages are sent to GameAnalytics.
...
- Changed crash severity from Error to Critical.
- Exception handling when loading submarine preview images.
- Checking if position is valid in Ragdoll.SetPosition.
2018-07-19 22:12:50 +03:00
Joonas Rikkonen
30a453191f
Added "VulnerableToEMP" property to Powered. Can be edited in sub editor. Reactors and relays are not affected by EMP by default. Closes #495
2018-07-18 15:07:21 +03:00
Joonas Rikkonen
f25fe6b504
Added some error checking & debug logging to Door.PushCharactersAway to diagnose why Math.Sign is throwing ArithmeticExceptions (see #497 ).
2018-07-18 14:36:00 +03:00
Joonas Rikkonen
d00b52882f
Added UpdateUseItem method from d253863
2018-07-18 12:14:09 +03:00
Joonas Rikkonen
41800aff77
Cherry-picked d0b61b3 from dev.
2018-07-18 11:50:09 +03:00
Joonas Rikkonen
e0455caaaa
Cherry-picked 869b725 from dev
2018-07-18 11:49:36 +03:00
Joonas Rikkonen
1ef2cb7500
Fixed crashing if the Use method of a wire is triggered by a StatusEffect
2018-07-18 11:24:56 +03:00
Joonas Rikkonen
89b26008a6
Projectile damage range is set to the radius of the item's collider if the range is not given in the xml. Structure.AddDamage uses the edges of the sections to calculate the distance to a damage source, i.e. the damage area only has to "touch" the section to do damage. Closes #479
2018-07-16 15:44:26 +03:00
Joonas Rikkonen
ce88519c13
Pump components with a physics body updates it hull when active (-> possible to make portable pump items). Closes #463
2018-07-11 10:59:40 +03:00
Roni Kovaniemi
c1cbde4288
Adder Signal Component
...
Added a Adder signal component, which adds values inputted together and outputs a sum.
2018-07-09 14:42:07 +03:00
Joonas Rikkonen
df149dd0fa
Option to make delay component reset (discarding previously received signals) when a new signal is received, fixed delay countdown running even when the game is paused. Closes #435
2018-06-10 23:51:26 +03:00
Joonas Rikkonen
1a84b6cae7
Fixed items not being placed in the same hull and sub as the item they're inside if the ItemContainer is not the first of the parent's ItemContainer components (e.g. fabricator output inventory). Closes #430
2018-05-30 19:15:55 +03:00
Joonas Rikkonen
d1ec246f28
Fixed motion sensors sending out signals even if the output is set to nothing. Closes #426
2018-05-30 18:36:44 +03:00
Joonas Rikkonen
7dd4dca2ed
Fixed crashing when a round starts if the sub has been saved while a fabricator was running. Closes #398
2018-05-07 11:15:12 +03:00
Joonas Rikkonen
ed22ca360f
Fixed AND/OR or components staying inactive until they receive their first signal. Closes #387
2018-04-25 14:43:44 +03:00
Joonas Rikkonen
88eabef8af
Made characterusable default to false (as it did before 91d6c7b)
2018-04-24 20:58:42 +03:00
Joonas Rikkonen
91d6c7b91f
Fixed explosives being directly usable by characters, causing them to explode when left clicking while holding them due to 9dd9425c. See #385
2018-04-24 18:00:36 +03:00
Joonas Rikkonen
6e666939a0
Wearables apply OnWearing StatusEffects in all the components of an item, not just the Wearable component.
2018-04-23 15:17:25 +03:00
Joonas Rikkonen
ceaba2f5ca
Fixed some entities occasionally not being removed at the end of a round. CargoMission removed the cargo items at the end of a round without checking if the items have already been removed, which could cause another entity to be removed from the entity dictionary if it's taken the ID of the cargo item. This prevented the new entity from being removed in Entity.RemoveAll, causing errors during the next round. Closes #278
2018-04-23 13:55:08 +03:00
Joonas Rikkonen
eed7b72b4e
Fixed player-controlled creatures being able to do damage to themselves and RepairTools causing damage to the user regardless of the user's skills.
2018-04-18 15:04:18 +03:00
Joonas Rikkonen
3abbfcbc23
Railguns cannot be fired without aiming. Closes #364
2018-04-09 15:22:42 +03:00
Joonas Rikkonen
465b848cb4
Fixed relay components ignoring signals to the toggle and set_state connections if the signal has been passed through other PowerTransfer components. Closes #355
2018-04-06 19:51:16 +03:00
Joonas Rikkonen
faaaa69fa7
RegExFindComponent doesn't attempt to evaluate the (null) signal when no signal has been received yet.
2018-03-21 15:31:53 +02:00
Joonas Rikkonen
df746db421
Ladders can be climbed by holding up/down while standing next to them without having to select them first.
2018-03-08 11:01:17 +02:00
juanjp600
82dcbc3ae8
Light sources now follow the direction of parent Turrets + changed Controller's output signal and Turret's input signal to an angle
2018-03-07 22:53:28 -03:00
Joonas Rikkonen
b9287beed2
Characters carry two-handed throwables in both hands. (See #303 )
2018-03-07 11:33:06 +02:00
Joonas Rikkonen
6ddcd65f18
RepairTools can do damage to characters by hitting the collider. Closes #299
2018-03-05 12:34:21 +02:00
Joonas Rikkonen
4e048b7895
Items removed due to the "DeleteOnUse" property are removed using EntitySpawner, removing an item removes it from the selected items of all characters. Closes #306
2018-03-05 12:13:52 +02:00
Joonas Rikkonen
e15fad6986
Relay fix attempt number n + 2
2018-03-02 21:51:39 +02:00
Joonas Rikkonen
199794cf41
Fixed exceptions when trying to save an itemcomponent that has been instantiated by calling the constructor directly (e.g. lightcomponents in wearables)
2018-03-02 17:46:48 +02:00
Joonas Rikkonen
07d3d69040
Equipped items can be swapped by double-clicking, fixed inventories getting messed up when swapping multi-slot items fails (e.g. drag a jumpsuit on an equipped diving suit).
2018-03-02 15:24:54 +02:00
Joonas Rikkonen
f1f190a997
Added a light to diving suits (requires a battery to work). Closes #233
2018-03-02 13:11:28 +02:00
Joonas Rikkonen
12d1692bb5
Wearables can attach lightsources to limbs
2018-03-02 11:13:11 +02:00
Joonas Rikkonen
1255b21853
Relay fix attempt number n + 1
2018-03-01 15:56:03 +02:00
Joonas Rikkonen
ab99aa9ac1
Relay fix attempt number n
2018-03-01 12:40:38 +02:00
Joonas Rikkonen
c803e23c50
Added checks for character removal to a bunch of places. Some of these may not necessary, but at least MeleeWeapon, Projectile and Controller still accessed the user after the user had been removed.
2018-02-28 17:37:20 +02:00
Joonas Rikkonen
f5277ce661
Fixed clients being unable to crowbar doors due to OnPicked only being called on local players. Closes #297
2018-02-28 15:24:42 +02:00
Joonas Rikkonen
74ef5c6ea6
Fixed items attached mid-round by other clients or the host being impossible to interact with and occasionally being attached to an incorrect position. Closes #296
2018-02-28 14:01:38 +02:00
Joonas Rikkonen
77940fa992
Added some debug logging, Character.Revive removes the existing AITarget from the character before creating a new one
2018-02-26 18:05:03 +02:00
Joonas Rikkonen
064750d99f
Fixed missing RepairTool HitStructure particles & missing ancient weapon beam (+ added hit particles to ancient weapon). Closes #285
2018-02-25 22:43:06 +02:00
Joonas Rikkonen
e02a1dc6ae
Reverted the changes to power transfer logic in bb987676 because of the issues it caused with relay components. Signals are still passed using the cached recipient lists, but power is passed using the old recursive CheckJunctions method. Closes #282
2018-02-25 14:42:38 +02:00
Joonas Rikkonen
6fcf2f573b
Fixed relays burning out when connected to the main power grid. The changes in bb98767 caused relay components to be considered parts of whichever power grid they're connected to, causing their power and load to match the rest of the grid which usually causes them to go over the max power value. Closes #279
...
+ Fixed "powerConnections" field not being updated when creating PowerTransfer components mid-round, which made fabricated relays unusable for power transfer.
2018-02-24 20:46:28 +02:00
Joonas Rikkonen
f2f37b020e
Applied fire extinguisher changes from the command-improvement branch: the repair tool steps through the ray that's used to find firesources in range and collects all firesources along the way instead of just checking the start and end positions of the ray (-> fires are much easier to extinguish now). Closes #274
2018-02-24 17:28:52 +02:00
Joonas Rikkonen
1fe2a1916f
Fixed ruin doors being possible to open with the select key. Closes #268
2018-02-22 14:36:48 +02:00
Joonas Rikkonen
d87c6bd06a
Fixed exceptions when creating items with a powertransfer component mid-round (e.g. when fabricating a relay component). Closes #267
2018-02-22 11:11:08 +02:00