Skip to content

Commit c06e8a1

Browse files
committed
bugfixes
1 parent d206fb1 commit c06e8a1

7 files changed

Lines changed: 19 additions & 19 deletions

File tree

addons/overthrow_main/functions/actions/fn_salvageWreck.sqf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ private _doSalvage = {
2323
"Vehicle is full, use a truck or ammobox for more storage" call OT_fnc_notifyMinor;
2424
};
2525

26+
closeDialog 0;
2627
private _toname = (typeof _veh) call OT_fnc_vehicleGetName;
2728
format["Salvaging wreck into %1",_toname] call OT_fnc_notifyMinor;
2829
player playMove "AinvPknlMstpSnonWnonDnon_medic_1";

addons/overthrow_main/functions/actions/fn_takeLegit.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sleep 5;
1111
_count = 0;
1212
_cls = _x select 0;
1313
_added = 0;
14-
if(_cls in (OT_allItems - OT_consumableItems)) then {
14+
if(_cls in OT_allItems) then {
1515
while {_count < (_x select 1)} do {
1616
if (player canAdd _cls) then {
1717
player addItem _cls;

addons/overthrow_main/functions/actions/fn_transferLegit.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ _doTransfer = {
4444
_cls = _d select 0;
4545
_num = _d select 1;
4646
if(_num > 0) then {
47-
if(_cls in (OT_allItems - OT_consumableItems)) then {
47+
if(_cls in OT_allItems) then {
4848
while {_count < _num} do {
4949
if !(_veh canAdd _cls) exitWith {_full = true;warehouse setVariable [_cls,_num - _count,true]};
5050
_veh addItemCargoGlobal [_cls,1];

addons/overthrow_main/functions/fn_initOverthrow.sqf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,6 @@ OT_centerPos = getArray (configFile >> "CfgWorlds" >> worldName >> "centerPositi
4343
call compile preprocessFileLineNumbers "initVar.sqf";
4444
call OT_fnc_initVar;
4545

46-
//Find markers
47-
OT_ferryDestinations = [];
48-
OT_NATO_control = [];
49-
OT_regions = [];
50-
{
51-
if((_x select [0,12]) == "destination_") then {OT_ferryDestinations pushback _x};
52-
if((_x select [0,8]) == "control_") then {OT_NATO_control pushback _x};
53-
if((_x select [0,7]) == "island_") then {OT_regions pushback _x};
54-
if((_x select [0,7]) == "region_") then {OT_regions pushback _x};
55-
}foreach(allMapMarkers);
56-
5746
if(isServer) then {
5847
diag_log "Overthrow: Server Pre-Init";
5948

addons/overthrow_main/functions/fn_initVar.sqf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,17 @@ OT_workshop = [
932932

933933
OT_loadingMessages = ["Adding Hidden Agendas","Adjusting Bell Curves","Aesthesizing Industrial Areas","Aligning Covariance Matrices","Applying Feng Shui Shaders","Applying Theatre Soda Layer","Asserting Packed Exemplars","Attempting to Lock Back-Buffer","Binding Sapling Root System","Breeding Fauna","Building Data Trees","Bureacritizing Bureaucracies","Calculating Inverse Probability Matrices","Calculating Llama Expectoration Trajectory","Calibrating Blue Skies","Charging Ozone Layer","Coalescing Cloud Formations","Cohorting Exemplars","Collecting Meteor Particles","Compounding Inert Tessellations","Compressing Fish Files","Computing Optimal Bin Packing","Concatenating Sub-Contractors","Containing Existential Buffer","Debarking Ark Ramp","Debunching Unionized Commercial Services","Deciding What Message to Display Next","Decomposing Singular Values","Decrementing Tectonic Plates","Deleting Ferry Routes","Depixelating Inner Mountain Surface Back Faces","Depositing Slush Funds","Destabilizing Economic Indicators","Determining Width of Blast Fronts","Deunionizing Bulldozers","Dicing Models","Diluting Livestock Nutrition Variables","Downloading Satellite Terrain Data","Exposing Flash Variables to Streak System","Extracting Resources","Factoring Pay Scale","Fixing Election Outcome Matrix","Flood-Filling Ground Water","Flushing Pipe Network","Gathering Particle Sources","Generating Jobs","Gesticulating Mimes","Graphing Whale Migration","Hiding Willio Webnet Mask","Implementing Impeachment Routine","Increasing Accuracy of RCI Simulators","Increasing Magmafacation","Initializing Rhinoceros Breeding Timetable","Initializing Robotic Click-Path AI","Inserting Sublimated Messages","Integrating Curves","Integrating Illumination Form Factors","Integrating Population Graphs","Iterating Cellular Automata","Lecturing Errant Subsystems","Mixing Genetic Pool","Modeling Object Components","Mopping Occupant Leaks","Normalizing Power","Obfuscating Quigley Matrix","Overconstraining Dirty Industry Calculations","Partitioning City Grid Singularities","Perturbing Matrices","Pixellating Nude Patch","Polishing Water Highlights","Populating Lot Templates","Preparing Sprites for Random Walks","Prioritizing Landmarks","Projecting Law Enforcement Pastry Intake","Realigning Alternate Time Frames","Reconfiguring User Mental Processes","Relaxing Splines","Removing Road Network Speed Bumps","Removing Texture Gradients","Removing Vehicle Avoidance Behavior","Resolving GUID Conflict","Reticulating Splines","Retracting Phong Shader","Retrieving from Back Store","Reverse Engineering Image Consultant","Routing Neural Network Infanstructure","Scattering Rhino Food Sources","Scrubbing Terrain","Searching for Llamas","Seeding Architecture Simulation Parameters","Sequencing Particles","Setting Advisor ","Setting Inner Deity ","Setting Universal Physical Constants","Sonically Enhancing Occupant-Free Timber","Speculating Stock Market Indices","Splatting Transforms","Stratifying Ground Layers","Sub-Sampling Water Data","Synthesizing Gravity","Synthesizing Wavelets","Time-Compressing Simulator Clock","Unable to Reveal Current Activity","Weathering Buildings","Zeroing Crime Network"];
934934

935+
//Find markers
936+
OT_ferryDestinations = [];
937+
OT_NATO_control = [];
938+
OT_regions = [];
939+
{
940+
if((_x select [0,12]) == "destination_") then {OT_ferryDestinations pushback _x};
941+
if((_x select [0,8]) == "control_") then {OT_NATO_control pushback _x};
942+
if((_x select [0,7]) == "island_") then {OT_regions pushback _x};
943+
if((_x select [0,7]) == "region_") then {OT_regions pushback _x};
944+
}foreach(allMapMarkers);
945+
935946
if(isServer) then {
936947
OT_varInitDone = true;
937948
publicVariable "OT_varInitDone";

addons/overthrow_main/functions/virtualization/fn_runVirtualization.sqf

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ OT_townSpawners = [
5757
params ["_spawntown","_spawnid"];
5858
{
5959
_hdl = [_spawntown,_spawnid] spawn _x;
60-
waitUntil {sleep 0.2;scriptDone _hdl};
61-
sleep 0.5;
6260
}foreach(OT_townSpawners);
6361
},[_town]] call OT_fnc_registerSpawner;
6462
}foreach(OT_allTowns);
@@ -81,14 +79,14 @@ while{true} do {
8179
if !(_start call OT_fnc_inSpawnDistance) then {
8280
if((time - _time) > 30) then { //Ensures it stays spawned for minimum 30 seconds
8381
OT_allSpawned deleteAt _spawnidx;
84-
_x call OT_fnc_despawn;
82+
_x spawn OT_fnc_despawn;
8583
sleep 0.1;
8684
};
8785
};
8886
}else{
8987
if (_start call OT_fnc_inSpawnDistance) then {
9088
OT_allSpawned pushback _id;
91-
_x call OT_fnc_spawn;
89+
_x spawn OT_fnc_spawn;
9290
sleep 0.1;
9391
};
9492
};
@@ -97,14 +95,14 @@ while{true} do {
9795
if !((_start call OT_fnc_inSpawnDistance) || (_end call OT_fnc_inSpawnDistance)) then {
9896
if((time - _time) > 30) then {
9997
OT_allSpawned deleteAt _spawnidx;
100-
_x call OT_fnc_despawn;
98+
_x spawn OT_fnc_despawn;
10199
sleep 0.1;
102100
};
103101
};
104102
}else{
105103
if ((_start call OT_fnc_inSpawnDistance) || (_end call OT_fnc_inSpawnDistance)) then {
106104
OT_allSpawned pushback _id;
107-
_x call OT_fnc_spawn;
105+
_x spawn OT_fnc_spawn;
108106
sleep 0.1;
109107
};
110108
};

addons/overthrow_main/functions/virtualization/spawners/fn_spawnNATOCheckpoint.sqf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ private _vehtype = OT_vehTypes_civ call BIS_Fnc_selectRandom;
1616

1717
private _roadscon = roadsConnectedto _road;
1818
private _dir = [_road, _roadscon select 0] call BIS_fnc_DirTo;
19+
if(isNil "_dir") then {_dir = 90};
1920

2021
private _vehs = [_start,_dir,OT_tpl_checkpoint] call BIS_fnc_objectsMapper;
2122

0 commit comments

Comments
 (0)