Skip to content

Commit 55199a9

Browse files
committed
more bugs
1 parent 7c9fd00 commit 55199a9

6 files changed

Lines changed: 38 additions & 30 deletions

File tree

addons/overthrow_main/campaign/missions/Overthrow.Malden/data/objectives.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
OT_objectiveData = [
22
[[9346.16,3783.97,0],"Malden Naval Base",400],
33
[[9687.4,3910.9,0],"East Island Base",800],
4-
[[1216.21,621.646,0],"Faro Base",400],
4+
[[1263.34,689.933,0],"Faro Base",400],
55
[[4917.22,8658.72,0],"Larche Base",250],
66
[[5384.13,3698.11,0],"Chemical Plant",600],
77
[[5111.3,7349.41,0],"Arudy Base",250]

addons/overthrow_main/campaign/missions/Overthrow.Malden/mission.sqm

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ class EditorData
1616
};
1717
class LayerIndexProvider
1818
{
19-
nextID=469;
19+
nextID=474;
2020
};
2121
class Camera
2222
{
23-
pos[]={7854.2075,43.982349,3087.0303};
24-
dir[]={-0.43173364,-0.42325979,0.79659659};
25-
up[]={-0.20169996,0.90598685,0.3721588};
26-
aside[]={0.87922704,6.5295171e-007,0.4765175};
23+
pos[]={1233.9298,45.340958,613.59607};
24+
dir[]={-0.10257814,-0.24268723,0.96469754};
25+
up[]={-0.02566319,0.9700973,0.24134192};
26+
aside[]={0.99442244,1.9163781e-007,0.10574175};
2727
};
2828
};
2929
binarizationWanted=0;
@@ -6719,7 +6719,7 @@ class Mission
67196719
dataType="Object";
67206720
class PositionInfo
67216721
{
6722-
position[]={1204.514,38.42271,614.09338};
6722+
position[]={1216.2902,45.955498,661.77649};
67236723
angles[]={0,4.1927366,0};
67246724
};
67256725
side="Empty";
@@ -6729,7 +6729,7 @@ class Mission
67296729
};
67306730
id=2175;
67316731
type="Land_Cargo_Tower_V1_F";
6732-
atlOffset=-0.2177887;
6732+
atlOffset=-0.42855072;
67336733
};
67346734
class Item73
67356735
{
@@ -6887,7 +6887,7 @@ class Mission
68876887
class PositionInfo
68886888
{
68896889
position[]={7811.9946,7.59831,3111.0527};
6890-
angles[]={-0,1.2748219,0};
6890+
angles[]={0,1.2748219,0};
68916891
};
68926892
side="Empty";
68936893
flags=4;

addons/overthrow_main/functions/warehouse/fn_findHelmetInWarehouse.sqf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ private _possible = [];
55
if(typename _d == "ARRAY") then {
66
private _cls = _d select 0;
77
private _num = _d select 1;
8-
if(typename _num == "SCALAR") then {
9-
if(_num > 0 and (_cls in OT_allHelmets)) then {
10-
_possible pushback _cls;
8+
if(!isNil "_num") then {
9+
if(typename _num == "SCALAR") then {
10+
if(_num > 0 and (_cls in OT_allHelmets)) then {
11+
_possible pushback _cls;
12+
};
1113
};
1214
}else{
1315
warehouse setvariable [_x,nil,true];

addons/overthrow_main/functions/warehouse/fn_findScopeInWarehouse.sqf

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ private _possible = [];
66
if(typename _d == "ARRAY") then {
77
private _cls = _d select 0;
88
private _num = _d select 1;
9-
if(typename _num == "SCALAR") then {
10-
if(_num > 0 and (_cls in OT_allOptics)) then {
11-
private _allModes = "true" configClasses ( configFile >> "cfgWeapons" >> _cls >> "ItemInfo" >> "OpticsModes" );
12-
_max = 0;
13-
{
14-
_mode = configName _x;
15-
_max = _max max getNumber (configFile >> "cfgWeapons" >> _cls >> "ItemInfo" >> "OpticsModes" >> _mode >> "distanceZoomMax");
16-
}foreach(_allModes);
9+
if(!isNil "_num") then {
10+
if(typename _num == "SCALAR") then {
11+
if(_num > 0 and (_cls in OT_allOptics)) then {
12+
private _allModes = "true" configClasses ( configFile >> "cfgWeapons" >> _cls >> "ItemInfo" >> "OpticsModes" );
13+
_max = 0;
14+
{
15+
_mode = configName _x;
16+
_max = _max max getNumber (configFile >> "cfgWeapons" >> _cls >> "ItemInfo" >> "OpticsModes" >> _mode >> "distanceZoomMax");
17+
}foreach(_allModes);
1718

18-
if(_max >= _range) then {_possible pushback _cls};
19+
if(_max >= _range) then {_possible pushback _cls};
20+
};
1921
};
2022
}else{
2123
warehouse setvariable [_x,nil,true];

addons/overthrow_main/functions/warehouse/fn_findVestInWarehouse.sqf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ private _possible = [];
55
if(typename _d == "ARRAY") then {
66
private _cls = _d select 0;
77
private _num = _d select 1;
8-
if(typename _num == "SCALAR") then {
9-
if(_num > 0 and (_cls in OT_allVests)) then {
10-
_possible pushback _cls;
8+
if(!isNil "_num") then {
9+
if(typename _num == "SCALAR") then {
10+
if(_num > 0 and (_cls in OT_allVests)) then {
11+
_possible pushback _cls;
12+
};
1113
};
1214
}else{
1315
warehouse setvariable [_x,nil,true];

addons/overthrow_main/functions/warehouse/fn_findWeaponInWarehouse.sqf

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ private _possible = [];
66
if(typename _d == "ARRAY") then {
77
private _cls = _d select 0;
88
private _num = _d select 1;
9-
if(typename _num == "SCALAR") then {
10-
if(_num > 0) then {
11-
private _weapon = [_cls] call BIS_fnc_itemType;
12-
private _weaponType = _weapon select 1;
13-
if(_weaponType == "AssaultRifle" and (_cls find "_GL_") > -1) then {_weaponType = "GrenadeLauncher"};
14-
if(_weaponType == _type) then {_possible pushback _cls};
9+
if(!isNil "_num") then {
10+
if(typename _num == "SCALAR") then {
11+
if(_num > 0) then {
12+
private _weapon = [_cls] call BIS_fnc_itemType;
13+
private _weaponType = _weapon select 1;
14+
if(_weaponType == "AssaultRifle" and (_cls find "_GL_") > -1) then {_weaponType = "GrenadeLauncher"};
15+
if(_weaponType == _type) then {_possible pushback _cls};
16+
};
1517
};
1618
}else{
1719
warehouse setvariable [_x,nil,true];

0 commit comments

Comments
 (0)