Skip to content

Commit e5b28be

Browse files
authored
Merge pull request #162 from Bob74/b3407
DLC Agents of Sabotage
2 parents d18e22e + ba1e818 commit e5b28be

File tree

8 files changed

+157
-0
lines changed

8 files changed

+157
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,9 @@ This resource has been completely rewritten from scratch since v2.0. You can cus
197197
14/06/2017
198198
- Original release
199199
</details>
200+
201+
## Contributors
202+
203+
<a href="https://github.com/Bob74/bob74_ipl/graphs/contributors">
204+
<img src="https://contrib.rocks/image?repo=Bob74/bob74_ipl" />
205+
</a>

client.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,13 @@ CreateThread(function()
220220
SummerCarrier.LoadDefault() -- -3208.03, 3954.54, 14.0
221221
SummerOffice.LoadDefault() -- 565.886, -2688.761, -50.0
222222
end
223+
224+
-- ====================================================================
225+
-- =-------------------- [DLC: Agents of Sabotage] -------------------=
226+
-- ====================================================================
227+
if GetGameBuildNumber() >= 3407 then
228+
AgentsFactory.LoadDefault() -- 752.31, -997.24, -47.0
229+
AgentsOffice.LoadDefault() -- 2149.71, 4787.76, -47.0
230+
AgentsAirstrip.LoadDefault() -- -2106.98, 1468.31, 282.0
231+
end
223232
end)

dlc_agents/airstrip.lua

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
-- Airstrip: -2106.98, 1468.31, 282.0
2+
exports("GetAgentsAirstrip", function()
3+
return AgentsAirstrip
4+
end)
5+
6+
AgentsAirstrip = {
7+
Ipl = {
8+
ipl = "m24_2_airstrip",
9+
10+
Load = function()
11+
EnableIpl(AgentsAirstrip.Ipl.ipl, true)
12+
end,
13+
Remove = function()
14+
EnableIpl(AgentsAirstrip.Ipl.ipl, false)
15+
end
16+
},
17+
18+
LoadDefault = function()
19+
AgentsAirstrip.Ipl.Load()
20+
end
21+
}

dlc_agents/base.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CreateThread(function()
2+
RequestIpl("m24_2_legacy_fixes")
3+
RequestIpl("m24_2_mp2024_02_additions")
4+
end)

dlc_agents/factory.lua

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
-- Garment Factory: 752.31, -997.24, -47.0
2+
exports("GetAgentsFactory", function()
3+
return AgentsFactory
4+
end)
5+
6+
AgentsFactory = {
7+
interiorId = 297729,
8+
9+
Ipl = {
10+
Exterior = {
11+
ipl = "m24_2_garment_factory",
12+
13+
Load = function()
14+
EnableIpl(AgentsFactory.Ipl.Exterior.ipl, true)
15+
end,
16+
Remove = function()
17+
EnableIpl(AgentsFactory.Ipl.Exterior.ipl, false)
18+
end
19+
}
20+
},
21+
22+
Trophy = {
23+
egg = "set_pent_rob_egg",
24+
idol01 = "set_pent_rob_idol_01",
25+
idol02 = "set_pent_rob_idol_02",
26+
scarab = "set_zanc_scarab",
27+
drive = "set_whistle_drive",
28+
plane = "set_cargo",
29+
30+
Enable = function(trophy, state, refresh)
31+
SetIplPropState(AgentsFactory.interiorId, trophy, state, refresh)
32+
end
33+
},
34+
35+
Details = {
36+
sonar = "set_sonar",
37+
drive = "set_malware_drive",
38+
controller = "set_rc_controller",
39+
thermite = "set_thermal",
40+
key = "set_smartkey",
41+
drone = "set_pent_drone",
42+
case = "set_pent_emp",
43+
armor = "set_zanc_armor",
44+
keycard = "set_zanc_keycard",
45+
46+
Enable = function(details, state, refresh)
47+
SetIplPropState(AgentsFactory.interiorId, details, state, refresh)
48+
end
49+
},
50+
51+
LoadDefault = function()
52+
-- Exterior
53+
AgentsFactory.Ipl.Exterior.Load()
54+
55+
-- Interior
56+
AgentsFactory.Trophy.Enable(AgentsFactory.Trophy.idol01, true, false)
57+
AgentsFactory.Trophy.Enable(AgentsFactory.Trophy.idol02, true, false)
58+
59+
AgentsFactory.Details.Enable(AgentsFactory.Details.armor, true, false)
60+
AgentsFactory.Details.Enable(AgentsFactory.Details.sonar, true, false)
61+
AgentsFactory.Details.Enable(AgentsFactory.Details.drive, true, false)
62+
63+
RefreshInterior(AgentsFactory.interiorId)
64+
end
65+
}

dlc_agents/office.lua

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
-- McKenzie Field Hangar Office: 2149.71, 4787.76, -47.0
2+
exports("GetAgentsOffice", function()
3+
return AgentsOffice
4+
end)
5+
6+
AgentsOffice = {
7+
interiorId = 297985,
8+
9+
Style = {
10+
bed = "set_bed",
11+
mess = "collision_z9mhn5",
12+
13+
Set = function(style, refresh)
14+
AgentsOffice.Style.Clear(refresh)
15+
16+
SetIplPropState(AgentsOffice.interiorId, style, true, refresh)
17+
end,
18+
Clear = function(refresh)
19+
SetIplPropState(AgentsOffice.interiorId, {
20+
AgentsOffice.Style.bed,
21+
AgentsOffice.Style.mess
22+
}, false, refresh)
23+
end
24+
},
25+
26+
Details = {
27+
laptop = "set_laptop",
28+
ammo = "set_ammo",
29+
intel = "set_intel",
30+
weapons = "set_weapons",
31+
tools = "collision_9k04j35",
32+
booze = "set_24_2",
33+
34+
Enable = function(details, state, refresh)
35+
SetIplPropState(AgentsOffice.interiorId, details, state, refresh)
36+
end
37+
},
38+
39+
LoadDefault = function()
40+
AgentsOffice.Style.Set(AgentsOffice.Style.bed, false)
41+
42+
AgentsOffice.Details.Enable(AgentsOffice.Details.laptop, true, false)
43+
44+
RefreshInterior(AgentsOffice.interiorId)
45+
end
46+
}

fxmanifest.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,10 @@ client_scripts {
154154
, "dlc_summer/base.lua"
155155
, "dlc_summer/carrier.lua"
156156
, "dlc_summer/office.lua"
157+
158+
-- DLC Agents of Sabotage (Requires forced build 3407 or higher)
159+
, "dlc_agents/base.lua"
160+
, "dlc_agents/factory.lua"
161+
, "dlc_agents/office.lua"
162+
, "dlc_agents/airstrip.lua"
157163
}

stream/m24_2_garment_factory_1.ybn

13.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)