Skip to content

Commit f62c752

Browse files
committed
Merge branch 'dev'
2 parents c5fba79 + 6302e1d commit f62c752

83 files changed

Lines changed: 2050 additions & 711 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

addons/overthrow_main.pbo

48.6 KB
Binary file not shown.

addons/overthrow_main/CfgFunctions.hpp

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ class CfgFunctions
104104
class illegalInCar {};
105105
class detectedByReputation {};
106106
class detectedByReputationNATO {};
107+
class gangRep {};
107108
};
108109

109110
class Interaction
@@ -140,6 +141,7 @@ class CfgFunctions
140141
class notifyMinor {};
141142
class notifyBig {};
142143
class notifyGood {};
144+
class notifyBad {};
143145
class notifySilent {};
144146
class notifyVehicle {};
145147
class playerDecision {};
@@ -256,10 +258,6 @@ class CfgFunctions
256258
class sell {};
257259
class sellAll {};
258260

259-
/* Gun Dealer */
260-
class getMission {};
261-
class assignMission {};
262-
263261
/* Factory */
264262
class factoryQueueAdd {};
265263
class factoryQueueRemove {};
@@ -276,6 +274,10 @@ class CfgFunctions
276274

277275
/* Jobs */
278276
class setJobWaypoint {};
277+
class requestJobResistance {};
278+
class requestJobGang {};
279+
class requestJobShop {};
280+
class requestJobFaction {};
279281

280282
/* Safe */
281283
class safePutMoney {};
@@ -332,6 +334,7 @@ class CfgFunctions
332334
class nearestLocation {};
333335
class nearestMobster {};
334336
class nearestObjective {};
337+
class nearestObjectiveNoComms {};
335338
class nearestPositionRegion {};
336339
class nearestTown {};
337340
class getRegion {};
@@ -577,13 +580,17 @@ class CfgFunctions
577580
class formOrJoinGang {};
578581
class formGang {};
579582
class addToGang {};
583+
class gangJoinResistance {};
580584
};
581585

582586
class GUER
583587
{
584588
file = "\overthrow_main\functions\factions\GUER";
585589
class jobSystem {};
586590
class assignJob {};
591+
class acceptJob {};
592+
class denyJob {};
593+
class startJob {};
587594
class jobLoop {};
588595
class GUERLoop {};
589596
};
@@ -604,6 +611,7 @@ class CfgFunctions
604611
{
605612
file = "\overthrow_main\functions\util";
606613
class getOwner {};
614+
class getOwnerUnit {};
607615
class hasOwner {};
608616
class setOwner {};
609617
class unitStock {};
@@ -612,6 +620,8 @@ class CfgFunctions
612620
class sortByInplace {};
613621
class findReplace {};
614622
class exportPrices {};
623+
class datestamp {};
624+
class logVerbose {};
615625
};
616626

617627
/*

addons/overthrow_main/CfgVehicles.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class CfgVehicles {
3333
//Overthrow Vehicles
3434
class I_Truck_02_box_F;
3535
class OT_I_Truck_recovery : I_Truck_02_box_F {
36+
scope = 2;
37+
author = "ARMAzac";
3638
displayName = "KamAZ Recovery";
3739
class Library {
3840
libTextDesc = "The Field Assistance and Recovery Truck (FART) is a specialized heavy truck used for field repairs and gear recovery after a battle. It can recover all items and bodies within a 150m radius into it's cargohold.";

addons/overthrow_main/CfgWeapons.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ class CfgWeapons {
3535
class ItemInfo: InventoryItem_Base_F {
3636
mass = 250;
3737
};
38+
};
39+
class OT_Lumber: OT_ItemCore {
40+
scope = 2;
41+
picture = "\overthrow_main\ui\items\wood_x_ca.paa";
42+
displayName = "Lumber";
43+
descriptionShort = "Lumber or timber is a type of wood that has been processed into beams and planks, a stage in the process of wood production.";
44+
descriptionUse = "";
45+
class ItemInfo: InventoryItem_Base_F {
46+
mass = 200;
47+
};
3848
};
3949
class OT_Steel: OT_ItemCore {
4050
scope = 2;

addons/overthrow_main/campaign/missions/OverthrowMpLivonia.Enoch/data/economy.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ OT_economicData = [
55
[[5180.36,10351,0],"Gliniska Farm"],
66
[[1352.23,8005,0],"Topolin Farm"],
77
[[1223.91,8923.21,0],"Topolin Quarry"],
8-
[[5210.57,5668.39,0],"Huta Sawmill"]
8+
[[5210.57,5668.39,0],"Huta Sawmill","OT_Wood","OT_Lumber"]
99
];
1010
OT_factoryPos = [7343.56,2838.22,0];
1111
OT_factoryVehicleSpawn = [7350.82,2841.75,0];

addons/overthrow_main/campaign/missions/OverthrowMpTanoa.Tanoa/data/economy.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ OT_economicData = [
44
[[9456.82,7552.04,0],"Lami Lumberyard","","OT_Wood"],
55
[[8389.24,10229.8,0],"Tanoa Sugar Company","OT_Sugarcane","OT_Sugar"],
66
[[10945.1,7860.1,0],"Kotomo Banana Plantation","","ACE_Banana"],
7-
[[11761.2,6949.91,0],"Sawmill","OT_Wood"],
7+
[[11761.2,6949.91,0],"Sawmill","OT_Wood","OT_Lumber"],
88
[[5511.58,11888.2,0],"Saint-Julien Lumberyard","","OT_Wood"],
99
[[8878.1,11889.1,0],"Galili Lumberyard","","OT_Wood"],
1010
[[12507.4,7820.99,0],"Ouméré Banana Plantations","","ACE_Banana"],

addons/overthrow_main/campaign/missions/OverthrowSpTanoa.Tanoa/data/economy.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ OT_economicData = [
44
[[9456.82,7552.04,0],"Lami Lumberyard","","OT_Wood"],
55
[[8389.24,10229.8,0],"Tanoa Sugar Company","OT_Sugarcane","OT_Sugar"],
66
[[10945.1,7860.1,0],"Kotomo Banana Plantation","","ACE_Banana"],
7-
[[11761.2,6949.91,0],"Sawmill","OT_Wood"],
7+
[[11761.2,6949.91,0],"Sawmill","OT_Wood","OT_Lumber"],
88
[[5511.58,11888.2,0],"Saint-Julien Lumberyard","","OT_Wood"],
99
[[8878.1,11889.1,0],"Galili Lumberyard","","OT_Wood"],
1010
[[12507.4,7820.99,0],"Ouméré Banana Plantations","","ACE_Banana"],
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
OT_gangNames = [
2+
"Sons of %2",
3+
"%1 Boyz",
4+
"Sons of Anarchy",
5+
"%1 People's Front",
6+
"People's Front of %1",
7+
"Bloodhound Gang",
8+
"Legion of the Concrete Jungle",
9+
"Gangsters Incorporated",
10+
"ACAB",
11+
"Devil's Tribe",
12+
"%1 Raiders",
13+
"Neighbourhood Bullies",
14+
"Dungeons and Dragons",
15+
"The Crackheads",
16+
"The Snitches",
17+
"Organised Morons",
18+
"The Gay Mafia",
19+
"The %1 Death Squad",
20+
"Raiders of %1",
21+
"The Always Sunny in %1 Gang",
22+
"%1 Crew",
23+
"Cool and the Gang",
24+
"Ganja Boyz",
25+
"NWA",
26+
"Angel Cartel",
27+
"The T-Birds",
28+
"Rat Pack",
29+
"Scooby Gang",
30+
"The Stooges",
31+
"Bad Company",
32+
"Black Sun Empire",
33+
"Teddy Killerz",
34+
"Zombie Cats",
35+
"The Runners" //Patreon: Fital Shell
36+
];

addons/overthrow_main/functions/AI/NPC/fn_initCivilianGroup.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ private _activeshops = server getVariable [format["activeshopsin%1",_town],[]];
1717

1818
private _dest = [];
1919

20-
if(count _activeshops > 0) then {
20+
if(count _activeshops > 0 && (random 100) > 50) then {
2121
_shop = selectRandom _activeshops;
22-
_dest = _shop select 0;
22+
_dest = (_shop select 0) findEmptyPosition [3,50,OT_civType_local];
2323
}else{
2424
_dest = _town call OT_fnc_getRandomRoadPosition;
2525
};

addons/overthrow_main/functions/AI/NPC/fn_initCrimLeader.sqf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ _unit setVariable ["hometown",_town,false];
1212
[_unit, (OT_voices_local call BIS_fnc_selectRandom)] remoteExecCall ["setSpeaker", 0, _unit];
1313
_unit forceAddUniform (OT_CRIM_Clothes call BIS_fnc_selectRandom);
1414

15-
private _loadout = (format["gang%1",_gangid]) call OT_fnc_getRandomLoadout;
16-
17-
_unit setUnitLoadout [_loadout,true];
15+
private _gang = OT_civilians getVariable [format["gang%1",_gangid],[]];
16+
_unit setUnitLoadout [_gang select 5,true];
1817

1918
if((random 100) < 50) then {
2019
_unit addItem "OT_Ganja";

0 commit comments

Comments
 (0)