mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
126 lines
23 KiB
C++
126 lines
23 KiB
C++
|
// Anti Hack
|
||
|
antihack_Enabled = true; // built-in Anti-Hack
|
||
|
antihack_cfgPatchesCheck = true; // cfgPatches (AddOn Check)
|
||
|
antihack_PVSPrefix = "EPAH_"; // used to help whitelist pveh variables in BE without BEC and watchdog, leave blank to use no prefix.
|
||
|
antihack_cfgPatchesCfg[] = {0}; // 0 == BAN - 1 = LOG
|
||
|
antihack_ahInitAuthCfg[] = {0,90}; // 0 == BAN - 1 = LOG, 60 = ban or log if anti hack is not started in 90 seconds
|
||
|
antihack_whitelistedCfgPatches[] = {"A3_AIR_F_RTD","AiA_Worlds_Author","AiA_Worlds_Grid","AiA_BaseConfig_F","AiA_A1AlwaysDummy","CAVideo2_PMC","CA_AnimsHotfix","CA_CutSceneAnims","CAIntroAnims","CAUSMCD","CAVoice","CAweapons3_aks74pso","CAWeapons3_ammocrates","CAweapons3_ksvk","CAweapons3_m107","CAweapons3_m16a4_acg_gl","CAweapons3_m16a4_acg","CAweapons3_m16a4_gl","CAweapons3_m16a4","CAWeapons3","CTI_buildingsBmp2_hq","CTI_buildingsM113_hq","DSHkM_Mini","M2HD_Mini","MK19_Tripod","Warfare","WarfareBuildings_Stinger_Twice_static","WarfareBuildings_T72_RACS","WarfareBuildings_TOW_Tripod","AiA_cba_xeh_a2_Dummy","AiA_CBA_A2_xeh_Dummy","AiA_cba_xeh_oa_Dummy","AiA_CBA_OA_xeh_Dummy","AiA_CA_Data","AiA_A10_Data","AiA_Afghan_Data","AiA_Air2_Data","AiA_Air3_Data","AiA_Air_Data","AiA_Air_e_Data","AiA_Animations_Data","AiA_Animations_Config","AiA_Bohemia_Data","AiA_Bootcamp_acr_Data","AiA_Buildings2_Data","AiA_Buildings2_Ind_Cementworks_Data","AiA_Buildings_Data","AiA_Ca_acr_Data","AiA_CA_Config","CAData","AiA_CA_Config_Data_ParticleEffects","CAData_ParticleEffects","AiA_Ca_e_Data","AiA_Ca_pmc_Data","AiA_Characters2_Data","AiA_Chernarus_Data","AiA_Chernarus_Data_Data","AiA_Chernarus_Data_Layers_Data","AiA_Chernarus_Summer_Data","AiA_Cti_buildings_Data","AiA_CA_Data_Data_ParticleEffects","AiA_Data_baf_Data","AiA_Desert2_Data","Desert2_Objects","AiA_Desert_Data","AiA_Desert_e_Data","AiA_Hotfix_Data","AiA_Introanims_Data","CALanguage","AiA_Language_acr_Data","AiA_Language_baf_Data","AiA_Language_e_Data","AiA_Language_pmc_Data","CALanguage_missions","AiA_Languagemissions_acr_Data","AiA_Languagemissions_baf_Data","CALanguage_missions_e","AiA_Languagemissions_pmc_Data","AiA_Misc2_Data","AiA_Misc3_Data","AiA_Misc_Data","AiA_Misc_acr_Data","AiA_Misc_e_Data","AiA_Plants2_Bush_Data","AiA_Plants2_Clutter_Data","AiA_Plants2_Misc_Data","AiA_Plants2_Plant_Data","AiA_Plants2_Tree_Data","AiA_Plants_Data","AiA_Plants_Config","CAPlants","AiA_Plants_e2_Data","AiA_Plants_e_Data","AiA_Plants_pmc_Data","AiA_Provinggrounds_pmc_Data","AiA_Roads2_Data","AiA_Roads2_Config","CARoads2","CARoads2Bridge","CARoads2Dam","AiA_Roads_Data","AiA_Roads_Config","CARoads","AiA_Roads_e_Data","AiA_Roads_pmc_Data","AiA_Roads_pmc_Config","CARoads_PMC_Bridge","AiA_Rocks2_Data","AiA_Rocks2_Config","CARocks2","AiA_Rocks_Data","AiA_Rocks_Config","CARocks","AiA_Rocks_e_Data","AiA_Sara_Data","AiA_Saralite_Data","AiA_Shapur_baf_Data","AiA_Signs2_Data","AiA_Signs2_Config","CASigns2","AiA_Signs_Data","AiA_Signs_Config","CASigns","AiA_Signs_e_Data","AiA_Sounds_Data","AiA_Sounds_Config","CASounds","AiA_Sounds_e_Data","AiA_Structures_Data","pond_test","AiA_Structures_e_Data","AiA_Structures_pmc_Data","AiA_Takistan_Data","AiA_Takistan_Data_Data","AiA_Takistan_Data_Layers_Data","AiA_Tracked2_Data","AiA_Tracked_Data","AiA_Tracked_e_Data","AiA_Ui_Data","AiA_Utes_Data","AiA_Utes_Config","Utes","AiA_Water2_Data","CAWater2_LHD","AiA_Water_Data","AiA_Weapons2_Data","AiA_Weapons_Data","AiA_Weapons_e_Data","AiA_Weapons_pmc_Data","AiA_Wheeled2_Data","AiA_Wheeled_Data","AiA_Wheeled_e_Data","AiA_Zargabad_Data","AiA_Models_DBE1_Data","Music_DBE1","ploty_DBE1","Roads_DBE1","AiA_Sara_dbe1_Data","Disable_XEH_Logging","AiA_TKOH_Dummy","HSim_Data_H","HSim_Data_H_data_ParticleEffects","HSim_Data_H_data_ParticleEffects_rotor_blades","HSim_Dubbing_H","HSim_DubbingRadio_H","HSim_Editor_H","Intro_Island_H","HSim_Missions_H","HSim_ModulesCore_H","HSim_ModulesCore_H_AmbientCombat","HSim_ModulesCore_H_DynO","HSim_ModulesCore_H_Functions","HSim_ModulesCore_H_GarbageCollector","HSim_ModulesCore_H_Functions_E","HSim_ModulesCore_H_OO","HSim_ModulesCore_H_Functions_PMC","HSim_Music_H","HSim_Sounds_H","South_Asia_H","HSim_UIFonts_H","United_States_H","HSim_Animals_H","HSim_Animals_H_Anim_Config","HSim_Animals_H_Dog","HSim_Characters_H_Faces","HSim_Characters_H_Heads","HSim_Modules_H","HSim_UI_H","HSim_Weapons_H","HSim_Weapons_H_AK47","HSim_Weapons_H_DShKM","HSim_Weapons_H_Glock","HSim_Weapons_H_HandItems","HSim_Weapons_H_M16","HSim_Weapons_US_H","HSim_Characters_H","HSim_Characters_US_H","HSim_Missions_H_FreeFlight","H
|
||
|
antihack_InvOpenCheck[] = {}; // blank array disables, enable with {6} distance in meters disallows gear access if another player is within this range also disables gear access in vehicles.
|
||
|
antihack_banReason = "EpochMod.com Autoban";
|
||
|
antihack_checkFiles[] = { //script check, leave it blank to disable it
|
||
|
{"\x\addons\a3_epoch_code\compile\setup\EPOCH_clientInit.sqf", "EPOCH_clientInit"},
|
||
|
{"\x\addons\a3_epoch_code\compile\EPOCH_onEachFrame.sqf", "EPOCH_onEachFrame"},
|
||
|
{"\x\addons\a3_epoch_code\compile\setup\EPOCH_masterLoop.sqf", "EPOCH_masterLoop"},
|
||
|
{"\x\addons\a3_epoch_code\compile\setup\EPOCH_client_rejectPlayer.sqf", "EPOCH_client_rejectPlayer"},
|
||
|
{"\x\addons\a3_epoch_code\compile\setup\EPOCH_clientRespawn.sqf", "EPOCH_clientRespawn"},
|
||
|
{"\x\addons\a3_epoch_code\compile\interface_event_handlers\EPOCH_KeyDown.sqf", "EPOCH_KeyDown"}
|
||
|
};
|
||
|
antihack_addActionCheck = true; // false to diable addAction checks
|
||
|
antihack_customVariablesCheck = false; // true enables variable scanning on missionNamespace
|
||
|
antihack_customVariables[] = {}; //Add global variables from custom scripts, example: {"MyOwnVar","CP_KK"} //Global Variables begin without "_" !!
|
||
|
antihack_customVariablesCheckMode = 0; // 0 = Ban, 1 = Log, 2 == learning mode (only enable with trusted players in a passwored server to profile your variables keep disabled for normal operation)
|
||
|
|
||
|
adminMenu_Owner[] = {};
|
||
|
adminMenu_OwnerSetting[] = {
|
||
|
"ESP-PLAYER",
|
||
|
"ESP-VEHICLE",
|
||
|
"ESP-LOOT",
|
||
|
//"OLD-ESP",
|
||
|
//"OLD-MAP",
|
||
|
"PLAYER-TELEPORT",
|
||
|
"MAP-TELEPORT",
|
||
|
"INFRONT-TELEPORT",
|
||
|
"MAP-PLAYER",
|
||
|
"MAP-CORPSE",
|
||
|
// "MAP-LOOT",
|
||
|
"MAP-VEHICLE",
|
||
|
"MAP-AI",
|
||
|
// "MAP-BASEBUILDING",
|
||
|
"TARGET-HEAL",
|
||
|
"TARGET-AMMO",
|
||
|
"TARGET-KILL",
|
||
|
"TARGET-CRYPTO",
|
||
|
"TARGET-VEHICLEREPAIR",
|
||
|
"VEHICLEFLIP",
|
||
|
"BANPANNEL",
|
||
|
"SPAWN-MENU",
|
||
|
"FREE-CAM",
|
||
|
"INVISIBLE",
|
||
|
// "SPAWNLOOT",
|
||
|
"GODMODE",
|
||
|
"HEAL",
|
||
|
"VEHICLEREPAIR"
|
||
|
};
|
||
|
|
||
|
adminMenu_High[] = {};
|
||
|
adminMenu_HighSetting[] = {"PLAYER-TELEPORT","MAP-TELEPORT","TARGET-HEAL","TARGET-AMMO","TARGET-KILL","VEHICLEFLIP","BANPANNEL"};
|
||
|
|
||
|
adminMenu_Low[] = {};
|
||
|
adminMenu_LowSetting[] = {"PLAYER-TELEPORT","MAP-TELEPORT","TARGET-HEAL"};
|
||
|
|
||
|
adminMenu_BanReasons[] = {"Traderzone","Hacking","Glitch","Combat Log"};
|
||
|
adminMenu_cryptoCfg[] = {2500,1000,500,100,50,-1000};
|
||
|
//You can find the Key Codes here: https://community.bistudio.com/wiki/DIK_KeyCodes#F1..15
|
||
|
adminMenu_menuKey = 0x3B;
|
||
|
adminMenu_infrontTeleport = 0x06;
|
||
|
|
||
|
/*
|
||
|
AH CONFIG README
|
||
|
|
||
|
adminMenu_Owner[] = {
|
||
|
{"STEAMID64","ADMINNAME1"},
|
||
|
{"STEAMID64","ADMINNAME2"},
|
||
|
{"STEAMID64","ADMINNAME3"} //<- No comma on the last entry
|
||
|
};
|
||
|
adminMenu_High[] = {
|
||
|
{"STEAMID64","ADMINNAME4"},
|
||
|
{"STEAMID64","ADMINNAME5"},
|
||
|
{"STEAMID64","ADMINNAME6"} //<- No comma on the last entry
|
||
|
};
|
||
|
adminMenu_Low[] = {
|
||
|
{"STEAMID64","ADMINNAME7"},
|
||
|
{"STEAMID64","ADMINNAME8"},
|
||
|
{"STEAMID64","ADMINNAME9"} //<- No comma on the last entry
|
||
|
};
|
||
|
|
||
|
ADMINNAME will be used for the Admin log instead of in-game name.
|
||
|
|
||
|
Available Settings:
|
||
|
"PLAYER-TELEPORT" => Teleport Admin To Player and Player To Admin
|
||
|
"MAP-TELEPORT" => Click on Map to Teleport
|
||
|
"INFRONT-TELEPORT" => Teleport you infront
|
||
|
"FREE-CAM" => Free flying Cam
|
||
|
"INVISIBLE" => Make Playermodel invisible but other player can still hear your steps
|
||
|
|
||
|
"GODMODE" => Godmode for yourself which heal you as well
|
||
|
"HEAL" => Heal yourself
|
||
|
"VEHICLEREPAIR" => Repeair the vehicle you're looking on, or be inside
|
||
|
|
||
|
"MAP-PLAYER" => Player Marker
|
||
|
"MAP-CORPSE" => Corpse (Dead Player etc.) Marker
|
||
|
"MAP-LOOT" => Loot Marker
|
||
|
"MAP-VEHICLE" => Vehicle Marker
|
||
|
"MAP-AI" => AI Marker
|
||
|
"MAP-BASEBUILDING" => Base Building Marker
|
||
|
|
||
|
"ESP-PLAYER" => 3D ESP for Player
|
||
|
"ESP-VEHICLE" => 3D ESP for Vehicles
|
||
|
"ESP-LOOT" => 3D ESP for Loot Objects
|
||
|
|
||
|
|
||
|
"OLD-ESP" => Old 3D ESP
|
||
|
"OLD-MAP" => Old Map Marker
|
||
|
|
||
|
"TARGET-CRYPTO" => Give crypto to target
|
||
|
"TARGET-HEAL" => Heal Target
|
||
|
"TARGET-AMMO" => Give Target Ammo
|
||
|
"TARGET-KILL" => Kill Target
|
||
|
"TARGET-VEHICLEREPAIR" => Repair the Vehicle if target is inside of a vehicle
|
||
|
|
||
|
"VEHICLEFLIP" => Flip Vehicle
|
||
|
"BANPANNEL" => Access to Banpannel
|
||
|
"SPAWNLOOT" => Spawn Loot in Buildings (within 25m)
|
||
|
|
||
|
"SPAWN-MENU" => Access to Spawn Menu
|
||
|
|
||
|
*/
|