Skip to content

Commit e303774

Browse files
committed
tweaks
1 parent 2be5c0d commit e303774

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

addons/overthrow_main.pbo

251 Bytes
Binary file not shown.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ if((random 100) > 90) exitWith {
5454
};
5555

5656
_weapon = selectRandom OT_allBLUSMG;
57+
if((call OT_fnc_getControlledPopulation) > 1000) then {
58+
_weapon = selectRandom OT_allBLURifles;
59+
};
5760
_base = [_weapon] call BIS_fnc_baseWeapon;
5861
_magazine = (getArray (configFile / "CfgWeapons" / _base / "magazines")) select 0;
5962
_unit addMagazineGlobal _magazine;
@@ -69,7 +72,7 @@ if((random 100) > 80) exitWith {
6972
_unit addPrimaryWeaponItem "optic_Aco_smg"
7073
};
7174

72-
_weapon = OT_NATO_weapons_Pistols call BIS_fnc_selectRandom;
75+
_weapon = OT_allBLUPistols call BIS_fnc_selectRandom;
7376
_base = [_weapon] call BIS_fnc_baseWeapon;
7477
_magazine = (getArray (configFile / "CfgWeapons" / _base / "magazines")) select 0;
7578
_unit addMagazineGlobal _magazine;

addons/overthrow_main/functions/actions/fn_build.sqf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ buildOnMouseMove = {
100100
modeVisual setPos modeValue;
101101
modeVisual setVectorDirAndUp [[0,0,-1],[0,1,0]];
102102
modeTarget setVectorDirAndUp [[0,1,0],[0,1,0]];
103+
modeTarget setDir buildRotation;
103104

104105
if(modeMode == 0) then {
105106
if(surfaceIsWater modeValue || (modeTarget distance modeCenter > modeMax) || ({!(_x isKindOf "Man") && (typeof _x != OT_flag_IND) && !(_x isEqualTo modeTarget) && !(_x isEqualTo modeVisual)} count(nearestObjects [modeTarget,[],10]) > 0)) then {

addons/overthrow_main/functions/fn_initVar.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ OT_allBLUOffensiveVehicles = [];
559559
_base call {
560560
_itemType = ([_cls] call BIS_fnc_itemType) select 1;
561561
if(_itemType isEqualTo "MachineGun") exitWith {OT_allBLUMachineGuns pushBackUnique _base};
562-
if((_this select [0,7]) == "srifle_") exitWith {OT_allBLUSniperRifles pushBackUnique _base};
562+
if((_this select [0,7]) == "srifle_" || (_this_this isKindOf ["Rifle_Long_Base_F", configFile >> "CfgWeapons"])) exitWith {OT_allBLUSniperRifles pushBackUnique _base};
563563
if((_this find "_GL_") > -1) exitWith {OT_allBLUGLRifles pushBackUnique _base};
564564
if((_this find "SMG") > -1) exitWith {OT_allBLUSMG pushBackUnique _base};
565565
OT_allBLURifles pushBackUnique _base

addons/overthrow_main/missions/factionweapons.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ if(count _roads > 0) then {
1212

1313
private _items = [];
1414

15-
private _itemcls = selectRandom OT_allCheapRifles;
15+
private _itemcls = selectRandom (OT_allBLURifles + OT_allBLUGLRifles + OT_allBLUMachineGuns);
1616
private _itemName = _itemcls call OT_fnc_weaponGetName;
1717
private _cost = (cost getVariable [_itemcls,[1]]) select 0;
18-
private _numitems = floor(5 + random 5);
18+
private _numitems = floor(5 + random 15);
1919

2020
private _params = [_destination,_faction,_itemcls,_numitems];
2121
private _markerPos = _destination;

0 commit comments

Comments
 (0)