added simple detection for disabled physics
This commit is contained in:
parent
d41f452f86
commit
30f3076d61
@ -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": [
|
||||
|
45
objects/PhysicsDetector.b300d8.json
Normal file
45
objects/PhysicsDetector.b300d8.json
Normal file
@ -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": ""
|
||||
}
|
7
src/core/PhysicsDetector.ttslua
Normal file
7
src/core/PhysicsDetector.ttslua
Normal file
@ -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?", "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
|
Loading…
Reference in New Issue
Block a user