Fixing bug with night light in the dorms

This commit is contained in:
Vladislav Khorev 2026-06-15 22:42:53 +03:00
parent bba493ee7c
commit 939136c705

View File

@ -13,11 +13,11 @@
"approachRadius": 0.89, "approachRadius": 0.89,
"boundsMaxX": 0.01552116870880127, "boundsMaxX": 0.01552116870880127,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": 0.5717296600341797, "boundsMaxZ": 0.57172966003417969,
"boundsMinX": -0.09790635108947754, "boundsMinX": -0.097906351089477539,
"boundsMinY": -1.0, "boundsMinY": -1.0,
"boundsMinZ": -0.548670768737793, "boundsMinZ": -0.548670768737793,
"interactionPositionX": 0.9887073040008545, "interactionPositionX": 0.98870730400085449,
"interactionPositionY": 0.0, "interactionPositionY": 0.0,
"interactionPositionZ": 10.041143417358398, "interactionPositionZ": 10.041143417358398,
"scale": 1.0, "scale": 1.0,
@ -37,13 +37,13 @@
"approachRadius": 0.8, "approachRadius": 0.8,
"boundsMaxX": 0.10440409183502197, "boundsMaxX": 0.10440409183502197,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": 0.5663089752197266, "boundsMaxZ": 0.56630897521972656,
"boundsMinX": -0.05429041385650635, "boundsMinX": -0.054290413856506348,
"boundsMinY": -1.0, "boundsMinY": -1.0,
"boundsMinZ": -0.5487642288208008, "boundsMinZ": -0.54876422882080078,
"interactionPositionX": -0.9637802839279175, "interactionPositionX": -0.96378028392791748,
"interactionPositionY": 0.0, "interactionPositionY": 0.0,
"interactionPositionZ": 9.992685317993164, "interactionPositionZ": 9.9926853179931641,
"scale": 1.0, "scale": 1.0,
"interactionRadius": 0.0, "interactionRadius": 0.0,
"activateFunction": "on_locked_door_click" "activateFunction": "on_locked_door_click"
@ -61,7 +61,7 @@
"approachRadius": 0.8, "approachRadius": 0.8,
"boundsMaxX": 0.05766594409942627, "boundsMaxX": 0.05766594409942627,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": 0.5710372924804688, "boundsMaxZ": 0.57103729248046875,
"boundsMinX": -0.0875619649887085, "boundsMinX": -0.0875619649887085,
"boundsMinY": -1.0, "boundsMinY": -1.0,
"boundsMinZ": -0.525609016418457, "boundsMinZ": -0.525609016418457,
@ -85,10 +85,10 @@
"approachRadius": 0.8, "approachRadius": 0.8,
"boundsMaxX": 0.10906755924224854, "boundsMaxX": 0.10906755924224854,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": 0.5573873519897461, "boundsMaxZ": 0.55738735198974609,
"boundsMinX": -0.02557361125946045, "boundsMinX": -0.025573611259460449,
"boundsMinY": -1.0, "boundsMinY": -1.0,
"boundsMinZ": -0.5323200225830078, "boundsMinZ": -0.53232002258300781,
"interactionPositionX": -0.968346118927002, "interactionPositionX": -0.968346118927002,
"interactionPositionY": 0.0, "interactionPositionY": 0.0,
"interactionPositionZ": -10.002159118652344, "interactionPositionZ": -10.002159118652344,
@ -109,11 +109,11 @@
"approachRadius": 0.8, "approachRadius": 0.8,
"boundsMaxX": 0.046350955963134766, "boundsMaxX": 0.046350955963134766,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": 0.5500001907348633, "boundsMaxZ": 0.55000019073486328,
"boundsMinX": -0.10775184631347656, "boundsMinX": -0.10775184631347656,
"boundsMinY": -1.0, "boundsMinY": -1.0,
"boundsMinZ": -0.5863857269287109, "boundsMinZ": -0.58638572692871094,
"interactionPositionX": 1.005477786064148, "interactionPositionX": 1.0054777860641479,
"interactionPositionY": 0.0, "interactionPositionY": 0.0,
"interactionPositionZ": 15.732091903686523, "interactionPositionZ": 15.732091903686523,
"scale": 1.0, "scale": 1.0,
@ -133,11 +133,11 @@
"approachRadius": 0.800000011920929, "approachRadius": 0.800000011920929,
"boundsMaxX": 0.12420153617858887, "boundsMaxX": 0.12420153617858887,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": 0.5454416275024414, "boundsMaxZ": 0.54544162750244141,
"boundsMinX": -0.02631092071533203, "boundsMinX": -0.026310920715332031,
"boundsMinY": 0.0, "boundsMinY": 0.0,
"boundsMinZ": -0.5781536102294922, "boundsMinZ": -0.57815361022949219,
"interactionPositionX": -0.9698797464370728, "interactionPositionX": -0.96987974643707275,
"interactionPositionY": 0.0, "interactionPositionY": 0.0,
"interactionPositionZ": 15.617175102233887, "interactionPositionZ": 15.617175102233887,
"scale": 1.0, "scale": 1.0,
@ -155,7 +155,7 @@
"positionY": 0.0, "positionY": 0.0,
"positionZ": 19.95, "positionZ": 19.95,
"approachRadius": 0.8, "approachRadius": 0.8,
"boundsMaxX": -0.05098748207092285, "boundsMaxX": -0.050987482070922852,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": 0.52764892578125, "boundsMaxZ": 0.52764892578125,
"boundsMinX": -0.1196892261505127, "boundsMinX": -0.1196892261505127,
@ -179,12 +179,12 @@
"positionY": 0.0, "positionY": 0.0,
"positionZ": 19.95, "positionZ": 19.95,
"approachRadius": 0.8, "approachRadius": 0.8,
"boundsMaxX": 0.07334935665130615, "boundsMaxX": 0.073349356651306152,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": 0.5791053771972656, "boundsMaxZ": 0.57910537719726563,
"boundsMinX": -0.04259765148162842, "boundsMinX": -0.042597651481628418,
"boundsMinY": -1.0, "boundsMinY": -1.0,
"boundsMinZ": -0.5342922210693359, "boundsMinZ": -0.53429222106933594,
"interactionPositionX": -1.0046367645263672, "interactionPositionX": -1.0046367645263672,
"interactionPositionY": 0.0, "interactionPositionY": 0.0,
"interactionPositionZ": 19.962736129760742, "interactionPositionZ": 19.962736129760742,
@ -237,16 +237,16 @@
"approachRadius": 0.6, "approachRadius": 0.6,
"boundsMaxX": 0.32435035705566406, "boundsMaxX": 0.32435035705566406,
"boundsMaxY": 0.5, "boundsMaxY": 0.5,
"boundsMaxZ": 0.5178079605102539, "boundsMaxZ": 0.51780796051025391,
"boundsMinX": -0.19553518295288086, "boundsMinX": -0.19553518295288086,
"boundsMinY": -0.5, "boundsMinY": -0.5,
"boundsMinZ": -0.2698993682861328, "boundsMinZ": -0.26989936828613281,
"interactionPositionX": 6.694502353668213, "interactionPositionX": 6.6945023536682129,
"interactionPositionY": 0.0, "interactionPositionY": 0.0,
"interactionPositionZ": -12.80740737915039, "interactionPositionZ": -12.807407379150391,
"scale": 1.0, "scale": 1.0,
"interactionRadius": 0.0, "interactionRadius": 0.0,
"castShadowNight": false, "castShadowNight": false,
"activateFunction": "on_phone_pickup" "activateFunction": "on_phone_pickup"
}, },
{ {
@ -266,31 +266,33 @@
"boundsMinX": -0.22043895721435547, "boundsMinX": -0.22043895721435547,
"boundsMinY": -0.5, "boundsMinY": -0.5,
"boundsMinZ": -0.25891780853271484, "boundsMinZ": -0.25891780853271484,
"interactionPositionX": 5.819052696228027, "interactionPositionX": 5.8190526962280273,
"interactionPositionY": 0.0, "interactionPositionY": 0.0,
"interactionPositionZ": -12.76319408416748, "interactionPositionZ": -12.76319408416748,
"scale": 1.0, "scale": 1.0,
"interactionRadius": 0.3, "interactionRadius": 0.3,
"castShadowNight": false, "castShadowNight": false,
"activateFunction": "on_journal_pickup" "activateFunction": "on_journal_pickup"
}, },
{ {
"name": "Bed001", "name": "Bed001",
"texturePath": "resources/transparent.png", "texturePath": "resources/transparent.png",
"meshPath": "resources/w/Cube_001.txt", "meshPath": "resources/w/Cube_001.txt",
"castShadowNight": false,
"castShadow": false,
"rotationX": 0.0, "rotationX": 0.0,
"rotationY": 0.0, "rotationY": 0.0,
"rotationZ": 0.0, "rotationZ": 0.0,
"positionX": 0.0, "positionX": 0.0,
"positionY": 0.0, "positionY": 0.0,
"positionZ": 0.0, "positionZ": 0.0,
"boundsMaxX": 8.642372131347656, "boundsMaxX": 8.6423721313476563,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": -15.692028045654297, "boundsMaxZ": -15.692028045654297,
"boundsMinX": 6.203922748565674, "boundsMinX": 6.2039227485656738,
"boundsMinY": 0.0, "boundsMinY": 0.0,
"boundsMinZ": -16.945722579956055, "boundsMinZ": -16.945722579956055,
"interactionPositionX": 8.280488014221191, "interactionPositionX": 8.2804880142211914,
"interactionPositionY": 0.0, "interactionPositionY": 0.0,
"interactionPositionZ": -15.692096710205078, "interactionPositionZ": -15.692096710205078,
"approachRadius": 0.6, "approachRadius": 0.6,
@ -315,7 +317,7 @@
"boundsMaxX": 0.5514686107635498, "boundsMaxX": 0.5514686107635498,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": 0.11902141571044922, "boundsMaxZ": 0.11902141571044922,
"boundsMinX": -0.5845658779144287, "boundsMinX": -0.58456587791442871,
"boundsMinY": -1.0, "boundsMinY": -1.0,
"boundsMinZ": -0.11658763885498047, "boundsMinZ": -0.11658763885498047,
"interactionPositionX": 2.8216893672943115, "interactionPositionX": 2.8216893672943115,
@ -336,13 +338,13 @@
"positionY": 0.0, "positionY": 0.0,
"positionZ": -14.3, "positionZ": -14.3,
"approachRadius": 0.8, "approachRadius": 0.8,
"boundsMaxX": 0.5543923377990723, "boundsMaxX": 0.55439233779907227,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": 0.09879684448242188, "boundsMaxZ": 0.098796844482421875,
"boundsMinX": -0.5794532299041748, "boundsMinX": -0.5794532299041748,
"boundsMinY": -1.0, "boundsMinY": -1.0,
"boundsMinZ": -0.10668659210205078, "boundsMinZ": -0.10668659210205078,
"interactionPositionX": -2.365324020385742, "interactionPositionX": -2.3653240203857422,
"interactionPositionY": 0.0, "interactionPositionY": 0.0,
"interactionPositionZ": -14.433123588562012, "interactionPositionZ": -14.433123588562012,
"scale": 1.0, "scale": 1.0,
@ -365,10 +367,10 @@
"approachRadius": 0.8, "approachRadius": 0.8,
"boundsMaxX": 0.12640702724456787, "boundsMaxX": 0.12640702724456787,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": 0.5614070892333984, "boundsMaxZ": 0.56140708923339844,
"boundsMinX": -0.07332098484039307, "boundsMinX": -0.073320984840393066,
"boundsMinY": -1.0, "boundsMinY": -1.0,
"boundsMinZ": -0.5617532730102539, "boundsMinZ": -0.56175327301025391,
"interactionPositionX": 1.4176452159881592, "interactionPositionX": 1.4176452159881592,
"interactionPositionY": 0.0, "interactionPositionY": 0.0,
"interactionPositionZ": -15.264726638793945, "interactionPositionZ": -15.264726638793945,
@ -389,11 +391,11 @@
"approachRadius": 0.8, "approachRadius": 0.8,
"boundsMaxX": 0.13942182064056396, "boundsMaxX": 0.13942182064056396,
"boundsMaxY": 1.0, "boundsMaxY": 1.0,
"boundsMaxZ": 0.5940608978271484, "boundsMaxZ": 0.59406089782714844,
"boundsMinX": -0.0942072868347168, "boundsMinX": -0.0942072868347168,
"boundsMinY": -1.0, "boundsMinY": -1.0,
"boundsMinZ": -0.5547590255737305, "boundsMinZ": -0.55475902557373047,
"interactionPositionX": -0.9912688732147217, "interactionPositionX": -0.99126887321472168,
"interactionPositionY": 0.0, "interactionPositionY": 0.0,
"interactionPositionZ": -15.256343841552734, "interactionPositionZ": -15.256343841552734,
"pivotX": 0.0, "pivotX": 0.0,
@ -501,13 +503,13 @@
"scale": 1.0, "scale": 1.0,
"interactionRadius": 0.0 "interactionRadius": 0.0
}, },
{ {
"name": "Roof", "name": "Roof",
"texturePath": "resources/black.png", "texturePath": "resources/black.png",
"meshPath": "resources/w/dorm2/Shadow_Roof001_002.txt", "meshPath": "resources/w/dorm2/Shadow_Roof001_002.txt",
"isActive": false, "isActive": false,
"castShadow": true, "castShadow": true,
"castShadowNight": false, "castShadowNight": false,
"rotationX": 0.0, "rotationX": 0.0,
"rotationY": 0.0, "rotationY": 0.0,
"rotationZ": 0.0, "rotationZ": 0.0,