Removed Weapon Spam

This commit is contained in:
Brett Nordin 2018-03-09 10:14:12 -07:00
parent 8f93784946
commit 72eb42d50d
2 changed files with 9 additions and 12 deletions

View File

@ -36,6 +36,7 @@ if ((_result select 0) isEqualTo 0) then
}; };
ExileServerStartTime = (call compile ("extDB3" callExtension "9:LOCAL_TIME")) select 1; ExileServerStartTime = (call compile ("extDB3" callExtension "9:LOCAL_TIME")) select 1;
"Database protocol initialized!" call ExileServer_util_log; "Database protocol initialized!" call ExileServer_util_log;
"You are running Extdb3, If you run into issues please post on the forum under the extdb3 conversion." call ExileServer_util_log;
"extDB3" callExtension "9:ADD_PROTOCOL:LOG:TRADING:Exile_TradingLog"; "extDB3" callExtension "9:ADD_PROTOCOL:LOG:TRADING:Exile_TradingLog";
"extDB3" callExtension "9:ADD_PROTOCOL:LOG:DEATH:Exile_DeathLog"; "extDB3" callExtension "9:ADD_PROTOCOL:LOG:DEATH:Exile_DeathLog";
"extDB3" callExtension "9:ADD_PROTOCOL:LOG:TERRITORY:Exile_TerritoryLog"; "extDB3" callExtension "9:ADD_PROTOCOL:LOG:TERRITORY:Exile_TerritoryLog";

View File

@ -5,24 +5,24 @@
* www.exilemod.com * www.exilemod.com
* © 2015 Exile Mod Team * © 2015 Exile Mod Team
* *
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
*/ */
private["_arsenal","_weaponClassNames","_className","_linkedItems","_i"]; private["_arsenal","_weaponClassNames","_className","_linkedItems","_i"];
_arsenal = "true" configClasses (missionConfigFile >> "CfgExileArsenal"); _arsenal = "true" configClasses (missionConfigFile >> "CfgExileArsenal");
_weaponClassNames = []; _weaponClassNames = [];
{ {
_className = configName _x; _className = configName _x;
try try
{ {
if (isClass (configFile >> "CfgWeapons" >> _className >> "LinkedItems")) then if (isClass (configFile >> "CfgWeapons" >> _className >> "LinkedItems")) then
{ {
_linkedItems = "true" configClasses (configFile >> "CfgWeapons" >> _className >> "LinkedItems"); _linkedItems = "true" configClasses (configFile >> "CfgWeapons" >> _className >> "LinkedItems");
{ {
if (isText(_x >> "item")) then if (isText(_x >> "item")) then
{ {
if !((getText (_x >> "item")) isEqualTo "") then if !((getText (_x >> "item")) isEqualTo "") then
{ {
throw true; throw true;
}; };
@ -31,22 +31,18 @@ _weaponClassNames = [];
forEach _linkedItems; forEach _linkedItems;
}; };
} }
catch catch
{ {
_weaponClassNames pushBack _className; _weaponClassNames pushBack _className;
}; };
} }
forEach _arsenal; forEach _arsenal;
if ((count _weaponClassNames) > 0) then if ((count _weaponClassNames) > 0) then
{ {
for "_i" from 0 to 100 do
{
"ERROR! ERROR! ERROR! ERROR! ERROR! ERROR!" call ExileServer_util_log; "ERROR! ERROR! ERROR! ERROR! ERROR! ERROR!" call ExileServer_util_log;
};
"You have added weapons to your server that spawn in with attachments." call ExileServer_util_log; "You have added weapons to your server that spawn in with attachments." call ExileServer_util_log;
"This will allow duping and money farming!" call ExileServer_util_log; "This will allow duping and money farming!" call ExileServer_util_log;
"To solve this, please remove the following weapons from your loot tables and trader config OR replace them with their non-attachment equivalent:" call ExileServer_util_log; "To solve this, please remove the following weapons from your loot tables and trader config OR replace them with their non-attachment equivalent:" call ExileServer_util_log;
format ["%1", _weaponClassNames] call ExileServer_util_log; format ["%1", _weaponClassNames] call ExileServer_util_log;
"Example: Use arifle_Katiba_F instead of arifle_Katiba_ACO_pointer_snds_F." call ExileServer_util_log; "Example: Use arifle_Katiba_F instead of arifle_Katiba_ACO_pointer_snds_F." call ExileServer_util_log;
}; };