Skip to content

Commit 2de6aec

Browse files
committed
feat(YRV3): add auto-production
### Features/YimResupplierV3 - Added instant production triggers for all biker businesses. - Added auto-fill production for all biker businesses. - Refactored raw data, grouped everything in a table and moved it to the `/data` folder. - Added localized biker business labels and 3D coordinates instead of blip IDs. ### Modules/Audio - Refactored `StaticEmitter` into an object. ### API/Accessor - Added optional size parameter to the `At` method. ### API/Global Functions - Renamed `Await` to `TaskWait`. About time we stopped lying to ourselves.
1 parent 4173d30 commit 2de6aec

38 files changed

Lines changed: 1755 additions & 1243 deletions

SSV2/includes/data/globals_locals.lua

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,60 @@ return {
7070
capture_group = 1
7171
}
7272
},
73+
biker_trigger_production_global = {
74+
description = "Trigger production for all biker businesses.",
75+
file = "freemode.c",
76+
LEGACY = {
77+
value = 1845250,
78+
pattern = [[(Global_\d{7})\[.*?(.*?)\]\.(f_\d{3}).(f_\d{3})\[.*?/(.*?)\].f_9 = .*?;]],
79+
capture_group = 1,
80+
offsets = {
81+
{
82+
value = 880,
83+
capture_group = 2,
84+
description = "playerID read size."
85+
},
86+
{
87+
value = 260,
88+
capture_group = 3
89+
},
90+
{
91+
value = 205,
92+
capture_group = 4
93+
},
94+
{
95+
value = 13,
96+
capture_group = 5,
97+
description = "business index read size."
98+
},
99+
},
100+
},
101+
ENHANCED = {
102+
value = 1845299,
103+
pattern = [[(Global_\d{7})\[.*?(.*?)\]\.(f_\d{3}).(f_\d{3})\[.*?/(.*?)\].f_9 = .*?;]],
104+
capture_group = 1,
105+
offsets = {
106+
{
107+
value = 883,
108+
capture_group = 2,
109+
description = "playerID read size."
110+
},
111+
{
112+
value = 260,
113+
capture_group = 3
114+
},
115+
{
116+
value = 205,
117+
capture_group = 4
118+
},
119+
{
120+
value = 13,
121+
capture_group = 5,
122+
description = "business index read size."
123+
},
124+
},
125+
}
126+
},
73127
gb_contraband_buy_local_1 = {
74128
description = "Contraband Buy Local 1",
75129
file = "gb_contraband_buy.c",
@@ -245,7 +299,7 @@ return {
245299
}
246300
},
247301
gb_gunrunning_sell_local_2 = {
248-
description = "Bunker Sell Local 2",
302+
description = "Amount delivered.",
249303
file = "gb_gunrunning.c",
250304
LEGACY = {
251305
value = 1266,
@@ -270,6 +324,34 @@ return {
270324
}
271325
}
272326
},
327+
gb_gunrunning_sell_local_3 = {
328+
description = "Remaining delivery vehicles.",
329+
file = "gb_gunrunning.c",
330+
LEGACY = {
331+
value = 1266,
332+
pattern =
333+
[[for \(i = 0; i < func_\w+\(func_\w+\(\), func_\w+\(\),.*?(Local_\d{4})(\.f_\d{3}),.*?Local_\d{4}\.f_\d{3}\); i = i \+ 1\)]],
334+
capture_group = 1,
335+
offsets = {
336+
{
337+
value = 774,
338+
capture_group = 2
339+
}
340+
}
341+
},
342+
ENHANCED = {
343+
value = 1268,
344+
pattern =
345+
[[for \(i = 0; i < func_\w+\(func_\w+\(\), func_\w+\(\),.*?(Local_\d{4})(\.f_\d{3}),.*?Local_\d{4}\.f_\d{3}\); i = i \+ 1\)]],
346+
capture_group = 1,
347+
offsets = {
348+
{
349+
value = 774,
350+
capture_group = 2
351+
}
352+
}
353+
}
354+
},
273355
acid_lab_sell_local = {
274356
description = "Acid Lab Sell Local",
275357
file = "fm_content_acid_lab_sell.c",

0 commit comments

Comments
 (0)