Skip to content

Commit 143e15c

Browse files
committed
bugfixes
1 parent c06e8a1 commit 143e15c

3 files changed

Lines changed: 19 additions & 18 deletions

File tree

addons/overthrow_main/functions/factions/NATO/AI/fn_NATOMortar.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ while {sleep 5+(random 5); ("8Rnd_82mm_Mo_shells" in getArtilleryAmmo[_mortar])
6060
_found = false;
6161
{
6262
if((_x select 0) == _mortar) exitWith {
63-
_range = (_x select 1) - round((_x select 0) * 0.25);
63+
_range = (_x select 1) - round((_x select 1) * 0.25);
6464
_x set [1,_range];
6565
_x set [2,[_mortarpos,random 360,_range] call SHK_pos];
6666
};

addons/overthrow_main/functions/fn_spawnTemplate.sqf

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,24 @@ _objects = [];
4242

4343
_pos = [(_buildingpos select 0)+(_rel select 0),(_buildingpos select 1)+(_rel select 1),(_buildingpos select 2)+(_rel select 2)];
4444

45-
//_o = _type createVehicle _pos;
46-
_o = createVehicle [_type, [0,0,0], [], 0, "CAN_COLLIDE"];
47-
48-
_o setPos _pos;
49-
_dir = _dir + _bdir;
50-
if(_dir > 359) then {
51-
_dir = _dir - 360;
45+
if(_type != "Site_Minefield") then {
46+
_o = createVehicle [_type, [0,0,0], [], 0, "CAN_COLLIDE"];
47+
48+
_o setPos _pos;
49+
_dir = _dir + _bdir;
50+
if(_dir > 359) then {
51+
_dir = _dir - 360;
52+
};
53+
_o setVectorDir _vdir;
54+
_o setDir _dir;
55+
56+
clearWeaponCargoGlobal _o;
57+
clearMagazineCargoGlobal _o;
58+
clearBackpackCargoGlobal _o;
59+
clearItemCargoGlobal _o;
60+
61+
_objects pushBack _o;
5262
};
53-
_o setVectorDir _vdir;
54-
_o setDir _dir;
55-
56-
clearWeaponCargoGlobal _o;
57-
clearMagazineCargoGlobal _o;
58-
clearBackpackCargoGlobal _o;
59-
clearItemCargoGlobal _o;
60-
61-
_objects pushBack _o;
6263
}foreach(_template);
6364

6465
_building setVariable ["furniture",_objects,false];

addons/overthrow_main/script_version.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
#define MAJOR 0
2020
#define MINOR 7
2121
#define PATCHLVL 4
22-
#define BUILD 4
22+
#define BUILD 5

0 commit comments

Comments
 (0)