Commit Graph

907 Commits

Author SHA1 Message Date
juanjp600 44e12ffed2 Basic player input syncing
There's currently a bug where the inputs might be read out of order or more than once, which leads to desync. I'll feel really dumb when I find what's going on here.

Also, I'm using placeholder player spawning because CharacterInfo doesn't seem to be fully functional yet.
2016-09-22 21:20:46 -03:00
Regalis ccb50ca28f Particle start color is initialized correctly, small particle collision fix 2016-09-22 21:24:40 +03:00
Regalis 0ba69a3472 Using nonpremultiplied alpha when drawing damaged wall sections (-> no artifacts around windows anymore), particle collision optimization 2016-09-22 18:14:16 +03:00
juanjp600 edab86f730 Character freezing + Misc fixes 2016-09-21 16:46:12 -03:00
juanjp600 3314c8501c Merged branch master into new-netcode 2016-09-21 14:30:49 -03:00
Regalis f21000124b 0.5 sec delay when switching from swimming to walking or vice versa (prevents rapid switches between swimming/walking if the water level is fluctuating around the minimum swimming depth) 2016-09-21 20:14:24 +03:00
Regalis 721f4ff5a6 Particle system improvements:
- particles can collide with the outer walls of the sub
- drag + waterdrag parameters
- fixed particles "twitching" when the submarine is moving fast
- submarine velocity only affects the initial velocity of the particles (i.e. accelerating the sub doesn't automatically accelerate them)
2016-09-21 19:45:20 +03:00
Regalis b01b52172a Topwindow sprite fix, fixed null reference exception when welding/cutting walls that aren't part of a sub 2016-09-21 19:39:00 +03:00
Regalis 96a61ab2ea HUDProgressBars are drawn over the LOS effect, progressbar not displayed when attempting to weld/cut platforms 2016-09-20 19:36:58 +03:00
Regalis 5918e845ac Progress bars that show the health of wall sections when welding/cutting 2016-09-20 18:40:30 +03:00
juanjp600 f3fbbb8aec Fixed bug with GUIComponent children changing order in parent's list 2016-09-19 22:02:00 -03:00
Regalis f8368f464a Walls have an additional background sprite below the destructible sprite, separate parameters for rgb and alpha lerping in the damage shader 2016-09-19 21:51:37 +03:00
juanjp600 c97f729fb3 Added option to toggle vsync
For the ultimate PC master race experience.

Also calling water scroll on every frame with deltatime instead of being called at fixed intervals, making it look smoother as framerate increases.
2016-09-18 18:24:50 -03:00
juanjp600 5da2bc9523 Fixed water scroll speed 2016-09-18 15:35:35 -03:00
juanjp600 4cd6888622 Added some missing UpdateGUI implementations 2016-09-18 11:41:17 -03:00
juanjp600 33641ead3e Fixed timestep for some GUI & input code
Fixed timestep only applied to the physics simulation, but input and GUI updates were not being handled properly, so here's some progress into fixing them.
2016-09-18 11:03:52 -03:00
juanjp600 179c0424d7 Disabled vsync + added input list to Character
Not everything breaks without vsync. GUI updates need to be fixed.
2016-09-16 15:54:11 -03:00
juanjp600 e4f11e4679 Merged branch master into new-netcode 2016-09-16 13:45:19 -03:00
Regalis b24359464b Wall damage shader testing (WIP) 2016-09-16 14:47:08 +03:00
Regalis 0265d075a5 Possible to zoom out further when debugdraw is on, vents don't replenish oxygen when underwater, monster missions & events ignore spawnpoints that are too close to the main sub 2016-09-14 20:25:09 +03:00
Regalis 7f543c394a More background sprites again, sprite commonness can vary between different level types 2016-09-14 19:54:03 +03:00
Regalis eae854abbc More background sprites (+ some sprites swing slightly, sprites are less likely to be placed in unreachable places) 2016-09-13 21:23:37 +03:00
Regalis fa15428ed2 The entrances and exits of the levels have more variety (not always a straight vertical tunnel) 2016-09-13 18:55:20 +03:00
Regalis c6105afc80 A separate class for parameters used by the level generator, different "level types" with configurable parameters 2016-09-12 20:48:43 +03:00
Regalis c20ffd2431 Read/write methods for notifying the clients about a spawned character 2016-09-10 14:56:55 +03:00
Regalis 4fbb83e2e7 The server can start the game 2016-09-09 19:49:13 +03:00
juanjp600 4763dac21b Merged branch master into new-netcode 2016-09-08 15:34:40 -03:00
Regalis 1f7bf250b5 asdfasdf 2016-09-08 21:26:15 +03:00
Regalis 93a3a55fb1 Oxygen isn't distributed through gaps that are underwater (-> air pockets) 2016-09-08 21:23:44 +03:00
Regalis 4bf01aeba7 Improved MiniMap: shows hull integrity and oxygen levels, and can be configured to only show oxy/water data if the rooms have detectors in place
+ itemprefab "aliases" (allows changing item names while keeping backwards compatibility with older sub files)
2016-09-08 20:21:55 +03:00
Regalis 7be5474617 Autopilot tweaking 2016-09-08 20:14:57 +03:00
juanjp600 1b85dc3646 Fixed lobby chat 2016-09-08 09:43:44 -03:00
juanjp600 7c9ae5134c Move chat message serialization to the ChatMessage class 2016-09-07 21:41:59 -03:00
juanjp600 404c506662 Merge remote-tracking branch 'refs/remotes/barotrauma/master'
Conflicts:
	Subsurface/Properties/AssemblyInfo.cs
	Subsurface/Source/Characters/Character.cs
2016-09-07 17:35:18 -03:00
juanjp600 ba388ae298 Merge remote-tracking branch 'refs/remotes/barotrauma/new-netcode'
Conflicts:
	Subsurface/Source/Networking/GameServer.cs
2016-09-07 17:33:45 -03:00
juanjp600 bfd8bc6b35 Server serialization functions require client 2016-09-07 17:32:20 -03:00
Regalis 94cec67a2b Characters that aren't inside a hull or can't enter subs won't attempt to play a walking animation 2016-09-07 20:18:52 +03:00
Regalis ba77ed717a Fixed the previous commit (clients don't increment lastUpdateID when changing values in the lobby) 2016-09-07 19:59:33 +03:00
Regalis ccf6e6d544 Syncing game mode, mission type, traitor setting, level seed & autorestart 2016-09-07 19:17:31 +03:00
Regalis 9463b18993 Huskification bugfixes 2016-09-07 18:19:42 +03:00
Regalis d884f23a72 v5.1.3: the upper border of the level is one continuous body instead of two separate bodies at the entrance and exit 2016-09-07 15:18:01 +03:00
Regalis e61e40547b Improved autopilot 2016-09-06 19:14:27 +03:00
juanjp600 a02931054a Sync sub selection 2016-09-05 17:15:41 -03:00
juanjp600 95118ed6ab Merge remote-tracking branch 'refs/remotes/barotrauma/master'
Conflicts:
	Subsurface/Barotrauma.csproj
2016-09-05 13:28:21 -03:00
Regalis 53b3ef533e Moved the whitelist UI to server settings, GUITextBoxes can't be selected through other UI elements anymore 2016-09-05 18:12:56 +03:00
Regalis 98b04f1147 Merge branch 'master' of https://gitlab.com/poe.regalis/barotrauma
Conflicts:
	Subsurface/Barotrauma.csproj
2016-09-04 19:24:00 +03:00
Regalis 3b394976e4 A new monster, some changes to fish animation logic (creatures don't need to have a head, more pronounced swimming movement, option to select the position where steering forces are applied) 2016-09-04 19:18:44 +03:00
juanjp600 bbc4a53e78 Merged branch master into new-netcode 2016-09-03 21:39:03 -03:00
juanjp600 ef49a946c9 Fixed whitelist crashing server init when not enabled in file 2016-09-03 21:38:02 -03:00
juanjp600 2ec26d783c Merged branch master into new-netcode 2016-09-03 19:00:40 -03:00