-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
config.lua
154 lines (149 loc) · 4.93 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Config = {}
Config.Models = { -- Any TV Models used on the map or in locations must be defined here.
[`des_tvsmash_start`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_flatscreen_overlay`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_laptop_lester2`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_monitor_02`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_trev_tv_01`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_tv_02`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_tv_03_overlay`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_tv_06`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_tv_flat_01`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_tv_flat_01_screen`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_tv_flat_02b`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_tv_flat_03`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_tv_flat_03b`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_tv_flat_michael`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_monitor_w_large`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_tv_03`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
[`prop_tv_flat_02`] = {
DefaultVolume = 0.5,
Range = 20.0,
Target = "tvscreen", -- Only use if prop has render-target name.
Scale = 0.085,
Offset = vector3(-1.02, -0.055, 1.04)
},
}
Config.Locations = { -- REMOVE ALL IF NOT USING ONESYNC, OR IT SHALL BREAK.
{
Model = `prop_tv_flat_01`,
Position = vector4(144.3038, -1037.4647, 29.4173, 70.81),
},
}
Config.Channels = { -- These channels are default channels and cannot be overriden.
{name = "Twitch", url = "twitch.tv/twitch"},
}
Config.BannedWords = {
"google",
}
Config.Events = { -- Events for approving broadcasts / interactions (due to popular demand).
ScreenInteract = function(source, data, key, value, cb) -- cb() to approve.
if value.url then
for i=1, #Config.BannedWords do
if string.find(value.url, Config.BannedWords[i]) then
return
end
end
end
cb()
end,
Broadcast = function(source, data, cb) -- cb() to approve.
cb()
end,
}