Arty Support deactivated, as there are still issues in MP

This commit is contained in:
Christian 2017-09-27 09:10:27 +02:00
parent 464aac8ae7
commit 4d277843bf
12 changed files with 41 additions and 32 deletions

View File

@ -318,8 +318,8 @@ vehicle_refuel_sources = [
"BW_LKW15T_Fuel_F"
];
// Classnames of artillery vehicles or statics which should be linked to the support system.
KP_liberation_artySupp = [
// 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",
@ -333,7 +333,7 @@ KP_liberation_artySupp = [
"RHS_M119_WD",
"RHS_M119_D",
"UK3CB_BAF_Static_L16_Deployed_MTP"
];
];*/
// Classnames of boats, so they can be built on water.
boats_names = [

View File

@ -309,9 +309,10 @@ while { true } do {
_vehicle setVectorUp surfaceNormal position _vehicle;
};
if ((KP_liberation_suppMod_enb > 0) && (_classname in KP_liberation_artySupp)) then {
// Arty Supp deactivated for now
/*if ((KP_liberation_suppMod_enb > 0) && (_classname in KP_liberation_artySupp)) then {
[_vehicle] remoteExec ["arty_monitor", 2];
};
};*/
if ( (_classname in uavs) || manned ) then {
[ _vehicle ] call F_forceBluforCrew;

View File

@ -23,10 +23,10 @@ waitUntil { cinematic_camera_stop };
_basenamestr = "Operation Base";
while { true } do {
while {true} do {
waitUntil {
sleep 0.1;
( GRLIB_force_redeploy || (player distance (getmarkerpos GRLIB_respawn_marker) < 50) ) && vehicle player == player && alive player && !dialog && howtoplay == 0
(GRLIB_force_redeploy || (player distance (getmarkerpos GRLIB_respawn_marker) < 50)) && vehicle player == player && alive player && !dialog && howtoplay == 0
};
if (KP_liberation_debug) then {private _text = format ["[KP LIBERATION] [DEBUG] Redeploy management executed at: %1", debug_source];_text remoteExec ["diag_log",2];};
@ -211,7 +211,8 @@ while { true } do {
};
};
if (KP_liberation_suppMod_enb > 0) then {
// 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")};
_access = false;
switch (KP_liberation_suppMod_enb) do {
@ -241,5 +242,5 @@ while { true } do {
};
if (KP_liberation_debug) then {private _text = format ["[KP LIBERATION] [DEBUG] [SUPP] Source: %1 - Synced to %2 -> %3", debug_source, (synchronizedObjects player), synchronizedObjects ((synchronizedObjects player) select 0)];_text remoteExec ["diag_log",2];};
};
};
};*/
};

View File

@ -168,9 +168,10 @@ if ( !isNil "greuh_liberation_savegame" ) then {
stats_saves_loaded = stats_saves_loaded + 1;
if (KP_liberation_suppMod_enb > 0) then {
// Arty Supp deactivated for now
/*if (KP_liberation_suppMod_enb > 0) then {
waitUntil {!isNil "KP_liberation_suppMod_created"};
};
};*/
{
_nextclass = _x select 0;
@ -201,9 +202,10 @@ if ( !isNil "greuh_liberation_savegame" ) then {
_nextbuilding setVariable ["GRLIB_saved_pos", _nextpos, false];
};
if ((KP_liberation_suppMod_enb > 0) && (_nextclass in KP_liberation_artySupp)) then {
// 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,13 +14,14 @@ while { true } do {
_zeusunits = [];
{
if ((side group _x == GRLIB_side_friendly) && (_x distance startbase > 1000) && alive _x) then {
if !(isNil "BIS_SUPP_HQ_WEST") then {
// Arty Supp deactivated for now
/*if !(isNil "BIS_SUPP_HQ_WEST") then {
if !(_x == BIS_SUPP_HQ_WEST) then {
_zeusunits pushback _x;
};
} else {
} else {*/
_zeusunits pushback _x;
};
//};
};
} foreach allUnits;

View File

@ -38,9 +38,10 @@ manage_one_sector = compileFinal preprocessFileLineNumbers "scripts\server\secto
wait_to_spawn_sector = compileFinal preprocessFileLineNumbers "scripts\server\sector\wait_to_spawn_sector.sqf";
// Arty Monitor
arty_monitor = compileFinal preprocessFileLineNumbers "scripts\server\game\arty_monitor.sqf";
// Arty Supp deactivated for now
/*arty_monitor = compileFinal preprocessFileLineNumbers "scripts\server\game\arty_monitor.sqf";
[] spawn compileFinal preprocessFileLineNumbers "scripts\server\base\create_suppMods.sqf";
[] spawn compileFinal preprocessFileLineNumbers "scripts\server\base\create_suppMods.sqf";*/
[] spawn compileFinal preprocessFileLineNumbers "scripts\server\base\startgame.sqf";
[] spawn compileFinal preprocessFileLineNumbers "scripts\server\base\huron_manager.sqf";
[] spawn compileFinal preprocessFileLineNumbers "scripts\server\base\startvehicle_spawn.sqf";

View File

@ -31,9 +31,9 @@ if ( isMultiplayer ) then {
KP_liberation_ailogistics = ["AiLogistics",1] call bis_fnc_getParamValue;
KP_liberation_ace = ["AceEnable",0] call bis_fnc_getParamValue;
KP_liberation_debug = ["DebugEnable",0] call bis_fnc_getParamValue;
KP_liberation_suppMod_enb = ["SuppMod",1] call BIS_fnc_getParamValue;
// Arty Supp deactivated for now - KP_liberation_suppMod_enb = ["SuppMod",1] call BIS_fnc_getParamValue;
KP_liberation_restart = ["ServerRestart",0] call BIS_fnc_getParamValue;
KP_liberation_cr_param_buildings = ["CR_Building",0] call BIS_fnc_getParamValue;
KP_liberation_cr_param_buildings = ["CR_Building",0] call BIS_fnc_getParamValue;
} else {
GRLIB_difficulty_modifier = 2;
GRLIB_time_factor = 12;
@ -67,7 +67,7 @@ if ( isMultiplayer ) then {
KP_liberation_ailogistics = 1;
KP_liberation_ace = 0;
KP_liberation_debug = 0;
KP_liberation_suppMod_enb = 1;
// Arty Supp deactivated for now - KP_liberation_suppMod_enb = 1;
KP_liberation_restart = 0;
KP_liberation_cr_param_buildings = 0;
};

View File

@ -30,7 +30,7 @@ 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";
remote_call_removeSuppReq = compileFinal preprocessFileLineNumbers "scripts\client\remotecall\remote_call_removeSuppReq.sqf";
// Arty Supp deactivated for now - remote_call_removeSuppReq = compileFinal preprocessFileLineNumbers "scripts\client\remotecall\remote_call_removeSuppReq.sqf";
[] spawn compileFinal preprocessFileLineNumbers "scripts\shared\scan_skill.sqf";
[] spawn compileFinal preprocessFileLineNumbers "scripts\shared\diagnostics.sqf";

View File

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

View File

@ -220,12 +220,13 @@ class Params
texts[] = {$STR_PARAMS_DISABLED, $STR_PARAMS_ENABLED};
default = 1;
};
class SuppMod {
// 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

@ -21,6 +21,7 @@ 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"
KP_liberation_suppMod_whitelist = [
// Arty Supp deactivated for now
/*KP_liberation_suppMod_whitelist = [
];
];*/

View File

@ -161,15 +161,15 @@ class Missions
## Changelog
### 0.96 (in Development)
* Added: BI Support System functionality.
* Added: Parameter for access to the Support System -> Disabled, Commander, Whitelist, Everyone.
* Added: BI Artillery support for artillery vehicles and mortars (if built manned or AI ordered to get in as crew).
* Added: BI Support System functionality. (Currently deactivated, as there are still issues in MP)
* Added: Parameter for access to the Support System -> Disabled, Commander, Whitelist, Everyone. (Currently deactivated, as there are still issues in MP)
* Added: BI Artillery support for artillery vehicles and mortars (if built manned or AI ordered to get in as crew). (Currently deactivated, as there are still issues in MP)
* Added: Chinese Simplified localization. Thanks to [nercon](https://github.com/nercon)
* Added: Civil Reputation.
* Added: Config variables for the civil reputation.
* Added: Reputation penalty for killing civilians.
* Added: Reputation penalty for seizing civil vehicles.
* Added: Players can request artillery support from players (generates task).
* Added: Players can request artillery support from players (generates task). (Currently deactivated, as there are still issues in MP)
* Added: Reputation penalty for destroyed/damaged civil buildings.
* Added: Mission parameter to choose building penalty for damaged or only destroyed buildings.
* Added: Reputation gain for liberated sectors.