diff --git a/SCHIZO/Creatures/Tutel/TutelGravityInterop.cs b/SCHIZO/Creatures/Tutel/TutelGravityInterop.cs new file mode 100644 index 00000000..f14e32eb --- /dev/null +++ b/SCHIZO/Creatures/Tutel/TutelGravityInterop.cs @@ -0,0 +1,29 @@ +namespace SCHIZO.Creatures.Tutel; + +partial class TutelGravityInterop +{ + private void Awake() + { +#if BELOWZERO + LandCreatureGravity lcg = gameObject.AddComponent(); + lcg.onSurfaceTracker = onSurfaceTracker as OnSurfaceTracker; + lcg.liveMixin = liveMixin as LiveMixin; + lcg.creatureRigidbody = creatureRigidbody; + lcg.worldForces = worldForces as WorldForces; + lcg.bodyCollider = bodyCollider; + lcg.pickupable = pickupable as Pickupable; + lcg.downforce = downforce; + lcg.aboveWaterGravity = aboveWaterGravity; + lcg.underWaterGravity = underWaterGravity; + lcg.applyDownforceUnderwater = applyDownforceUnderwater; + lcg.canGoInStasisUnderwater = canGoInStasisUnderwater; + lcg.trackSurfaceCollider = trackSurfaceCollider; +#else + CaveCrawlerGravity ccg = gameObject.AddComponent(); + ccg.caveCrawler = caveCrawler; + ccg.liveMixin = liveMixin as LiveMixin; + ccg.crawlerRigidbody = creatureRigidbody; +#endif + Destroy(this); + } +} diff --git a/SCHIZO/Patches/DisableMoreComponentsInWaterPark.cs b/SCHIZO/Patches/DisableMoreComponentsInWaterPark.cs index 21bb63c7..8867a4c6 100644 --- a/SCHIZO/Patches/DisableMoreComponentsInWaterPark.cs +++ b/SCHIZO/Patches/DisableMoreComponentsInWaterPark.cs @@ -3,6 +3,7 @@ using System.Linq; using SCHIZO.Attributes; using SCHIZO.Creatures.Components; +using SCHIZO.Creatures.Ermfish; using SCHIZO.Events.Ermcon; namespace SCHIZO.Patches; @@ -13,15 +14,9 @@ internal static class DisableMoreComponentsInWaterPark [InitializeMod] public static void AddComponentsToDisable() { - // uncomment this if you really *really* care about 10ns - //int len = WaterParkCreature.behavioursToDisableInside.Length; - //Type[] arr = new Type[len + 3]; - //WaterParkCreature.behavioursToDisableInside.CopyTo(arr, 0); - //arr[len] = typeof(CarryCreature); - //arr[len + 1] = typeof(ErmconAttendee); - //arr[len + 2] = typeof(ErmconPanelist); Type[] arr = WaterParkCreature.behavioursToDisableInside.Concat([ typeof(CarryCreature), + typeof(ErmStack), typeof(ErmconAttendee), typeof(ErmconPanelist) ]).ToArray(); diff --git a/Unity/Assets/Mod/Tutel/Tutel.prefab b/Unity/Assets/Mod/Tutel/Tutel.prefab index c1e19a57..ecd6cf97 100644 --- a/Unity/Assets/Mod/Tutel/Tutel.prefab +++ b/Unity/Assets/Mod/Tutel/Tutel.prefab @@ -30,6 +30,100 @@ Transform: m_Father: {fileID: 8786956122394929412} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 18, y: -16, z: 274} +--- !u!1 &3020011672160239600 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8786956122394929412} + m_Layer: 0 + m_Name: BelowZero + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &8786956122394929412 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3020011672160239600} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 374628843016702387} + - {fileID: 6415616826435741232} + - {fileID: 1462892581940854930} + m_Father: {fileID: 4486286122742271350} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &3643430878512789362 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5336982647614161068} + m_Layer: 0 + m_Name: Subnautica + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5336982647614161068 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3643430878512789362} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 9007695053246786571} + m_Father: {fileID: 4486286122742271350} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &4292821476846217533 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1462892581940854930} + m_Layer: 0 + m_Name: rightHandIKTarget_BZ + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1462892581940854930 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4292821476846217533} + m_LocalRotation: {x: -0.76154846, y: -0.43535808, z: -0.13465247, w: 0.4608428} + m_LocalPosition: {x: -0.08, y: 0.11, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 8786956122394929412} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 305, y: 200, z: 110} --- !u!114 &-2056190791625996711 MonoBehaviour: m_ObjectHideFlags: 0 @@ -149,7 +243,7 @@ MonoBehaviour: attachSounds: event:/SCHIZO/creatures/tutel/get_carried/attach carrySounds: event:/SCHIZO/creatures/ermfish/get_carried/carried detachSounds: ---- !u!114 &2898540927015828278 +--- !u!114 &2386618602861557218 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -158,12 +252,13 @@ MonoBehaviour: m_GameObject: {fileID: 936897676119936064} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b6857cf7f47a47c380c92c2d20d2d369, type: 3} + m_Script: {fileID: 11500000, guid: 77d1c9f059cf1b64e83c4eb4c1226e05, type: 3} m_Name: m_EditorClassIdentifier: - onSurfaceTracker: {fileID: 942926063836916640} - liveMixin: {fileID: 1989495301154876912} creatureRigidbody: {fileID: 5316937864852920292} + liveMixin: {fileID: 1989495301154876912} + caveCrawler: {fileID: 5052266823406894552} + onSurfaceTracker: {fileID: 942926063836916640} worldForces: {fileID: 760856639103313813} bodyCollider: {fileID: 896726506677194742} pickupable: {fileID: 7004812872329714809} @@ -331,21 +426,6 @@ MonoBehaviour: method: PlayOneShot arguments: - 2 ---- !u!114 &5910127964089605354 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 936897676119936064} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 38244ece84bf4e4d8fade01437348a95, type: 3} - m_Name: - m_EditorClassIdentifier: - caveCrawler: {fileID: 5052266823406894552} - liveMixin: {fileID: 1989495301154876912} - crawlerRigidbody: {fileID: 5316937864852920292} --- !u!114 &6151193553991328253 MonoBehaviour: m_ObjectHideFlags: 0 @@ -363,100 +443,6 @@ MonoBehaviour: followParent: 1 restartOnPlay: 0 debug: 0 ---- !u!1 &3020011672160239600 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 8786956122394929412} - m_Layer: 0 - m_Name: BelowZero - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &8786956122394929412 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3020011672160239600} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 374628843016702387} - - {fileID: 6415616826435741232} - - {fileID: 1462892581940854930} - m_Father: {fileID: 4486286122742271350} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &3643430878512789362 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5336982647614161068} - m_Layer: 0 - m_Name: Subnautica - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &5336982647614161068 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3643430878512789362} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 9007695053246786571} - m_Father: {fileID: 4486286122742271350} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &4292821476846217533 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1462892581940854930} - m_Layer: 0 - m_Name: rightHandIKTarget_BZ - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1462892581940854930 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4292821476846217533} - m_LocalRotation: {x: -0.76154846, y: -0.43535808, z: -0.13465247, w: 0.4608428} - m_LocalPosition: {x: -0.08, y: 0.11, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 8786956122394929412} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 305, y: 200, z: 110} --- !u!1 &5958086965960221578 GameObject: m_ObjectHideFlags: 0 @@ -1135,34 +1121,28 @@ PrefabInstance: - {fileID: 8106314337621275068, guid: 5ff80f47f2822bb438251c8a7a1370ca, type: 3} - {fileID: -2914789318229432670, guid: 5ff80f47f2822bb438251c8a7a1370ca, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 5ff80f47f2822bb438251c8a7a1370ca, type: 3} ---- !u!4 &1139033297552060113 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 4962070890995002727, guid: 5ff80f47f2822bb438251c8a7a1370ca, - type: 3} - m_PrefabInstance: {fileID: 5409519764626113462} - m_PrefabAsset: {fileID: 0} ---- !u!114 &2543002060771256019 stripped +--- !u!114 &6760105382927116189 stripped MonoBehaviour: - m_CorrespondingSourceObject: {fileID: -1704340371831134875, guid: 5ff80f47f2822bb438251c8a7a1370ca, + m_CorrespondingSourceObject: {fileID: 1640086072332198955, guid: 5ff80f47f2822bb438251c8a7a1370ca, type: 3} m_PrefabInstance: {fileID: 5409519764626113462} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 936897676119936064} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a82ce4cd26cd43a89b02d266a5c1fc6b, type: 3} + m_Script: {fileID: 11500000, guid: 08daab3bf5174f02a190e7096de2f66c, type: 3} m_Name: m_EditorClassIdentifier: ---- !u!114 &4243275342166359073 stripped +--- !u!114 &7324820681358416057 stripped MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 8210446819742810007, guid: 5ff80f47f2822bb438251c8a7a1370ca, + m_CorrespondingSourceObject: {fileID: 3365459996886375183, guid: 5ff80f47f2822bb438251c8a7a1370ca, type: 3} m_PrefabInstance: {fileID: 5409519764626113462} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 936897676119936064} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f419283b15274b87be363a33ff631238, type: 3} + m_Script: {fileID: 11500000, guid: 08298562675c4c18ba4b1d9744b135e1, type: 3} m_Name: m_EditorClassIdentifier: --- !u!114 &9040879625508112509 stripped @@ -1177,58 +1157,64 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 49a33a91de98493e82c6af9b1a6f232c, type: 3} m_Name: m_EditorClassIdentifier: ---- !u!4 &4486286122742271350 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 8453261883060768448, guid: 5ff80f47f2822bb438251c8a7a1370ca, - type: 3} - m_PrefabInstance: {fileID: 5409519764626113462} - m_PrefabAsset: {fileID: 0} ---- !u!114 &7324820681358416057 stripped +--- !u!114 &4243275342166359073 stripped MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 3365459996886375183, guid: 5ff80f47f2822bb438251c8a7a1370ca, + m_CorrespondingSourceObject: {fileID: 8210446819742810007, guid: 5ff80f47f2822bb438251c8a7a1370ca, type: 3} m_PrefabInstance: {fileID: 5409519764626113462} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 936897676119936064} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 08298562675c4c18ba4b1d9744b135e1, type: 3} + m_Script: {fileID: 11500000, guid: f419283b15274b87be363a33ff631238, type: 3} m_Name: m_EditorClassIdentifier: ---- !u!114 &6760105382927116189 stripped +--- !u!114 &2543002060771256019 stripped MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 1640086072332198955, guid: 5ff80f47f2822bb438251c8a7a1370ca, + m_CorrespondingSourceObject: {fileID: -1704340371831134875, guid: 5ff80f47f2822bb438251c8a7a1370ca, type: 3} m_PrefabInstance: {fileID: 5409519764626113462} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 936897676119936064} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 08daab3bf5174f02a190e7096de2f66c, type: 3} + m_Script: {fileID: 11500000, guid: a82ce4cd26cd43a89b02d266a5c1fc6b, type: 3} m_Name: m_EditorClassIdentifier: ---- !u!114 &3902096478558134253 stripped -MonoBehaviour: - m_CorrespondingSourceObject: {fileID: -201129804848948133, guid: 5ff80f47f2822bb438251c8a7a1370ca, +--- !u!1 &936897676119936064 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 5049378406231838710, guid: 5ff80f47f2822bb438251c8a7a1370ca, type: 3} m_PrefabInstance: {fileID: 5409519764626113462} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 936897676119936064} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 02cc032310034950a8c74708fd12ddea, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &1989495301154876912 stripped +--- !u!4 &8532578282581220253 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 4430336063030548523, guid: 5ff80f47f2822bb438251c8a7a1370ca, + type: 3} + m_PrefabInstance: {fileID: 5409519764626113462} + m_PrefabAsset: {fileID: 0} +--- !u!54 &5316937864852920292 stripped +Rigidbody: + m_CorrespondingSourceObject: {fileID: 206030070557398098, guid: 5ff80f47f2822bb438251c8a7a1370ca, + type: 3} + m_PrefabInstance: {fileID: 5409519764626113462} + m_PrefabAsset: {fileID: 0} +--- !u!4 &1139033297552060113 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 4962070890995002727, guid: 5ff80f47f2822bb438251c8a7a1370ca, + type: 3} + m_PrefabInstance: {fileID: 5409519764626113462} + m_PrefabAsset: {fileID: 0} +--- !u!114 &760856639103313813 stripped MonoBehaviour: - m_CorrespondingSourceObject: {fileID: -3418686219161457082, guid: 5ff80f47f2822bb438251c8a7a1370ca, + m_CorrespondingSourceObject: {fileID: 4728043509951407139, guid: 5ff80f47f2822bb438251c8a7a1370ca, type: 3} m_PrefabInstance: {fileID: 5409519764626113462} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 936897676119936064} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 03934c6b274d4245b6e0fba9ec5f7a6c, type: 3} + m_Script: {fileID: 11500000, guid: 3af24dbe2e70427cb93275ef00f34823, type: 3} m_Name: m_EditorClassIdentifier: --- !u!114 &7004812872329714809 stripped @@ -1243,36 +1229,36 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 66e630f68f9446108b3deb81bd1e09e5, type: 3} m_Name: m_EditorClassIdentifier: ---- !u!114 &760856639103313813 stripped +--- !u!114 &1989495301154876912 stripped MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 4728043509951407139, guid: 5ff80f47f2822bb438251c8a7a1370ca, + m_CorrespondingSourceObject: {fileID: -3418686219161457082, guid: 5ff80f47f2822bb438251c8a7a1370ca, type: 3} m_PrefabInstance: {fileID: 5409519764626113462} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 936897676119936064} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3af24dbe2e70427cb93275ef00f34823, type: 3} + m_Script: {fileID: 11500000, guid: 03934c6b274d4245b6e0fba9ec5f7a6c, type: 3} m_Name: m_EditorClassIdentifier: ---- !u!54 &5316937864852920292 stripped -Rigidbody: - m_CorrespondingSourceObject: {fileID: 206030070557398098, guid: 5ff80f47f2822bb438251c8a7a1370ca, - type: 3} - m_PrefabInstance: {fileID: 5409519764626113462} - m_PrefabAsset: {fileID: 0} ---- !u!4 &8532578282581220253 stripped +--- !u!4 &4486286122742271350 stripped Transform: - m_CorrespondingSourceObject: {fileID: 4430336063030548523, guid: 5ff80f47f2822bb438251c8a7a1370ca, + m_CorrespondingSourceObject: {fileID: 8453261883060768448, guid: 5ff80f47f2822bb438251c8a7a1370ca, type: 3} m_PrefabInstance: {fileID: 5409519764626113462} m_PrefabAsset: {fileID: 0} ---- !u!1 &936897676119936064 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 5049378406231838710, guid: 5ff80f47f2822bb438251c8a7a1370ca, +--- !u!114 &3902096478558134253 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: -201129804848948133, guid: 5ff80f47f2822bb438251c8a7a1370ca, type: 3} m_PrefabInstance: {fileID: 5409519764626113462} m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 936897676119936064} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 02cc032310034950a8c74708fd12ddea, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1001 &6034460073429725061 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/Unity/Assets/Scripts/SCHIZO/Creatures/Tutel/TutelGravityInterop.cs b/Unity/Assets/Scripts/SCHIZO/Creatures/Tutel/TutelGravityInterop.cs new file mode 100644 index 00000000..3815ce3d --- /dev/null +++ b/Unity/Assets/Scripts/SCHIZO/Creatures/Tutel/TutelGravityInterop.cs @@ -0,0 +1,31 @@ +using SCHIZO.Attributes; +using SCHIZO.Interop.Subnautica; +using TriInspector; +using UnityEngine; + +namespace SCHIZO.Creatures.Tutel +{ + [DeclareBoxGroup("sn", Title = "Subnautica")] + [DeclareBoxGroup("bz", Title = "Below Zero")] + public sealed partial class TutelGravityInterop : MonoBehaviour + { + [Required] public Rigidbody creatureRigidbody; + [Required, ExposedType("LiveMixin")] public MonoBehaviour liveMixin; + [Group("sn")] + [Required] public _CaveCrawler caveCrawler; + + [GroupNext("bz")] + [Required, ExposedType("OnSurfaceTracker")] public MonoBehaviour onSurfaceTracker; + [Required, ExposedType("WorldForces")] public MonoBehaviour worldForces; + [Required] public SphereCollider bodyCollider; + [ExposedType("Pickupable")] public MonoBehaviour pickupable; + + public float downforce = 10; + public float aboveWaterGravity = 9.81f; + public float underWaterGravity = 2.7f; + public bool applyDownforceUnderwater; + + public bool canGoInStasisUnderwater = true; + public bool trackSurfaceCollider = true; + } +} diff --git a/Unity/Assets/Scripts/SCHIZO/Creatures/Tutel/TutelGravityInterop.cs.meta b/Unity/Assets/Scripts/SCHIZO/Creatures/Tutel/TutelGravityInterop.cs.meta new file mode 100644 index 00000000..76e0e3eb --- /dev/null +++ b/Unity/Assets/Scripts/SCHIZO/Creatures/Tutel/TutelGravityInterop.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 77d1c9f059cf1b64e83c4eb4c1226e05 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: