forked from Kamikaze94/WolfHUD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WolfHUDTweakData.lua
222 lines (212 loc) · 10.8 KB
/
WolfHUDTweakData.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
WolfHUDTweakData = WolfHUDTweakData or class()
function WolfHUDTweakData:init()
----------------------------------------------------------------------------------------------------------------------
-- WolfHUD Tweak Data --
----------------------------------------------------------------------------------------------------------------------
-- This file enables access to advanced settings, or those I cannot really implement into ingame menus easily. --
-- If you want to save those changes, please copy this file to "Payday 2/mods/saves" and edit that copy instead. --
-- You will need to take care of that version beeing up to date on your own. --
-- It will not get changed on updates automatically. --
-- If you encounter problems, make sure the contents of this file matches the contents of your customized version. --
----------------------------------------------------------------------------------------------------------------------
-- Determines which messages get logged
self.LOG_MODE = {
error = true, -- log errors
warning = true, -- log warnings
info = false, -- log infos
to_console = true -- show messages in console (Requires DebugConsole mod)
}
-- Currency used ingame
self.CASH_SIGN = "$" -- Dollar
--self.CASH_SIGN = "\194\128" -- EUR
-- Maximum amount of Plans, that can be saved per level/map.
self.MAX_PRE_PLANS = 10
-- Maximum Length of custom weapon names.
self.MAX_WEAPON_NAME_LENGTH = 30
-- Maximum Length of custom Skill set names.
self.MAX_SKILLSET_NAME_LENGTH = 25
-- Maximum Length of Profile names.
self.MAX_PROFILE_NAME_LENGTH = 20
-- Time within 2 presses of the nade button, to throw a nade in stealth.
self.STEALTH_NADE_TIMEOUT = 0.25
-- Time within 2 presses of the interact button, to deploy a shaped charge in stealth.
self.STEALTH_SHAPED_CHARGE_TIMEOUT = 0.25
-- Time within 2 presses of the interact button, to close a door using a keycard. (hoxton breakout day 2)
self.KEYCARD_DOORS_TIMEOUT = 0.25
-- Time between 2 automatical pickups, when the interaction button remains pressed.
self.AUTO_PICKUP_DELAY = 0.2
-- Component Layouts for Lobby and briefing loadout panels.
-- The total width and height of those panels are fixed, so adding too many components into a row or column will make them incredibly small.
-- Available components:
--[[
name -> The name (+ rank in lobby)
level -> The level + infamy
ping -> The latency
playtime -> The Steam playtime (in hours)
character -> The used character
skills -> The equipped skill build
perk -> The equipped perkdeck
primary -> The primary weapon + used mods
secondary -> The secondary weapon + used mods
melee_weapon -> The equipped melee weapon
grenade -> The eqipped throwable
mask -> The mask worn
armor -> The armor worn
deployable -> The equipped deployable
secondary_deployable -> The eqipped secondary deployable (in case of Jack of all trades)
--]]
self.STD_LOBBY_LOADOUT_LAYOUT = {
{ "playtime", "ping" },
{ "name" },
{ "character" },
{ "skills" },
{ "perk" },
{ "primary" },
{ "secondary" },
{ "melee_weapon" },
{ "grenade", "armor" },
{ "deployable", "secondary_deployable" }
}
self.CS_LOBBY_LOADOUT_LAYOUT = {
{ "playtime", "ping" },
{ "name" },
{ "skills" },
{ "perk" },
{ "primary", "secondary" },
{ "grenade", "armor" },
{ "deployable", "secondary_deployable" }
}
self.BRIEFING_LOADOUT_LAYOUT = {
{ "perk" },
{ "skills" },
{ "primary" },
{ "secondary" },
{ "melee_weapon", "grenade" },
{ "armor", "mask" },
{ "deployable", "secondary_deployable" }
}
self.TAB_LOADOUT_LAYOUT = {
{ "name", "ping" },
{ "skills", "perk" },
}
-- Color table
-- Add or remove any color you want
-- 'color' needs to be that colors hexadecimal code
-- 'name' will be the name it appears in the selection menus
self.color_table = {
{ color = 'FFFFFF', name = "white" },
{ color = 'F2F250', name = "light_yellow" },
{ color = 'F2C24E', name = "light_orange" },
{ color = 'E55858', name = "light_red" },
{ color = 'CC55CC', name = "light_purple" },
{ color = '00FF00', name = "light_green" },
{ color = '00FFFF', name = "light_blue" },
{ color = 'BABABA', name = "light_gray" },
{ color = 'FFFF00', name = "yellow" },
{ color = 'FFA500', name = "orange" },
{ color = 'FF0000', name = "red" },
{ color = '800080', name = "purple" },
{ color = '008000', name = "green" },
{ color = '0000FF', name = "blue" },
{ color = '808080', name = "gray" },
{ color = '000000', name = "black" },
{ color = nil, name = "rainbow" },
}
--Unit Name link table
self.CHARACTER_NAMES = {
[ "civilian" ] = { default = "wolfhud_enemy_civilian" },
[ "civilian_female" ] = { default = "wolfhud_enemy_civilian" },
[ "captain" ] = { default = "wolfhud_enemy_civilian" },
[ "gangster" ] = { default = "wolfhud_enemy_gangster" },
[ "biker" ] = { default = "wolfhud_enemy_biker" },
[ "biker_escape" ] = { default = "wolfhud_enemy_biker" },
[ "bolivian_indoors" ] = { default = "wolfhud_enemy_bolivian_security" },
[ "bolivian" ] = { default = "wolfhud_enemy_bolivian_thug" },
[ "mobster" ] = { default = "wolfhud_enemy_mobster" },
[ "security" ] = { default = "wolfhud_enemy_security" },
[ "security_undominatable" ] = { default = "wolfhud_enemy_security" },
[ "gensec" ] = { default = "wolfhud_enemy_gensec" },
[ "cop" ] = { default = "wolfhud_enemy_cop" },
[ "cop_female" ] = { default = "wolfhud_enemy_cop" },
[ "cop_scared" ] = { default = "wolfhud_enemy_cop" },
[ "fbi" ] = { default = "wolfhud_enemy_fbi" },
[ "swat" ] = { default = "wolfhud_enemy_swat" },
[ "heavy_swat" ] = { default = "wolfhud_enemy_heavy_swat" },
[ "fbi_swat" ] = { default = "wolfhud_enemy_swat" },
[ "fbi_heavy_swat" ] = { default = "wolfhud_enemy_heavy_swat" },
[ "heavy_swat_sniper" ] = { default = "wolfhud_enemy_heavy_swat_sniper" },
[ "city_swat" ] = { default = "wolfhud_enemy_city_swat" },
[ "shield" ] = { default = "wolfhud_enemy_shield" },
[ "spooc" ] = { default = "wolfhud_enemy_spook" },
[ "taser" ] = { default = "wolfhud_enemy_taser" },
[ "sniper" ] = { default = "wolfhud_enemy_sniper" },
[ "medic" ] = { default = "wolfhud_enemy_medic" },
[ "tank" ] = { default = "wolfhud_enemy_tank" },
[ "tank_hw" ] = { default = "wolfhud_enemy_tank_hw" },
[ "tank_medic" ] = { default = "wolfhud_enemy_tank_medic" },
[ "tank_mini" ] = { default = "wolfhud_enemy_tank_mini" },
[ "phalanx_minion" ] = { default = "wolfhud_enemy_phalanx_minion" },
[ "phalanx_vip" ] = { default = "wolfhud_enemy_phalanx_vip" },
[ "swat_van_turret_module" ] = { default = "wolfhud_enemy_swat_van" },
[ "ceiling_turret_module" ] = { default = "wolfhud_enemy_ceiling_turret" },
[ "ceiling_turret_module_no_idle" ] = { default = "wolfhud_enemy_ceiling_turret" },
[ "sentry_gun" ] = { default = "wolfhud_enemy_sentry_gun" },
[ "mobster_boss" ] = { default = "wolfhud_enemy_mobster_boss" },
[ "chavez_boss" ] = { default = "wolfhud_enemy_chavez_boss" },
[ "drug_lord_boss" ] = { default = "wolfhud_enemy_druglord_boss" },
[ "drug_lord_boss_stealth" ] = { default = "wolfhud_enemy_druglord_boss_stealth" },
[ "biker_boss" ] = { default = "wolfhud_enemy_biker_boss" },
[ "bank_manager" ] = { default = "wolfhud_enemy_bank_manager", dah = "wolfhud_enemy_dah_ralph" },
[ "inside_man" ] = { default = "wolfhud_enemy_inside_man" },
[ "escort_undercover" ] = { default = "wolfhud_enemy_escort_undercover", run = "wolfhud_enemy_escort_heatstreet", rvd1 = "wolfhud_enemy_escort_reservoirdogs" },
[ "escort_chinese_prisoner" ] = { default = "wolfhud_enemy_escort_chinese_prisoner" },
[ "escort_cfo" ] = { default = "wolfhud_enemy_escort_cfo" },
[ "drunk_pilot" ] = { default = "wolfhud_enemy_drunk_pilot" },
[ "escort" ] = { default = "wolfhud_enemy_escort" },
[ "boris" ] = { default = "wolfhud_enemy_boris" },
[ "spa_vip" ] = { default = "wolfhud_enemy_spa_vip" },
[ "spa_vip_hurt" ] = { default = "wolfhud_enemy_spa_vip_hurt" },
[ "old_hoxton_mission" ] = { default = "wolfhud_enemy_locke_mission", hox_1 = "wolfhud_enemy_old_hoxton_mission", hox_2 = "wolfhud_enemy_old_hoxton_mission", rvd1 = "wolfhud_enemy_reservoirdogs", rvd2 = "wolfhud_enemy_reservoirdogs" },
[ "hector_boss" ] = { default = "wolfhud_enemy_hector_boss" },
[ "hector_boss_no_armor" ] = { default = "wolfhud_enemy_hector_boss_no_armor" },
[ "robbers_safehouse" ] = { default = "wolfhud_enemy_crew" },
[ "butler" ] = { default = "wolfhud_enemy_butler" },
[ "vlad" ] = { default = "wolfhud_enemy_vlad" },
[ "russian" ] = { default = "menu_russian" },
[ "german" ] = { default = "menu_german" },
[ "spanish" ] = { default = "menu_spanish" },
[ "american" ] = { default = "menu_american" },
[ "jowi" ] = { default = "menu_jowi" },
[ "old_hoxton" ] = { default = "menu_old_hoxton" },
[ "female_1" ] = { default = "menu_female_1" },
[ "clover" ] = { default = "menu_female_1" },
[ "dragan" ] = { default = "menu_dragan" },
[ "jacket" ] = { default = "menu_jacket" },
[ "bonnie" ] = { default = "menu_bonnie" },
[ "sokol" ] = { default = "menu_sokol" },
[ "dragon" ] = { default = "menu_dragon" },
[ "bodhi" ] = { default = "menu_bodhi" },
[ "jimmy" ] = { default = "menu_jimmy" },
[ "sydney" ] = { default = "menu_sydney" },
[ "wild" ] = { default = "menu_wild" },
[ "chico" ] = { default = "menu_chico" },
[ "terry" ] = { default = "menu_chico" },
[ "max" ] = { default = "menu_max" },
[ "myh" ] = { default = "menu_myh" },
[ "ecp_male" ] = { default = "menu_ecp_male" },
[ "ecp_female" ] = { default = "menu_ecp_female" },
}
self:post_init()
end
----------------------------------------- DONT EDIT BELOW THIS LINE!!! ----------------------------------------- DONT EDIT BELOW THIS LINE!!! ----------------------------------------- DONT EDIT BELOW THIS LINE!!! -----------------------------------------
function WolfHUDTweakData:post_init()
for _, data in ipairs(self.color_table) do
if data.name == "rainbow" then
data.color_func = function(frequency)
local r = Application:time() * 360 * (frequency or 1)
local r, g, b = (1 + math.sin(r + 0)) / 2, (1 + math.sin(r + 120)) / 2, (1 + math.sin(r + 240)) / 2
return Color(r, g, b)
end
end
end
end