forked from Crackdown-PD2/deathvox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCore.lua
More file actions
31 lines (28 loc) · 1.27 KB
/
Copy pathCore.lua
File metadata and controls
31 lines (28 loc) · 1.27 KB
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
local _G = _G
local io = io
local file = file
if not _G.deathvox then
_G.deathvox = {}
_G.deathvox.ModPath = ModPath
blt.xaudio.setup()
local deathvox_mod_instance = ModInstance
deathvox_mod_instance:GetSuperMod():GetAssetLoader():LoadAssetGroup("cops")
if _G.voiceline_framework then
_G.voiceline_framework:register_unit("grenadier")
local fuck = Application:nice_path( "./" .. ModPath .. "assets/oggs/voiceover/grenadier", true )
for index, directory in pairs(file.GetDirectories(fuck)) do
local ass = Application:nice_path( "./" .. ModPath .. "assets/oggs/voiceover/grenadier/" .. directory, true )
_G.voiceline_framework.register_line_type("go fuck yourself lua", "grenadier", tostring(directory))
for index2, filez in pairs(file.GetFiles(ass)) do
_G.voiceline_framework:register_voiceline("grenadier", tostring(directory), ModPath .. "assets/oggs/voiceover/grenadier/" .. tostring(directory) .. "/" .. tostring(filez))
end
end
_G.voiceline_framework:register_unit("medicdozer")
_G.voiceline_framework:register_line_type("medicdozer", "heal")
for i = 1, 31 do
_G.voiceline_framework:register_voiceline("medicdozer", "heal", ModPath .. "assets/oggs/voiceover/medicdozer/heal" .. i .. ".ogg")
end
_G.deathvox.grenadier_gas_duration = 15
else
end
end