157 Commits

Author SHA1 Message Date
JohnCorby
55a4de8e77 hasAuthority -> isOwned 2023-05-08 11:27:32 -07:00
_nebula
b7cdbf13cd Update SyncBase.cs 2023-02-02 11:29:30 +00:00
JohnCorby
4257b40461 migrate syncbase 2022-05-03 22:04:33 -07:00
JohnCorby
d0cce35103 use send initial state event 2022-04-06 11:35:40 -07:00
JohnCorby
b112d196f7 SyncBase: increase pause timer delay 2022-03-29 15:25:32 -07:00
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
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
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
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
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
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
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
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
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
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 f89000f7ac75af203e6b440ae480e8189344d2c7.
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
Mister_Nebula
4b75ff81d3 update flashlight, signalscope and roasting stick 2022-02-02 11:58:00 +00:00
Mister_Nebula
adbb052a92 Merge branch 'dev' into echoes-of-the-eye 2022-01-30 09:27:43 +00:00
JohnCorby
a3a2a41f59 fix SmartSmoothDamp 2022-01-29 02:54:45 -08:00
JohnCorby
13f5e2ebc3 - no more initial state for qsb network behaviours because it is dumb and i hate it
- spawn authqueue objects with no authority for real instead of with server authority
2022-01-27 03:15:52 -08:00
JohnCorby
65f71678a6 remove unneeded check 2022-01-27 02:15:42 -08:00