diff --git a/config.json b/config.json index c563d5a8..bf72041a 100644 --- a/config.json +++ b/config.json @@ -3,7 +3,6 @@ "ComponentTags_path": "ComponentTags.json", "CustomUIAssets_path": "CustomUIAssets.json", "DecalPallet_path": "DecalPallet.json", - "Decals": [], "GameComplexity": "", "GameMode": "Arkham Horror LCG - Super Complete Edition", "GameType": "", @@ -222,7 +221,8 @@ "Tokencache_ElderSign.0b1aca", "Tokencache_Bless.8e3aab", "Tokencache_Curse.16a9a7", - "Tokencache_Frost.b2b7be" + "Tokencache_Frost.b2b7be", + "PhysicsDetector.b300d8" ], "PlayArea": 1, "PlayerCounts": [ diff --git a/objects/PhysicsDetector.b300d8.json b/objects/PhysicsDetector.b300d8.json new file mode 100644 index 00000000..a4251aa1 --- /dev/null +++ b/objects/PhysicsDetector.b300d8.json @@ -0,0 +1,45 @@ +{ + "AltLookAngle": { + "x": 0, + "y": 0, + "z": 0 + }, + "Autoraise": true, + "ColorDiffuse": { + "b": 0, + "g": 0, + "r": 0.92647 + }, + "Description": "", + "DragSelectable": true, + "GMNotes": "", + "GUID": "b300d8", + "Grid": true, + "GridProjection": false, + "Hands": false, + "HideWhenFaceDown": false, + "IgnoreFoW": false, + "LayoutGroupSortIndex": 0, + "Locked": false, + "LuaScript": "require(\"core/PhysicsDetector\")", + "LuaScriptState": "", + "MeasureMovement": false, + "Name": "BlockSquare", + "Nickname": "Physics Detector", + "Snap": true, + "Sticky": true, + "Tooltip": true, + "Transform": { + "posX": 78, + "posY": 1.645, + "posZ": 16, + "rotX": 0, + "rotY": 0, + "rotZ": 0, + "scaleX": 1, + "scaleY": 1, + "scaleZ": 1 + }, + "Value": 0, + "XmlUI": "" +} \ No newline at end of file diff --git a/src/core/PhysicsDetector.ttslua b/src/core/PhysicsDetector.ttslua new file mode 100644 index 00000000..96e28cbf --- /dev/null +++ b/src/core/PhysicsDetector.ttslua @@ -0,0 +1,7 @@ +-- will notify the user to enable physics if it appears to not be fully enabled + +-- this event should only fire if physics aren't fully enabled +function onCollisionExit() + broadcastToAll("Physics disabled? Check chat log", "Orange") + printToAll("It seems like you don't have 'Physics' fully enabled. From the top menu bar, open Options > Physics and select 'Full' to experience this mod with all features.") +end