|
1 | 1 | CreateThread(function() |
2 | 2 | while true do |
3 | | - if Global.Security.isInsideOffice1 then |
4 | | - EnableExteriorCullModelThisFrame(`bh1_05_build1`) |
5 | | - EnableExteriorCullModelThisFrame(`bh1_05_em`) |
| 3 | + local sleep = 500 |
6 | 4 |
|
7 | | - DisableOcclusionThisFrame() |
8 | | - end |
| 5 | + if Global.Security.isInsideOffice1 or Global.Security.isInsideOffice2 or Global.Security.isInsideOffice3 or Global.Security.isInsideOffice4 then |
| 6 | + sleep = 0 |
9 | 7 |
|
10 | | - if Global.Security.isInsideOffice2 then |
11 | | - EnableExteriorCullModelThisFrame(`hei_hw1_08_hotplaz01`) |
12 | | - EnableExteriorCullModelThisFrame(`hw1_08_hotplaz_rail`) |
13 | | - EnableExteriorCullModelThisFrame(`hw1_08_emissive_c`) |
| 8 | + if Global.Security.isInsideOffice1 then |
| 9 | + EnableExteriorCullModelThisFrame(`bh1_05_build1`) |
| 10 | + EnableExteriorCullModelThisFrame(`bh1_05_em`) |
| 11 | + end |
14 | 12 |
|
15 | | - DisableOcclusionThisFrame() |
16 | | - end |
| 13 | + if Global.Security.isInsideOffice2 then |
| 14 | + EnableExteriorCullModelThisFrame(`hei_hw1_08_hotplaz01`) |
| 15 | + EnableExteriorCullModelThisFrame(`hw1_08_hotplaz_rail`) |
| 16 | + EnableExteriorCullModelThisFrame(`hw1_08_emissive_c`) |
| 17 | + end |
17 | 18 |
|
18 | | - if Global.Security.isInsideOffice3 then |
19 | | - EnableExteriorCullModelThisFrame(`hei_kt1_05_01`) |
20 | | - EnableExteriorCullModelThisFrame(`kt1_05_glue_b`) |
21 | | - EnableExteriorCullModelThisFrame(`kt1_05_kt_emissive_kt1_05`) |
22 | | - |
23 | | - DisableOcclusionThisFrame() |
24 | | - end |
| 19 | + if Global.Security.isInsideOffice3 then |
| 20 | + EnableExteriorCullModelThisFrame(`hei_kt1_05_01`) |
| 21 | + EnableExteriorCullModelThisFrame(`kt1_05_glue_b`) |
| 22 | + EnableExteriorCullModelThisFrame(`kt1_05_kt_emissive_kt1_05`) |
| 23 | + end |
25 | 24 |
|
26 | | - if Global.Security.isInsideOffice4 then |
27 | | - EnableExteriorCullModelThisFrame(`hei_kt1_08_buildingtop_a`) |
28 | | - EnableExteriorCullModelThisFrame(`hei_kt1_08_kt1_emissive_ema`) |
| 25 | + if Global.Security.isInsideOffice4 then |
| 26 | + EnableExteriorCullModelThisFrame(`hei_kt1_08_buildingtop_a`) |
| 27 | + EnableExteriorCullModelThisFrame(`hei_kt1_08_kt1_emissive_ema`) |
| 28 | + end |
29 | 29 |
|
30 | 30 | DisableOcclusionThisFrame() |
31 | 31 | end |
32 | 32 |
|
33 | | - Wait(0) |
| 33 | + Wait(sleep) |
34 | 34 | end |
35 | 35 | end) |
0 commit comments