Joonas Rikkonen
177f31d538
Some more logging to help diagnose #278 , a potential workaround to remove items/characters that Entity.RemoveAll failed to remove for some reason.
2018-04-20 16:50:10 +03:00
Joonas Rikkonen
05408d5ec0
Fixed some items with a body disappearing when flipping a sub. Closes #273
2018-02-22 17:43:40 +02:00
Joonas Rikkonen
633dc1ff1e
Option to define multiple compatible content packages in submarine files, added extension methods for parsing string, float and int arrays from XML elements
2018-02-06 10:18:39 +02:00
Joonas Rikkonen
09e4687cd0
The content package a submarine was saved with is included in the submarine preview, added a warning when attempting to start a campaign using a sub with a mismatching content package
2018-01-25 12:19:47 +02:00
Joonas Rikkonen
f5dbbf0735
Submarine preview window with a preview image & some extra information of the subs
2018-01-17 17:01:44 +02:00
juanjp600
1cb39f7fd5
Fixed some inconsistencies and oddities in physics-handling code
...
I'm not sure if this fixes or breaks anything, but it's worth a shot.
2017-12-15 18:11:00 -03:00
Joonas Rikkonen
cce2cf942d
Fixed hulls not being linked to gaps if the center of the gap is exactly at the edge of the adjacent hulls.
...
Closes #147
2017-12-13 21:07:51 +02:00
juanjp600
23b220b6af
Sync character collider rotation, try to make collider face the main limb by instantly flipping it if the angle's too wide, client-side ragdoll correction is more aggressive
2017-12-12 17:58:49 -03:00
juanjp600
2347f2937e
Improved revolver hitreg, shooting structures affects karma, fixed 5th server being blocked in server list
...
Closes #70
2017-12-04 12:39:27 -03:00
Joonas Rikkonen
142920d704
- Added sprites for damaged doors.
...
- Fixed destroyed doors being impossible to repair because the repair tool raycasts wouldn't hit the disabled body of the door.
- Destroyed doors don't cast shadows and the body isn't re-enabled until the door is restored to 50% health.
2017-10-12 19:45:49 +03:00
Joonas Rikkonen
1ff2054ca8
Converted the GetAttribute methods in the ToolBox class to extension methods
2017-10-04 18:38:40 +03:00
Joonas Rikkonen
1e41abadd1
Submarine.PickBody & CheckVisibility ignore sensors
2017-09-03 13:07:20 +03:00
Joonas Rikkonen
96a64d45dc
Moved MapEntity saving methods to the shared project (the server needs to be able to save subs in the campaign mode)
2017-08-30 18:09:48 +03:00
Joonas Rikkonen
79f7ce7071
Revert "Characters that are outside are rendered under particles -> creatures can be hidden by smoke from hydrothermal vents. [ 65211ec]"
...
Caused characters to be rendered behind ruins, need to come up with a better solution
2017-08-27 14:34:11 +03:00
Joonas Rikkonen
1a12f46708
All remaining physics bodies are removed at the end of submarine unloading (freeing debug bodyShapeTextures, etc). -> LevelTrigger bodies don't have to be removed separately during unloading
2017-08-24 20:30:10 +03:00
Joonas Rikkonen
65211ecbb6
Characters that are outside are rendered under particles -> creatures can be hidden by smoke from hydrothermal vents.
2017-08-22 19:06:29 +03:00
Joonas Rikkonen
4d40f5d483
Submarines, items and characters that reach a depth of 300,000 units (~4000 m) are automatically disabled. Avoids the unnecessary cost of updating entities that are way too deep to be reached by anyone.
2017-08-13 20:00:18 +03:00
Joonas Rikkonen
0159cc3f25
Submarine position syncing fix:
...
The position correction logic only moved the submarine that's being synced and the subs docked directly to it, but not the subs docked to the docked subs. This caused severe physics issues with some specific subs, for example mirrored HSE Kullervo Carriers tended to get launched downwards at a game-breaking speed.
2017-08-07 23:14:25 +03:00
Joonas Rikkonen
64ad5e5003
Removed unnecessary using directives
2017-07-05 18:35:09 +03:00
Joonas Rikkonen
e15f5a881b
Merge branch 'dedicated-server' (TODO: make sure I didn't break anything)
...
Conflicts:
Barotrauma/Barotrauma.csproj
Barotrauma/BarotraumaShared/Source/Characters/AI/AIController.cs
Barotrauma/BarotraumaShared/Source/Characters/AI/EnemyAIController.cs
Barotrauma/BarotraumaShared/Source/Characters/AICharacter.cs
Barotrauma/BarotraumaShared/Source/Characters/Animation/Ragdoll.cs
Barotrauma/BarotraumaShared/Source/Characters/Attack.cs
Barotrauma/BarotraumaShared/Source/Characters/Character.cs
Barotrauma/BarotraumaShared/Source/Characters/CharacterNetworking.cs
Barotrauma/BarotraumaShared/Source/Characters/Limb.cs
Barotrauma/BarotraumaShared/Source/Events/MonsterEvent.cs
Barotrauma/BarotraumaShared/Source/Map/Explosion.cs
2017-06-30 21:02:52 +03:00
juanjp600
4d225c65f2
Updated to MonoGame 3.6 + Directory refactor
...
- Barotrauma's projects are in the Barotrauma directory
- All libraries are in the Libraries directory
- MonoGame is now managed by NuGet, rather than referenced from the installed files (TODO: consider using PCL for easier cross-platform development?)
- NuGet libraries are not included in the repo, as getting the latest versions automatically should be preferred
- Removed Content/effects.mgfx as it didn't seem to be used anywhere
- Removed some references to Subsurface directory
- Renamed Launcher2 to Launcher
2017-06-27 09:52:57 -03:00