Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
armazac committed Jun 6, 2017
1 parent c06e8a1 commit 143e15c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ while {sleep 5+(random 5); ("8Rnd_82mm_Mo_shells" in getArtilleryAmmo[_mortar])
_found = false;
{
if((_x select 0) == _mortar) exitWith {
_range = (_x select 1) - round((_x select 0) * 0.25);
_range = (_x select 1) - round((_x select 1) * 0.25);
_x set [1,_range];
_x set [2,[_mortarpos,random 360,_range] call SHK_pos];
};
Expand Down
33 changes: 17 additions & 16 deletions addons/overthrow_main/functions/fn_spawnTemplate.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,24 @@ _objects = [];

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

//_o = _type createVehicle _pos;
_o = createVehicle [_type, [0,0,0], [], 0, "CAN_COLLIDE"];

_o setPos _pos;
_dir = _dir + _bdir;
if(_dir > 359) then {
_dir = _dir - 360;
if(_type != "Site_Minefield") then {
_o = createVehicle [_type, [0,0,0], [], 0, "CAN_COLLIDE"];

_o setPos _pos;
_dir = _dir + _bdir;
if(_dir > 359) then {
_dir = _dir - 360;
};
_o setVectorDir _vdir;
_o setDir _dir;

clearWeaponCargoGlobal _o;
clearMagazineCargoGlobal _o;
clearBackpackCargoGlobal _o;
clearItemCargoGlobal _o;

_objects pushBack _o;
};
_o setVectorDir _vdir;
_o setDir _dir;

clearWeaponCargoGlobal _o;
clearMagazineCargoGlobal _o;
clearBackpackCargoGlobal _o;
clearItemCargoGlobal _o;

_objects pushBack _o;
}foreach(_template);

_building setVariable ["furniture",_objects,false];
Expand Down
2 changes: 1 addition & 1 deletion addons/overthrow_main/script_version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
#define MAJOR 0
#define MINOR 7
#define PATCHLVL 4
#define BUILD 4
#define BUILD 5

0 comments on commit 143e15c

Please sign in to comment.