Commit Graph

287 Commits

Author SHA1 Message Date
JohnCorby
c5cae127bc QSBNetworkBehaviour: DontDestroyOnLoad 2022-03-14 02:34:04 -07:00
JohnCorby
06c6ae179b world object link: further improve, implement for raft 2022-03-14 01:52:49 -07:00
JohnCorby
99cf46a23f RigidbodySync.GetFromAttached: store AttachedRigidbody.GetPosition() in local var 2022-03-11 01:06:34 -08:00
JohnCorby
ad2c84acb2 Revert "use GetType() instead of GetType().Name in strings, since they return the same thing"
This reverts commit c3e77d24
2022-03-11 00:58:14 -08:00
JohnCorby
c3e77d2449 use GetType() instead of GetType().Name in strings, since they return the same thing 2022-03-06 01:37:30 -08:00
JohnCorby
e4da50a656 solution-wide: file-scoped namespaces 2022-03-02 19:46:33 -08:00
JohnCorby
fc1ff0210a SyncBase: use smaller values for interp stop check 2022-02-27 07:31:44 -08:00
JohnCorby
2154a22624 make the child thing actually work 2022-02-27 06:52:09 -08:00
JohnCorby
3dcb462ac4 revert QSBNetworkTransformChild crap 2022-02-27 05:27:07 -08:00
JohnCorby
62ccfd4c11 guh 2022-02-27 05:25:39 -08:00
JohnCorby
a8fba743f6 Revert "solution wide: use file-scoped namespace" 2022-02-27 05:25:39 -08:00
JohnCorby
a49ffb7cfa guh 2022-02-27 05:25:39 -08:00
JohnCorby
eaf5e32f03 SyncBase: only interpolate with non-auth 2022-02-27 05:25:39 -08:00
JohnCorby
b49e8f7cc9 PlayerTransformSync: check children changed 2022-02-26 20:47:52 -08:00
JohnCorby
5cae7b8bec angler/jelly: allow inactive 2022-02-25 23:18:53 -08:00
JohnCorby
1b20633295 interpolation for real 2022-02-25 23:18:53 -08:00
JohnCorby
98955dc29b fix derived transform syncs 2022-02-25 23:18:52 -08:00
JohnCorby
9ad2568499 add interpolation back 2022-02-25 23:18:52 -08:00
JohnCorby
9548ea6d87 Sync: get from attached before checking HasChanged, and apply to attached after deserializing 2022-02-25 23:18:52 -08:00
JohnCorby
6bc91d36d4 baba booey 2022-02-25 23:18:52 -08:00
JohnCorby
2f2037bcc9 SyncBase: move IsValid to QSBNetworkBehaviour, use that to guard Serialize/Deserialize 2022-02-25 23:18:51 -08:00
JohnCorby
bec6b5f63c SyncBase: AllObjectsReady in CheckValid 2022-02-25 23:18:51 -08:00
JohnCorby
08cfec35ff SyncBase: interpolate even when you having authority, in case an authority switch happens 2022-02-25 23:18:50 -08:00
JohnCorby
c8d2967e20 comment 2022-02-25 23:18:49 -08:00
JohnCorby
f66d192d66 okay nvm on the interpolate bs 2022-02-25 23:18:49 -08:00
JohnCorby
3a155a6319 player objects: just set non-local position/rotation like the rest of em 2022-02-25 23:18:49 -08:00
JohnCorby
ab02a30a91 uhh 2022-02-25 23:18:49 -08:00
JohnCorby
4ef9254817 SetReferenceTransform: also set transform.position/rotation 2022-02-25 23:18:48 -08:00
JohnCorby
4ce58220b1 QSBSectorManager: update reference sector only when attached object is active 2022-02-25 23:18:48 -08:00
JohnCorby
005f6886ab testing 2022-02-25 23:18:48 -08:00
JohnCorby
9b94f54a45 WorldObjectType -> WorldObjectScene 2022-02-25 23:18:47 -08:00
JohnCorby
182678c4bc solution wide: use file-scoped namespace 2022-02-25 23:18:46 -08:00
JohnCorby
c233fb546b SetReferenceTransform: check for AttachedTransform notnull 2022-02-16 21:50:39 -08:00
JohnCorby
7194140891 use distance change threshold to change rotation as well 2022-02-16 21:46:16 -08:00
JohnCorby
a32c0ce166 SyncBase: rename leeway variables 2022-02-16 21:22:04 -08:00
JohnCorby
b23c5ac1aa SyncBase: oops on interpolation, and dont return after SafeUninit 2022-02-16 20:45:49 -08:00
JohnCorby
43b4d2888b comment 2022-02-16 20:21:34 -08:00
JohnCorby
d53735f160 transform sync: be consistent with position/rotation change threshold 2022-02-16 20:21:34 -08:00
JohnCorby
adb039d34e SyncBase: also do smart smoothing for rotation 2022-02-16 20:21:34 -08:00
JohnCorby
b3ed3ec7d9 SyncBase: only base.Update after GetFromAttached 2022-02-16 19:36:13 -08:00
JohnCorby
e119920db9 cache ReferenceTransform.GetAttachedOWRigidbody() into ReferenceRigidbody 2022-02-16 18:14:40 -08:00
JohnCorby
83bec7b75f optimization: MinBy and MaxBy instead of sorting 2022-02-16 18:14:40 -08:00
JohnCorby
10471ee6c7 orbs: update auth queue since they're spawned with server authority 2022-02-12 21:27:22 -08:00
JohnCorby
438d3a3d0e set scale of parented SyncBase 2022-02-12 20:16:37 -08:00
JohnCorby
c1be2e4d22 pause timer if we fail to init or uninit 2022-02-08 14:36:47 -08:00
JohnCorby
bfafb9ea84 Revert "SyncBase: always set IsInitialized/IsValid when Init/Uninit, even when an exception happened"
This reverts commit f89000f7ac.
2022-02-03 00:03:25 -08:00
JohnCorby
f89000f7ac SyncBase: always set IsInitialized/IsValid when Init/Uninit, even when an exception happened 2022-02-02 22:44:40 -08:00
JohnCorby
00a81f7bd9 SyncBase.Uninit: don't set stuff to null 2022-02-02 22:42:41 -08:00
JohnCorby
c06cdb8906 organize DebugSettings 2022-02-02 22:00:49 -08:00
JohnCorby
b4bab95474 remove try/catch in SyncBase.Init, i promise you don't want this 2022-02-02 19:22:01 -08:00