Merge pull request #551 from argonui/physics-dummy

Added simple detection for disabled physics
This commit is contained in:
Entrox-Licher 2024-01-21 15:10:14 -05:00 committed by GitHub
commit b37fe42711
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 54 additions and 2 deletions

View File

@ -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": [

View 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": ""
}

View 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? 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