Skip to content

Commit

Permalink
Undercover and Counterfeit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicSoapyBoi authored Jul 24, 2024
1 parent f73958a commit b1143c2
Show file tree
Hide file tree
Showing 6 changed files with 388 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lua/charactertweakdata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ Hooks:PostHook(CharacterTweakData, "init", "eclipse_init", function(self)
-- elite shield
self.phalanx_minion.damage.explosion_damage_mul = 0.2
self.phalanx_minion.access = "shield"
self.phalanx_minion.spawn_sound_event = "shield_identification" --BANG BANG BANG!!! (I wanted to use Terminator Bang sound for him but this needs No Mercy's SFX package to be loaded)
self.phalanx_minion.spawn_sound_event = "hos_shield_indication_sound_terminator_style" --DUN..DUN..DUN....DUN..DUN..DUN!!

self.phalanx_minion_break = deep_clone(self.phalanx_minion)
self.phalanx_minion_break.tags = { "law", "shield" }
Expand Down Expand Up @@ -778,9 +778,10 @@ Hooks:PostHook(CharacterTweakData, "init", "eclipse_init", function(self)
self.zeal_heavy_swat.damage.explosion_damage_mul = 0.6
table.insert(self._enemy_list, "zeal_heavy_swat")

--I wanted to use Terminator Bang sound for him but this needs No Mercy's SFX package to be loaded

self.zeal_shield = deep_clone(self.shield)
self.zeal_shield.speech_prefix_p2 = "d"
self.zeal_shield.spawn_sound_event = "hos_shield_indication_sound_terminator_style" --Come with me if you wanna live...
table.insert(self._enemy_list, "zeal_shield")

self.zeal_medic = deep_clone(self.medic)
Expand Down
10 changes: 9 additions & 1 deletion lua/gamesetup.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
Hooks:PostHook(GameSetup, "load_packages", "sh_load_packages", function(self)
local difficulty = Global.game_settings and Global.game_settings.difficulty or "normal"
local difficulty_index = tweak_data:difficulty_to_index(difficulty)
if difficulty_index and difficulty_index == 6 and not PackageManager:loaded("packages/sm_wish") then
if difficulty_index == 6 and not PackageManager:loaded("packages/sm_wish") then
StreamHeist:log("Loading ZEAL package")
table.insert(self._loaded_diff_packages, "packages/sm_wish")
PackageManager:load("packages/sm_wish")
end

--For Elite/ZEAL shield's Terminator styled BANG BANG BANG spawn sound
if difficulty_index == 6 and not PackageManager:loaded("soundbanks/sfx_hos") then
PackageManager:load("soundbanks/sfx_hos")
elseif difficulty_index ~= 6 and PackageManager:loaded("soundbanks/sfx_hos") then
PackageManager:unload("soundbanks/sfx_hos")
end

end)
44 changes: 44 additions & 0 deletions req/mission_script/man.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,54 @@
local difficulty = tweak_data:difficulty_to_index(Global.game_settings and Global.game_settings.difficulty or "normal")
local tank = (difficulty == 6 and "units/pd2_dlc_drm/characters/ene_bulldozer_minigun_classic/ene_bulldozer_minigun_classic") or "units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"

local dozer_heli = {
values = {
enemy = tank
}
}
local disabled = {
values = {
enabled = false
}
}
return {
--PONR
--Have the gas chopper be a dozer chopper
--Trigger the heli spawn during escape instead of during hacking objectives
[100695] = {
ponr = {
length = 60,
player_mul = {1.25, 1, 0.75, 0.5}
},
on_executed = {
{id = 101608, delay = 0}
}
},
--remove the line
[102010] = {
on_executed = {
{ id = 101608, remove = true}
}
},
--Bain warns about incoming dozers from the chopper
[103295] = {
on_executed = {
{ id = 102950, remove = true},
{ id = 400001, delay = 16}
}
},
--Replace the spawns with dozers
[103293] = dozer_heli,
[103294] = dozer_heli,
[104045] = dozer_heli,
[104046] = dozer_heli,
[104047] = dozer_heli,
[104048] = dozer_heli,
[104049] = dozer_heli,
[104050] = dozer_heli,
--disable the Gas SO (it's useless anyway)
[103302] = disabled,
[103303] = disabled,
-- Give saw to all players
[101865] = {
func = function(self)
Expand Down
98 changes: 98 additions & 0 deletions req/mission_script/pal.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
local difficulty = tweak_data:difficulty_to_index(Global.game_settings and Global.game_settings.difficulty or "normal")
local pro_job = Global.game_settings and Global.game_settings.one_down
local cop_sg = "units/payday2/characters/ene_cop_3/ene_cop_3"
local titan_shield = (difficulty == 6 and pro_job and "units/pd2_dlc_vip/characters/ene_phalanx_1/ene_phalanx_1")

local tshield = {
values = {
enemy = titan_shield
}
}
local disabled = {
values = {
enabled = false
}
}

return {
--Water from the hose fills the safe much slower like in PDTH
[101229] = {
values = {
timer = 240
}
},
[101237] = {
values = {
time = 200
}
},
[101236] = {
values = {
time = 140
}
},
[101235] = {
values = {
time = 60
}
},
[100897] = {
values = {
time = 30
}
},
--Replace 2nd bronco cop with shotgun cop to match with PDTH style
[100725] = {
values = {
enemy = cop_sg
}
},
--Disable the 2nd police crusier if the cops are already alerted
[103034] = {
on_executed = {
{id = 400015, delay = 0}
}
},
--delay the next anim by few more seconds to let the previous anim end (fix for Wilson's SWAT van)
[101647] = {
on_executed = {
{id = 101648, delay = 10.5}
}
},
--Spawn custom PDTH styled snipers at the start of 2nd assault
--Bain warns about them
[102082] = {
on_executed = {
{id = 400001, delay = 5},
{id = 400002, delay = 5},
{id = 400003, delay = 5},
{id = 400004, delay = 5},
{id = 400005, delay = 5},
{id = 400016, delay = 3.5}
}
},
--disable vanilla snipers
[102941] = disabled,
--Add the missing sniper access
[102399] = {
pre_func = function (self)
if not self._values.SO_access_original then
self._values.SO_access_original = self._values.SO_access
self._values.SO_access = managers.navigation:convert_access_filter_to_number({"cop", "swat", "fbi", "taser", "sniper", "spooc"})
end
end
},
--Elite Shields replaces FBI ones that cover the manhole on Eclipse (PJ only)
[100036] = tshield,
[100039] = tshield,
[100044] = tshield,
[101848] = tshield,
[101908] = tshield,
[101911] = tshield,
[100642] = tshield,
[100777] = tshield,
[100795] = tshield,
[101804] = tshield,
[101883] = tshield,
[102098] = tshield
}
14 changes: 14 additions & 0 deletions req/mission_script_add/man.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
local Bain_senddozers = {
dialogue = "Play_ban_s02_b",
can_not_be_muted = true
}

return {
elements = {
StreamHeist:gen_dialogue(
400001,
"they_sending_dozers",
Bain_senddozers
)
}
}
Loading

0 comments on commit b1143c2

Please sign in to comment.