Skip to content

Commit 0a32778

Browse files
committed
Tweaks
1 parent e01649b commit 0a32778

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

addons/overthrow_main.pbo

172 Bytes
Binary file not shown.

addons/overthrow_main/functions/factions/NATO/fn_initNATO.sqf

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ if((server getVariable "StartupType") == "NEW" || (server getVariable ["NATOvers
103103
{
104104
_x params ["_pos","_name","_worth"];
105105
if !(_name in _abandoned) then {
106+
diag_log format["Overthrow: Initializing %1",_name];
106107
OT_NATOobjectives pushBack _x;
107108
server setVariable [format ["vehgarrison%1",_name],[],true];
108109

@@ -116,8 +117,10 @@ if((server getVariable "StartupType") == "NEW" || (server getVariable ["NATOvers
116117
_base = 24;
117118
_statics = OT_NATO_StaticGarrison_LevelThree;
118119
};
119-
if((random 100) < ((count _groundvehs)+_base)) then {
120-
_statics pushbackUnique (selectRandom _groundvehs);
120+
if((random 300) < ((count _groundvehs)+_base)) then {
121+
_veh = (selectRandom _groundvehs);
122+
diag_log format["Adding %1 to %2",_veh call OT_fnc_vehicleGetName,_name];
123+
_statics pushbackUnique _veh;
121124
};
122125
private _garrison = floor(_base + random(8));
123126

@@ -209,7 +212,7 @@ if((server getVariable "StartupType") == "NEW" || (server getVariable ["NATOvers
209212
_airvehs = OT_allBLUOffensiveVehicles select {_x isKindOf "Air"};
210213
{
211214
_name = _x;
212-
if((random 100) < (count _airvehs)) then {
215+
if((random 200) < (count _airvehs)) then {
213216
_type = selectRandom _airvehs;
214217
private _garrison = server getVariable [format["airgarrison%1",_name],[]];
215218
_garrison pushback _type;
@@ -219,11 +222,11 @@ if((server getVariable "StartupType") == "NEW" || (server getVariable ["NATOvers
219222

220223
//Distribute static AA to airfields
221224
{
222-
_name = _x;
225+
_x params ["","_name"];
223226
_vehs = server getVariable [format ["vehgarrison%1",_name],[]];
224227
_vehs = _vehs + OT_NATO_Vehicles_StaticAAGarrison;
225228
server setVariable [format ["vehgarrison%1",_name],_vehs,true];
226-
}foreach(_prilist);
229+
}foreach(OT_airportData);
227230

228231
diag_log "Overthrow: Setting up NATO checkpoints";
229232
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private _airgarrison = server getVariable [format["airgarrison%1",_name],[]];
216216
{
217217
private _vehtype = _x;
218218

219-
_pos = [_pos,20,_dir+90] call BIS_fnc_relPos;
219+
_pos = [_pos,28,_dir+90] call BIS_fnc_relPos;
220220

221221
private _veh = _vehtype createVehicle _pos;
222222
_veh setVariable ["airgarrison",_name,false];

0 commit comments

Comments
 (0)