Commit Graph

147 Commits

Author SHA1 Message Date
JohnCorby
235ed1203b baba booey use NetworkReader and NetworkWriter 2022-01-13 23:40:15 -08:00
Mister_Nebula
ef4a83e12d cleanup 2022-01-01 22:19:10 +00:00
JohnCorby
a4fb9ee5c9 more teleport info, just in case 2021-12-29 01:09:58 -08:00
JohnCorby
d030d9746f world objects dont need to know their manager. make GetWorldObjects to get all world objects from QSBWorldSync 2021-12-28 16:10:58 -08:00
Mister_Nebula
2c903f079a aaaaaaaaa 2021-12-28 18:06:34 +00:00
JohnCorby
6dd20d4113 Merge branch 'dev' into message-conversion 2021-12-27 13:41:51 -08:00
Mister_Nebula
1b20802a13 add null probe check to qsbmeteor 2021-12-27 21:33:53 +00:00
JohnCorby
108fe3da04 greatly simplified nomai text object/message 2021-12-26 20:10:38 -08:00
JohnCorby
7acd63e339 remove default ctors from messages 2021-12-26 18:55:54 -08:00
JohnCorby
e00aa13461 make getting world object from id or unity object an extension method (and rename) 2021-12-25 22:45:25 -08:00
JohnCorby
e085e7bcc2 ship hull events (remove hull impact since it had empty OnReceive) 2021-12-25 17:15:22 -08:00
JohnCorby
b59668490a change Events namespace to Messages 2021-12-23 02:17:56 -08:00
JohnCorby
513741112a orbs 2021-12-23 01:51:22 -08:00
JohnCorby
41d85aa077 meteor patches - remove code duplication 2021-12-23 01:29:11 -08:00
JohnCorby
506a73f5a8 meteors 2021-12-23 01:24:57 -08:00
JohnCorby
35f0316d5b fragment resync 2021-12-22 22:59:08 -08:00
JohnCorby
3ef26a6da7 implement (might be wrong for some, like maybe AirlockManager? not sure if GhostAirlock shows up in the eye) 2021-12-20 18:41:12 -08:00
JohnCorby
41d58785e9 remove unused imports 2021-12-20 17:53:11 -08:00
JohnCorby
e96c67df3c Merge branch 'dev' into initial-eye-stuff
# Conflicts:
#	QSB/Events/EventNames.cs
#	QSB/QSBCore.cs
2021-12-20 17:50:06 -08:00
Mister_Nebula
a2a4d5d709 add picking up instruments, starting instruments playing
fixed #419
fixed #418
2021-12-19 12:37:44 +00:00
JohnCorby
4c535fd544 rename relative transform stuff 2021-12-13 16:02:31 -08:00
JohnCorby
2414efd65f set AttachedObject and ObjectId in QSBWorldSync.cs, meaning many Init()s can be removed 2021-12-11 14:38:54 -08:00
Mister_Nebula
a9fc152ff8 replace RequireWorldObjectsReady with property 2021-12-05 11:03:09 +00:00
Mister_Nebula
88084bb24d add RequireWorldObjectsReady check to all events 2021-12-04 16:39:37 +00:00
Mister_Nebula
0bd60ddb68 rename variables, fix QSBOWItem (again) 2021-12-04 09:51:27 +00:00
JohnCorby
914a05916d removed world object bools from qsbcore since they're duplicates 2021-12-02 02:44:34 -08:00
JohnCorby
c760fe2c41 add support for delayed readiness in WorldObject and WorldObjectManager
(also slightly optimize qsbworldsync)
2021-12-02 02:44:33 -08:00
JohnCorby
b9eee5c6b5 use orig method if world objects not ready 2021-12-02 02:29:54 -08:00
JohnCorby
99d0eab098 fix stupid nres 2021-11-30 22:27:30 -08:00
Mister_Nebula
f612d2b37b remove EventType 2021-11-29 22:26:32 +00:00
Mister_Nebula
3860b2aacc add newlines 2021-11-25 15:38:05 +00:00
Mister_Nebula
eb79e32491 remove excess newlines 2021-11-25 15:37:38 +00:00
Mister_Nebula
03f615525b cleanup 2021-11-25 15:32:34 +00:00
JohnCorby
d8bfdaee2e Merge branch 'dev' into some-cleanup 2021-11-22 02:07:03 -08:00
Mister_Nebula
ae8bf9a8b2 aaaaaaaaaa 2021-11-20 19:49:50 +00:00
JohnCorby
0fe6dce0db remove IntermediaryTransform 2021-11-19 01:01:51 -08:00
JohnCorby
161209535b we dont really need to transform sync meteors 2021-11-18 22:42:08 -08:00
JohnCorby
17811547fa the bug is fixed 2021-11-18 22:28:41 -08:00
JohnCorby
e76d9eb46b optimize imports 2021-11-18 01:07:27 -08:00
JohnCorby
9d33498c64 ACTUALLY fixed null bug in resync event 2021-11-18 00:42:35 -08:00
JohnCorby
95471f8753 better fix for that nre in transform sync 2021-11-18 00:01:26 -08:00
JohnCorby
15a973d109 fixed null bug in resync event 2021-11-17 20:31:32 -08:00
JohnCorby
79fb2cfe0b fixes goofy errors when you died and reset 2021-11-17 03:06:02 -08:00
JohnCorby
697f7d54a1 oh yeah i can do it here too 2021-11-17 02:38:27 -08:00
JohnCorby
86684b10ad neb's idea is wayyy better 2021-11-17 02:36:28 -08:00
JohnCorby
bd93ea92ba push the delays way up because i hate myself 2021-11-17 02:24:03 -08:00
JohnCorby
f8e7f868ac oops 2021-11-16 15:27:17 -08:00
JohnCorby
c899e2aaa6 dont sync all that crap on non-detachable fragments 2021-11-16 15:26:30 -08:00
JohnCorby
aff7d102b4 dont touch DebrisLeash in non-fragment or in DetachableConnector since that's not a real fragment and doesnt have associated FragmentIntegrity 2021-11-16 15:23:29 -08:00
JohnCorby
d3735a5b60 hack to get DetachableFragment._fragmentIntegrity to not be null after Detach 2021-11-16 12:30:26 -08:00
Will Corby
6f0346f08d
Update FragmentResyncEvent.cs
lol
2021-11-16 01:08:24 -08:00
JohnCorby
26ed8dd772 always sync leashlength 2021-11-15 18:05:34 -08:00
JohnCorby
08d7671234 precalculate leash length immediately and use that 2021-11-15 18:02:43 -08:00
JohnCorby
1ee4de154a forgot to write these 2021-11-15 17:08:59 -08:00
JohnCorby
a40d8a2cf5 undetached fragment does not have a rigidbody 2021-11-15 17:08:15 -08:00
JohnCorby
d11591b904 wabba dabba doo wip 2021-11-15 02:39:06 -08:00
JohnCorby
558221491e resync event done 2021-11-15 00:29:36 -08:00
JohnCorby
e4b54452a4 Merge branch 'dev' into meteors
# Conflicts:
#	QSB/TimeSync/TimeSyncUI.cs
#	QSB/WorldSync/QSBWorldSync.cs
2021-11-14 04:08:37 -08:00
JohnCorby
53093ddd66 revert GetUnityObjects thingy 2021-11-14 03:50:59 -08:00
JohnCorby
16c769d9b3 check if not already thru white hole 2021-11-14 03:32:00 -08:00
JohnCorby
a2cf5d0cf9 sync fragments on join. bad 2021-11-14 03:30:53 -08:00
JohnCorby
73853b0ced remove debug log spam 2021-11-14 00:57:45 -08:00
JohnCorby
51cabb962c we dont really cares what happens to the fragments after they detach, so i can afford to let them to desynced. it shouldnt be too drastic. 2021-11-14 00:45:25 -08:00
JohnCorby
3b4a8682be lol 2021-11-13 23:49:14 -08:00
JohnCorby
12c1369c20 whoops i was looking at wrong thing for probe 2021-11-13 23:43:13 -08:00
JohnCorby
df7bc49236 special impact message for remote player and probe 2021-11-13 23:29:21 -08:00
JohnCorby
75f614f953 do same thing with angler transform sync, in order to lower updates 2021-11-13 22:16:01 -08:00
JohnCorby
6f1493eefa impact debug logging 2021-11-13 22:01:04 -08:00
JohnCorby
9bbc5f7328 bruh 2021-11-13 21:41:53 -08:00
JohnCorby
dc4778de3d dont touch the meteor pool/launched meteor pool at all on client 2021-11-13 21:39:05 -08:00
JohnCorby
eca53e91d1 make sure integrity/origintegrity are synced on join 2021-11-13 21:15:01 -08:00
JohnCorby
bc40e74d3b implement method nebula described 2021-11-13 20:41:46 -08:00
JohnCorby
8ce1f706f8 only update transform from host after receiving the transform, instead of every frame 2021-11-13 19:49:45 -08:00
JohnCorby
082996cb61 wip 2021-11-13 16:57:06 -08:00
JohnCorby
8e7ff076bf It begins. 2021-11-13 03:41:01 -08:00
JohnCorby
53bf6097fe remove unused imports 2021-11-13 02:30:48 -08:00
JohnCorby
1946ba1787 lol 2021-11-13 01:54:55 -08:00
JohnCorby
cef8cf23e5 changed all Resources.FindObjectsOfTypeAll to QSBWorldSync.GetUnityObjects, which doesnt include prefabs 2021-11-13 00:42:59 -08:00
JohnCorby
66d1f2bed9 oops 2021-11-13 00:11:07 -08:00
JohnCorby
5f4368c1e7 just sync prelaunch/launch, stop worrying about impact and collisions for now 2021-11-13 00:09:41 -08:00
JohnCorby
4e4bad6885 we do a little reworking 2021-11-12 22:34:50 -08:00
JohnCorby
868290ac1b even more debug logging 2021-11-12 02:28:59 -08:00
JohnCorby
94e5405314 include flag and pool index when launching meteor 2021-11-12 02:24:43 -08:00
JohnCorby
fbc4af5ce7 wtf 2021-11-12 01:55:43 -08:00
JohnCorby
ca9a4009c0 Merge remote-tracking branch 'origin/meteors' into meteors
# Conflicts:
#	QSB/MeteorSync/WorldObjects/QSBMeteor.cs
2021-11-12 01:54:31 -08:00
JohnCorby
c743b9da75 handle null hitObject in patch 2021-11-12 01:52:16 -08:00
JohnCorby
8b0d621201 disable collision from triggering impact code on clients 2021-11-11 02:42:57 -08:00
JohnCorby
51402612a1 disable collision from triggering impact code on clients 2021-11-11 02:17:12 -08:00
JohnCorby
5f5e04e29f rework - dont sync transform 2021-11-11 02:09:22 -08:00
JohnCorby
f1d45c9e8c use variable to denote when to impact, instead of enabling/disabling collision 2021-11-11 00:44:52 -08:00
JohnCorby
fdeaf8111a make impacting work 2021-11-10 23:57:04 -08:00
JohnCorby
15af7e1ce3 oops that bug also is on the angler fish lol 2021-11-10 23:30:30 -08:00
JohnCorby
a371c71415 dont process events if world objects arent ready yet lol 2021-11-10 21:59:32 -08:00
JohnCorby
495f814739 easier logging 2021-11-10 21:51:14 -08:00
JohnCorby
292d4ce5f5 more progress 2021-11-10 21:38:28 -08:00
JohnCorby
0c897ad3bd progress 2021-11-10 21:13:49 -08:00
JohnCorby
15eb5fa804 meteor transform sync 2021-11-10 19:02:04 -08:00