Remove old remains of the arty support code

This commit is contained in:
Wyqer 2018-04-07 18:13:45 +02:00
parent 47996293ee
commit aed3de6f99
No known key found for this signature in database
GPG Key ID: 2D3FEE0019ED51F5
11 changed files with 1 additions and 147 deletions

View File

@ -458,23 +458,6 @@ vehicle_refuel_sources = [
"RHS_Ural_Fuel_VDV_01"
];
// Classnames of artillery vehicles or statics which should be linked to the support system. (Currently deactivated)
/*KP_liberation_artySupp = [
"B_Mortar_01_F",
"B_T_Mortar_01_F",
"B_MBT_01_arty_F",
"B_T_MBT_01_arty_F",
"B_MBT_01_mlrs_F",
"B_T_MBT_01_mlrs_F",
"rhsusf_m109_usarmy",
"rhsusf_m109d_usarmy",
"RHS_M252_WD",
"RHS_M252_D",
"RHS_M119_WD",
"RHS_M119_D",
"UK3CB_BAF_Static_L16_Deployed_MTP"
];*/
// Classnames of boats, so they can be built on water.
boats_names = [
"B_Boat_Transport_01_F",

View File

@ -1,5 +0,0 @@
if (isDedicated) exitWith {};
[KP_liberation_suppMod_req, KP_liberation_suppMod_arty] call BIS_fnc_removeSupportLink;
deleteVehicle KP_liberation_suppMod_req;
KP_liberation_suppMod_req = nil;

View File

@ -194,32 +194,4 @@ while {true} do {
uiSleep 12;
hint "";
};
// Arty Supp deactivated for now
/*if (KP_liberation_suppMod_enb > 0) then {
waitUntil {sleep 1; (!isNil "KP_liberation_suppMod_grp") && (!isNil "KP_liberation_suppMod_arty")};
private _access = false;
switch (KP_liberation_suppMod_enb) do {
case 1: {if (player == ([] call F_getCommander)) then {_access = true};};
case 2: {if ((getPlayerUID player) in KP_liberation_suppMod_whitelist) then {_access = true};};
default {_access = true;};
};
if (_access) then {
if (isNil "KP_liberation_suppMod_handle") then {KP_liberation_suppMod_handle = scriptNull;};
if (isNull KP_liberation_suppMod_handle) then {
KP_liberation_suppMod_handle = [KP_liberation_suppMod_arty] execVM "A3\modules_f\supports\init_provider.sqf";
};
if (isNil "KP_liberation_suppMod_req") then {
KP_liberation_suppMod_req = KP_liberation_suppMod_grp createUnit ["SupportRequester", KP_liberation_suppMod_grp, [], 0, "NONE"];
//KP_liberation_suppMod_req spawn BIS_fnc_moduleSupportsInitRequester;
[KP_liberation_suppMod_req] execVM "A3\modules_f\supports\init_requester.sqf";
{
[KP_liberation_suppMod_req, _x, -1] call BIS_fnc_limitSupport;
} forEach ["Artillery","CAS_Heli","CAS_Bombing","UAV","Drop","Transport"];
};
if ((count (synchronizedObjects player)) == 0) then {
[player, KP_liberation_suppMod_req, KP_liberation_suppMod_arty] call BIS_fnc_addSupportLink;
};
};
};*/
};

View File

@ -1,17 +0,0 @@
if (KP_liberation_suppMod_enb > 0) then {
KP_liberation_suppMod_grp = createGroup [sideLogic, true];
KP_liberation_suppMod_req = KP_liberation_suppMod_grp createUnit ["SupportRequester", getPos huronspawn, [], 0, "NONE"];
//KP_liberation_suppMod_req spawn BIS_fnc_moduleSupportsInitRequester;
[KP_liberation_suppMod_req] execVM "A3\modules_f\supports\init_requester.sqf";
{
[KP_liberation_suppMod_req, _x, -1] call BIS_fnc_limitSupport;
} forEach ["Artillery","CAS_Heli","CAS_Bombing","UAV","Drop","Transport"];
KP_liberation_suppMod_arty = KP_liberation_suppMod_grp createUnit ["SupportProvider_Artillery", KP_liberation_suppMod_grp, [], 0, "NONE"];
//KP_liberation_suppMod_arty spawn BIS_fnc_moduleSupportsInitProvider;
[KP_liberation_suppMod_arty] execVM "A3\modules_f\supports\init_provider.sqf";
publicVariable "KP_liberation_suppMod_grp";
publicVariable "KP_liberation_suppMod_arty";
KP_liberation_suppMod_created = true; publicVariable "KP_liberation_suppMod_created";
};

View File

@ -1,42 +0,0 @@
params ["_vehicle"];
if (!isServer) exitWith {};
if (isNil "kp_supp_vehicles") then {
kp_supp_vehicles = [];
};
if (_vehicle in kp_supp_vehicles) exitWith {};
private _id = count kp_supp_vehicles;
private _synced = false;
private _crew_grp = [];
kp_supp_vehicles pushBack _vehicle;
while {true} do {
private _crew_old = ({alive _x} count (crew _vehicle));
if ((_crew_old > 0) && !_synced) then {
_synced = true;
_vehicle synchronizeObjectsAdd [KP_liberation_suppMod_arty];
KP_liberation_suppMod_arty synchronizeObjectsAdd [_vehicle];
_crew_grp = group _vehicle;
} else {
if ((_crew_old == 0) && _synced) then {
_synced = false;
{
_x synchronizeObjectsRemove [KP_liberation_suppMod_arty];
KP_liberation_suppMod_arty synchronizeObjectsRemove [_x];
} forEach (units _crew_grp);
};
};
BIS_supp_refresh = TRUE;
publicVariable "BIS_supp_refresh";
waitUntil {
sleep 1;
({alive _x} count (crew _vehicle)) != _crew_old;
};
};

View File

@ -200,11 +200,6 @@ if (!isNil "greuh_liberation_savegame") then {
stats_saves_loaded = stats_saves_loaded + 1;
// Arty Supp deactivated for now
/*if (KP_liberation_suppMod_enb > 0) then {
waitUntil {!isNil "KP_liberation_suppMod_created"};
};*/
private _spawnedBuildings = [];
{
@ -238,12 +233,6 @@ if (!isNil "greuh_liberation_savegame") then {
_hascrew = _x param [4, false];
};
// Arty Supp deactivated for now
/*if ((KP_liberation_suppMod_enb > 0) && (_nextclass in KP_liberation_artySupp)) then {
[_nextbuilding] remoteExec ["arty_monitor", 2];
};*/
if (_hascrew) then {
[ _nextbuilding ] call F_forceBluforCrew;
};

View File

@ -14,14 +14,7 @@ while { true } do {
_zeusunits = [];
{
if ((side group _x == GRLIB_side_friendly) && (_x distance startbase > 1000) && alive _x) then {
// Arty Supp deactivated for now
/*if !(isNil "BIS_SUPP_HQ_WEST") then {
if !(_x == BIS_SUPP_HQ_WEST) then {
_zeusunits pushback _x;
};
} else {*/
_zeusunits pushback _x;
//};
_zeusunits pushback _x;
};
} foreach allUnits;

View File

@ -30,7 +30,6 @@ remote_call_prisonner = compileFinal preprocessFileLineNumbers "scripts\client\r
remote_call_switchmove = compileFinal preprocessFileLineNumbers "scripts\client\remotecall\remote_call_switchmove.sqf";
remote_call_intel = compileFinal preprocessFileLineNumbers "scripts\client\remotecall\remote_call_intel.sqf";
remote_call_incoming = compileFinal preprocessFileLineNumbers "scripts\client\remotecall\remote_call_incoming.sqf";
// Arty Supp deactivated for now - remote_call_removeSuppReq = compileFinal preprocessFileLineNumbers "scripts\client\remotecall\remote_call_removeSuppReq.sqf";
civinfo_notifications = compileFinal preprocessFileLineNumbers "scripts\client\civinformant\civinfo_notifications.sqf";
civinfo_escort = compileFinal preprocessFileLineNumbers "scripts\client\civinformant\civinfo_escort.sqf";

View File

@ -65,11 +65,6 @@ if (isServer) then {
_unit connectTerminalToUAV objNull;
// Eject Player from vehicle
if (vehicle _unit != _unit) then {moveOut _unit;};
// Remove Support Link and delete Requester Module
// Arty Supp deactivated for now
/*if ((count (synchronizedObjects _unit)) > 0) then {
remoteExec ["remote_call_removeSuppReq", _unit];
};*/
};
if (_unit isKindOf "Man") then {

View File

@ -232,13 +232,6 @@ class Params
texts[] = {$STR_PARAMS_DISABLED, $STR_PARAMS_ENABLED};
default = 1;
};
// Arty Supp deactivated for now
/*class SuppMod {
title = $STR_PARAMS_SUPPMOD;
values[] = {0, 1, 2, 3};
texts[] = {$STR_PARAMS_DISABLED, $STR_PARAMS_COMMANDER, $STR_PARAMS_WHITELISTONLY, $STR_PARAMS_EVERYONE};
default = 0;
};*/
class TeamkillPenalty {
title = $STR_PARAM_TEAMKILL_PENALTY;
values[] = {1,0};

View File

@ -19,9 +19,3 @@ GRLIB_whitelisted_steamids = [
GRLIB_whitelisted_names = [
];
// Array with SteamIDs of players who should be able to access the support module functionality if you set the parameter to "Whitelist only"
// Arty Supp deactivated for now
/*KP_liberation_suppMod_whitelist = [
];*/