Commit Graph

2421 Commits

Author SHA1 Message Date
Joonas Rikkonen 8233f3b8df Increased minimum midround sync timeout to 10 s, an extra check to make sure the server doesn't write position updates during midround syncing (because the entities may not exist client-side yet) 2018-08-14 13:28:56 +03:00
Joonas Rikkonen 8160abe109 Fixed nullref exceptions when loading a steering component when a gamesession is running but no locations have been selected (not sure how that can even happen) 2018-08-14 13:28:11 +03:00
Joonas Rikkonen 6cb6e26b94 Servers can modify all Editable item properties using ChangeProperty events (not just InGameEditable ones). Closes #675 2018-08-14 12:01:56 +03:00
Joonas Rikkonen 8d5e5a8a15 Fixed characters being able to aim with items that have no aimPos configured (causing them to hold two-handed items like shells an crates in one hand when holding the aim button). Closes #613 2018-08-13 17:14:49 +03:00
Joonas Rikkonen 1c6a29dbc6 Characters point the harpoon gun downwards when not aiming. Closes #661 2018-08-13 17:05:51 +03:00
Joonas Rikkonen de05c7f047 More wire color variants. Closes #660 2018-08-13 17:05:25 +03:00
Joonas Rikkonen 1f5239b141 Horizontally resizeable walls are considered horizontal regardless of their size (and the same for vertical ones). Fixes orientation of short but thick walls (e.g. a tiny piece of a heavy wall) being wrong. Closes #648 2018-08-13 14:55:26 +03:00
Joonas Rikkonen 091dcf35e6 Server ignores kick votes if the client has already voted to kick the same player. Closes #615 2018-08-11 17:29:03 +03:00
Joonas Rikkonen d98de2c305 Fire probability and the voltage required for a PowerTransfer item to take damage can be configured in the xml. Docking ports & hatches don't get broken by excess voltage. Closes #589 2018-08-11 17:09:36 +03:00
Joonas Rikkonen f99bec4ed2 If the distance is excessively large when forcing the collider of a dead character to follow the body, the collider is teleported instead of moving it by setting the velocity. + More physics error logging 2018-08-09 14:13:08 +03:00
Joonas Rikkonen f697ec7582 Melee weapons don't stop the swing when they hit the first target (but only damage each target once per swing). Fixes weapons not hitting the target in tight spaces due to touching the ceiling/walls first, and allows hitting multiple characters with one swing. Closes #622 2018-08-09 12:55:52 +03:00
Joonas Rikkonen 7a7c92a2ce Server writes item condition at full accuracy instead of just using 8 bits. The more inaccurate condition caused issues when the value was just above some specific threshold (e.g. minimum condition for a fabricator ingredient) server-side and below it client-side. Closes #616 2018-08-09 12:39:14 +03:00
Joonas Rikkonen 45939a9144 Fixed oxygen tank & welding fuel tank crafting causing everyone to desync. The item condition NetEntityEvent was created before the spawn event of the item, preventing clients from reading the condition event because the item doesn't exist yet. Closes #617 2018-08-09 12:08:47 +03:00
Juan Pablo Arce f1a8db5b47 Fixed stereo sound loading
I had already fixed this on the dev branch, backporting because it's gonna take a while until it's released
2018-08-08 20:57:00 -03:00
Joonas Rikkonen 92f3ac5469 Server setting for selecting which symbols are allowed in client names. The default setting includes symbols from the character ranges Basic Latin, Latin-1 Supplement, Latin Extended A & B and Cyrillic. Closes #534 2018-08-08 17:07:31 +03:00
Joonas Rikkonen 2f0236d99b Fixed PowerContainer RechargeSpeed being capped to the MaxRechargeSpeed set in the prefab due to RechargeSpeed being loaded before MaxRechargeSpeed. Closes #612 2018-08-08 15:56:19 +03:00
Joonas Rikkonen bcd44f79e9 Merge branch 'level-mirroring' 2018-08-08 15:30:41 +03:00
Joonas Rikkonen 5100956bae Levels are mirrored when traveling backwards through a connection in the campaign mode. Closes #519 2018-08-08 15:30:32 +03:00
Joonas Rikkonen 99c76d0099 Cleanup 2018-08-08 15:16:53 +03:00
Joonas Rikkonen 1c1a1eb80e Background sprites spawn at the correct position and rotation in mirrored levels. 2018-08-08 15:12:24 +03:00
Joonas Rikkonen 2a09e68f21 Clown costumes hide the torso limb, diving suits hide the waist which also prevents damage bypassing the damage modifiers of the suit. Closes #606, closes #611 2018-08-08 14:55:12 +03:00
Joonas Rikkonen 1a5a76746b Fixed handcuffed players being able to perform CPR and grab/drag bodies. Closes #608 2018-08-08 12:01:20 +03:00
Joonas Rikkonen 67527df8ab Removed duplicate bleed code in Character.Update. Closes #609 2018-08-08 11:33:06 +03:00
Joonas Rikkonen 5e093faaa2 Fixed max recharge speeds of PowerContainers resetting to the default value after saving and reloading a sub. Closes #605 2018-08-08 11:27:03 +03:00
Joonas Rikkonen 506c13c929 Again, save before committing 2018-08-08 11:15:05 +03:00
Joonas Rikkonen 0a84d989a8 Fixed wearable sprite colors being calculated wrong. Closes #607 2018-08-08 11:10:48 +03:00
Joonas Rikkonen c34b2361dc v0.8.1.12 2018-08-08 02:30:08 +03:00
Joonas Rikkonen 2859b5c7f7 Added physics error check & logging to gap update 2018-08-07 16:49:51 +03:00
Joonas Rikkonen 865b35c6cd Fixed "attempted to access a removed AITarget" errors in AIObjectiveIdle 2018-08-07 16:49:17 +03:00
Joonas Rikkonen 4aeaf93af8 Fixed engines trying to apply infinite force to the submarine if MinVoltage is set to zero. 2018-08-07 14:36:08 +03:00
Joonas Rikkonen 004250409a Fixed number of completed missions in a level not increasing if the connection is not selected after completing a mission. Closes #594 2018-08-07 13:22:02 +03:00
Joonas Rikkonen 4b0c54d664 Dockingport gap linking fixes. Closes #551
- Dockingports force the hatch/door gaps to be connected to the hulls between the ports, because connecting them automatically may fail if the ports are positioned in a non-standard way.
- Gaps don't recheck hulls in OnMapLoaded if rechecks have been disabled.
- Item.UpdateHulls and Gap.UpdateHulls are not called when OnMapLoaded is called during ruin generation.
2018-08-07 12:45:45 +03:00
Joonas Rikkonen 5354670288 Fixed StatusEffects being multiplied by deltatime when a client uses an item with the "use on self" buttons (even though the effect should be instantaneous). Caused effects with no duration to do almost nothing, making calyxanide and other meds with instantaneous effects basically useless. Closes #587 2018-08-07 11:36:53 +03:00
Joonas Rikkonen 2d18da40eb Made calyxanide usable without a medical syringe and made it more effective when injected. 2018-08-07 11:12:09 +03:00
Joonas Rikkonen cfc03f8443 Controllers can't focus the camera on broken items (none of the current focusable items can break but may be useful for modders). Closes #590 2018-08-06 22:43:54 +03:00
Joonas Rikkonen a5a09aa664 Fixed OwnerClientName & OwnerClientIP not being set on respawned characters. The characters of clients who aren't in-game 30 seconds after a round starts are treated as disconnected, making it possible for the client to gain control of the character if they do manage to connect. Closes #583, #584 2018-08-06 15:48:47 +03:00
Joonas Rikkonen e60ebc1930 Handling and logging exceptions thrown by ItemComponent constructors, added stack traces to a couple of error messages 2018-08-06 14:53:28 +03:00
Joonas Rikkonen 7c93730fc3 Fixed errors in netlobbyscreen when attempting to select a sub that fails to load (for example due to a missing/corrupt file), campaign cannot be started if the selected submarine cannot be loaded 2018-08-06 14:28:54 +03:00
Joonas Rikkonen 1a50996774 Server doesn't force reconnecting spectate-only clients to control their previous character. 2018-08-06 14:14:30 +03:00
Joonas Rikkonen c463baed44 Made medical & toxic cabinets waterproof. Closes #578 2018-08-06 14:08:00 +03:00
Joonas Rikkonen fa65372715 Whoops, save before committing 2018-08-06 13:41:36 +03:00
Joonas Rikkonen 4ebe3d715e Characters stay alive for 30 seconds after a client disconnects, and if the client rejoins during that time they regain control of the character. Closes #42 2018-08-06 13:38:39 +03:00
Joonas Rikkonen af3fa80011 Clients only include the last 20 console messages in the "invalid object header" error messages, and the console messages are not displayed in the console itself. Closes #569 2018-08-06 12:32:00 +03:00
Joonas Rikkonen d51d01c3e8 Fixed Submarine.HandleLimbCollision attempting to set the velocity of the sub to an invalid value when the current velocity is extremely small 2018-08-06 11:43:46 +03:00
Joonas Rikkonen 9052782a6c Fixed index out of range exception when trying to determine outside collider position for a gap that's not connected to anything 2018-08-06 11:22:50 +03:00
Joonas Rikkonen e57eb739e2 Cloned items copy the RequiredItems from the original item. Closes #581 2018-08-06 11:19:10 +03:00
Joonas Rikkonen a8604deeb6 Removed monitor files from the vs project 2018-08-06 11:18:37 +03:00
Joonas Rikkonen 3956c1d7a0 StatusEffects with a duration ignore removed targets and automatically stop if all targets have been removed. Closes #571 2018-08-06 11:09:06 +03:00
Joonas Rikkonen 0fa046b325 Removed monitor (unused item that doesn't function atm). Closes #580 2018-08-06 11:02:48 +03:00
Joonas Rikkonen 362c97ce05 Worn items use the spritecolor set in the sub editor. Closes #574 2018-08-06 11:01:13 +03:00