Rod Serling

AVS - Advanced Vehicle System

718 posts in this topic

26 minutes ago, macnova said:

yeah i seen that yet i stii get kicked after a few minutes

 

Spoiler

/*
© 2015 Zenix Gaming Ops
Developed by Rod-Serling and Vishpala

All rights reserved.

Function:
	AVS_configuration - Defines the configuration for AVS.
*/

AVS_Debug = false;

// This array contains world center and radius for maps supported.
AVS_WorldInfo =
[
    ["Altis", [15360, 15360, 0], 15360],
    ["Esseker", [6150,6150,0], 6150],
    ["Chernarus", [7700,8500,0], 11000],
	["Lingor3", [4968.00,4938.00,0], 10000],
	["Tanoa", [7680,7680,0], 7680]
];

//**************************************************************

// Setting this to true will disable thermal for all vehicles.
AVS_DisableVehicleThermalGlobal = false;

// If the above is not set to true, then this will disable thermal for specific classes of vehicles.
AVS_DisableVehicleThermal =
[
//	"VehicleClassName"
];

// Setting this to true will disable NVGs for all vehicles.
AVS_DisableVehicleNVGsGlobal = false;

// If the above is not set to true, then this will disable thermal for specific classes of vehicles.
AVS_DisableVehicleNVG =
[
//	"VehicleClassName"
];

// Any weapon classes listed here will be sanitized from all vehicles.
AVS_GlobalWeaponBlacklist =
[
//	"WeaponClassName"
];

// Any ammo classes listed here will be sanitized from all vehicles.
AVS_GlobalAmmoBlacklist =
[
//	"AmmoClassName"
];

// You may remove specific weapon classes from specific vehicle classes here.
AVS_VehicleWeaponBlacklist =
[
//	["VehicleClassName", ["WeaponClassName1", "WeaponClassName2", ...]]
];

// You may remove specific ammo classes from specific vehicle classes here.
AVS_VehicleAmmoBlacklist =
[
//	["VehicleClassName", ["AmmoClassName1", "AmmoClassName2", ...]]
];

//**************************************************************

// Set to false to disable the entire rearm system.
AVS_RearmSystemActive = true;

// Distance away from an object to get the rearm option.
AVS_RearmDistance = 50;

// Number of seconds it takes to rearm. (NOT YET IMPLEMENTED)
AVS_RearmTime = 15;

// Disabled rearming at ammo trucks.
AVS_DisableStockRearm = true;

// Objects of this type will give the "rearm" action.
AVS_RearmObjects =
[
	"Land_HelipadEmpty_F"
];

// Default cost of a magazine if not found in AVS_RearmCosts
AVS_RearmCostDefault = 100000;

// Costs of individual magazines.
AVS_RearmCosts =
[
	["Laserbatteries",												100000],
	["SmokeLauncherMag",											100000],
	["200Rnd_127x99_mag_Tracer_Yellow",								100000],
	["200Rnd_127x99_mag_Tracer_Red",								100000],
	["168Rnd_CMFlare_Chaff_Magazine",								100000],
	["2000Rnd_65x39_Belt_Tracer_Red",								100000],
	["100Rnd_127x99_mag_Tracer_Yellow",								100000],
	["5000Rnd_762x51_Belt",											100000],
	["5000Rnd_762x51_Yellow_Belt",									100000],
	["2000Rnd_65x39_Belt_Tracer_Green_Splash",						100000],
	["200Rnd_762x51_Belt_Green",									100000],
	["50Rnd_127x107_DSHKM_M",										100000],
	["2000Rnd_762x51_Belt",											100000],
	["500Rnd_65x39_Belt_Tracer_Green_Splash",						100000],
	["100Rnd_127x99_mag_Tracer_Red",								100000],
	["130Rnd_338_Mag",												100000],
	["240Rnd_CMFlare_Chaff_Magazine",								100000],
	["240Rnd_40mm_GPR_Tracer_Red_shells",							100000],
	["160Rnd_40mm_APFSDS_Tracer_Red_shells",						100000],
	["100Rnd_105mm_HEAT_MP",										100000],
	["4000Rnd_20mm_Tracer_Red_shells",								100000],
	["250Rnd_30mm_HE_shells",										100000],
	["250Rnd_30mm_HE_shells_Tracer_Green",							100000],
	["250Rnd_30mm_APDS_shells",										100000],
	["250Rnd_30mm_APDS_shells_Tracer_Green",						100000],
	["192Rnd_CMFlare_Chaff_Magazine",								100000],
	["8Rnd_LG_scalpel",												100000],
	["38Rnd_80mm_rockets",											100000],
	["96Rnd_40mm_G_belt",											100000],
	["1000Rnd_20mm_shells",											100000],
	["40Rnd_105mm_APFSDS_T_Red",									100000],
	["200Rnd_40mm_G_belt",											100000],
	["32Rnd_120mm_APFSDS_shells_Tracer_Red",						100000],
	["60Rnd_40mm_GPR_Tracer_Red_shells",							100000],
	["500Rnd_127x99_mag_Tracer_Red",								100000],
	["7Rnd_Rocket_04_AP_F",											100000],
	["7Rnd_Rocket_04_HE_F",											100000],
	["12Rnd_230mm_rockets",											100000],
	["1000Rnd_Gatling_30mm_Plane_CAS_01_F",							100000],
	["2000Rnd_65x39_belt",											100000],
	["40Rnd_20mm_g_belt",											100000],
	["40Rnd_40mm_APFSDS_Tracer_Red_shells",							100000],
	["16Rnd_120mm_HE_shells_Tracer_Red",							100000],
	["680Rnd_35mm_AA_shells_Tracer_Red",							100000],
	["20Rnd_105mm_HEAT_MP_T_Red",									100000],
	["24Rnd_missiles",												100000],
	["24Rnd_PG_missiles",											100000],
	["1000Rnd_Gatling_30mm_Plane_CAS_01_F",							100000],
	["2000Rnd_65x39_belt",											100000],
	["40Rnd_20mm_g_belt",											100000],
	["40Rnd_40mm_APFSDS_Tracer_Red_shells",							100000],
	["SmokeLauncherMag_boat",										100000],
	["120Rnd_CMFlare_Chaff_Magazine",								100000],
	["6Rnd_LG_scalpel",												100000],
	["6Rnd_Missile_AGM_02_F",										100000],
	["4Rnd_AAA_missiles",											100000],
	["240Rnd_CMFlare_Chaff_Magazine",								100000],
	["2Rnd_155mm_Mo_Cluster",										100000],
	["2Rnd_155mm_Mo_guided",										100000],
	["2Rnd_155mm_Mo_LG",											100000],
	["6Rnd_155mm_Mo_AT_mine",										100000],
	["6Rnd_155mm_Mo_mine",											100000],
	["6Rnd_155mm_Mo_smoke",											100000],
	["2Rnd_GBU12_LGB",												100000],
	["2Rnd_Missile_AA_04_F",										100000],
	["4Rnd_Bomb_04_F",												100000],
	["4Rnd_Titan_long_missiles",									100000],
	["24Rnd_missiles",												100000],
	["24Rnd_PG_missiles",											100000],
	["FlareLauncherMag",											100000],
	["60Rnd_CMFlareMagazine",										100000],
	["120Rnd_CMFlareMagazine",										100000],
	["240Rnd_CMFlareMagazine",										100000],
	["60Rnd_CMFlare_Chaff_Magazine",								100000],
	["300Rnd_CMFlare_Chaff_Magazine",								100000],
	["8Rnd_82mm_Mo_shells",											100000],
	["8Rnd_82mm_Mo_Flare_white",									100000],
	["8Rnd_82mm_Mo_Smoke_white",									100000],
	["8Rnd_82mm_Mo_guided",											100000],
	["8Rnd_82mm_Mo_LG",												100000],
	["2Rnd_GAT_missiles",											100000],
	["5Rnd_GAT_missiles",											100000],
	["4Rnd_GAA_missiles",											100000],
	["1550Rnd_20mm_Tracer_Red",										100000],
	["1550Rnd_20mm_Tracer_Yellow",									100000],
	["1550Rnd_20mm_Tracer_Green",									100000],
	["300Rnd_20mm_Tracer_Red",										100000],
	["300Rnd_20mm_Tracer_Yellow",									100000],
	["300Rnd_20mm_Tracer_Green",									100000],
	["21Rnd_AAA_RIM_116",											100000],
	["8Rnd_AAA_RIM_7",												100000],
	["CUP_100Rnd_TE3_LRT5_Green_Tracer_127x107_DSHKM_M",			100000],
	["CUP_50Rnd_TE3_LRT5_127x107_DSHKM_M",							100000],
	["CUP_150Rnd_TE3_LRT5_127x107_DSHKM_M",							100000],
	["CUP_100Rnd_127x99_M",											100000],
	["CUP_100Rnd_TE4_Red_Tracer_127x99_M",							100000],
	["CUP_100Rnd_TE4_Green_Tracer_127x99_M",						100000],
	["CUP_100Rnd_TE4_Yellow_Tracer_127x99_M",						100000],
	["CUP_100Rnd_TE4_White_Tracer_127x99_M",						100000],
	["CUP_100Rnd_TE1_Red_Tracer_127x99_M",							100000],
	["CUP_100Rnd_TE1_Green_Tracer_127x99_M",						100000],
	["CUP_100Rnd_TE1_Yellow_Tracer_127x99_M",						100000],
	["CUP_100Rnd_TE1_White_Tracer_127x99_M",						100000],
	["CUP_200Rnd_TE1_Red_Tracer_127x99_M",							100000],
	["CUP_250Rnd_TE1_Red_Tracer_127x99_M",							100000],
	["CUP_150Rnd_127x108_KORD_M",									100000],
	["CUP_50Rnd_127x108_KORD_M",									100000],
	["CUP_100Rnd_TE4_LRT4_Red_Tracer_762x51_Belt_M",				100000],
	["CUP_200Rnd_TE4_LRT4_Red_Tracer_762x51_Belt_M",				100000],
	["CUP_100Rnd_TE4_LRT4_White_Tracer_762x51_Belt_M",				100000],
	["CUP_1200Rnd_TE4_White_Tracer_762x51_M240_M",					100000],
	["CUP_100Rnd_TE4_White_Tracer_762x51_M240_M",					100000],
	["CUP_1500Rnd_TE1_White_Tracer_762x54_PKT_M",					100000],
	["CUP_1500Rnd_TE1_Red_Tracer_762x54_PKT_M",						100000],
	["CUP_1500Rnd_TE1_Green_Tracer_762x54_PKT_M",					100000],
	["CUP_1500Rnd_TE1_Yellow_Tracer_762x54_PKT_M",					100000],
	["CUP_2000Rnd_TE1_Green_Tracer_762x54_PKT_M",					100000],
	["CUP_200Rnd_TE1_White_Tracer_762x54_PKT_M",					100000],
	["CUP_48Rnd_40mm_MK19_M",										100000],
	["CUP_32Rnd_40mm_MK19_M",										100000],
	["CUP_29Rnd_30mm_AGS30_M",										100000],
	["CUP_20Rnd_100mmHEAT_D10",										100000],
	["CUP_15Rnd_100mmHEFRAG_D10",									100000],
	["CUP_40Rnd_85mmHEAT_D5",										100000],
	["CUP_20Rnd_85mmHEFRAG_D5",										100000],
	["CUP_22Rnd_100mm_HE_2A70",										100000],
	["CUP_8Rnd_AT10_M",												100000],
	["CUP_PG15V",													100000],
	["CUP_OG15V",													100000],
	["CUP_16Rnd_PG9_AT_M",											100000],
	["CUP_16Rnd_OG9_HE_M",											100000],
	["CUP_750Rnd_TE2_Red_Tracer_M197_20mm_AP_M",					100000],
	["CUP_750Rnd_TE2_Green_Tracer_M197_20mm_AP_M",					100000],
	["CUP_750Rnd_TE2_Yellow_Tracer_M197_20mm_AP_M",					100000],
	["CUP_750Rnd_TE2_Red_Tracer_M197_20mm_HEI_M",					100000],
	["CUP_750Rnd_TE2_Green_Tracer_M197_20mm_HEI_M",					100000],
	["CUP_750Rnd_TE2_Yellow_Tracer_M197_20mm_HEI_M",				100000],
	["CUP_750Rnd_TE2_Red_Tracer_M197_20mm_API_M",					100000],
	["CUP_750Rnd_TE2_Green_Tracer_M197_20mm_API_M",					100000],
	["CUP_750Rnd_TE2_Yellow_Tracer_M197_20mm_API_M",				100000],
	["CUP_210Rnd_TE1_Red_Tracer_25mm_M242_APFSDS",					100000],
	["CUP_210Rnd_TE1_Red_Tracer_25mm_M242_HE",						100000],
	["CUP_200Rnd_TE1_Red_Tracer_40mmGPR_M",							100000],
	["CUP_200Rnd_TE1_Red_Tracer_40mmAPFSDS_M",						100000],
	["CUP_200Rnd_TE1_Red_Tracer_30mmGPR_M",							100000],
	["CUP_200Rnd_TE1_Red_Tracer_30mmAPFSDS_M",						100000],
	["CUP_50Rnd_23mm_KPVB_HEAP",									100000],
	["CUP_20Rnd_TE1_Red_Tracer_120mmSABOT_M256_Cannon_M",			100000],
	["CUP_20Rnd_TE1_Red_Tracer_120mmHE_M256_Cannon_M",				100000],
	["CUP_20Rnd_TE1_Red_Tracer_105mmSABOT_M68_Cannon_M",			100000],
	["CUP_12Rnd_TE1_Red_Tracer_105mmHE_M68_Cannon_M",				100000],
	["CUP_24Rnd_2A46_APFSDS_T_M",									100000],
	["CUP_12Rnd_2A46_HE_T_M",										100000],
	["CUP_1200Rnd_TE1_Red_Tracer_30x113mm_M789_HEDP_M",				100000],
	["CUP_1200Rnd_TE1_Green_Tracer_30x113mm_M789_HEDP_M",			100000],
	["CUP_1200Rnd_TE1_Yellow_Tracer_30x113mm_M789_HEDP_M",			100000],
	["CUP_1200Rnd_TE1_White_Tracer_30x113mm_M789_HEDP_M",			100000],
	["CUP_40Rnd_23mm_AZP23_M",										100000],
	["CUP_2000Rnd_23mm_AZP23_M",									100000],
	["CUP_150Rnd_TE1_White_Tracer_30mmAP_2A42_M",					100000],
	["CUP_150Rnd_TE1_Red_Tracer_30mmAP_2A42_M",						100000],
	["CUP_150Rnd_TE1_Green_Tracer_30mmAP_2A42_M",					100000],
	["CUP_150Rnd_TE1_Yellow_Tracer_30mmAP_2A42_M",					100000],
	["CUP_230Rnd_TE1_White_Tracer_30mmAP_2A42_M",					100000],
	["CUP_230Rnd_TE1_Red_Tracer_30mmAP_2A42_M",						100000],
	["CUP_230Rnd_TE1_Green_Tracer_30mmAP_2A42_M",					100000],
	["CUP_230Rnd_TE1_Yellow_Tracer_30mmAP_2A42_M",					100000],
	["CUP_250Rnd_TE1_White_Tracer_30mmAP_2A42_M",					100000],
	["CUP_250Rnd_TE1_Red_Tracer_30mmAP_2A42_M",						100000],
	["CUP_250Rnd_TE1_Green_Tracer_30mmAP_2A42_M",					100000],
	["CUP_250Rnd_TE1_Yellow_Tracer_30mmAP_2A42_M",					100000],
	["CUP_150Rnd_TE1_White_Tracer_30mmHE_2A42_M",					100000],
	["CUP_150Rnd_TE1_Red_Tracer_30mmHE_2A42_M",						100000],
	["CUP_150Rnd_TE1_Green_Tracer_30mmHE_2A42_M",					100000],
	["CUP_150Rnd_TE1_Yellow_Tracer_30mmHE_2A42_M",					100000],
	["CUP_230Rnd_TE1_White_Tracer_30mmHE_2A42_M",					100000],
	["CUP_230Rnd_TE1_Red_Tracer_30mmHE_2A42_M",						100000],
	["CUP_230Rnd_TE1_Green_Tracer_30mmHE_2A42_M",					100000],
	["CUP_230Rnd_TE1_Yellow_Tracer_30mmHE_2A42_M",					100000],
	["CUP_250Rnd_TE1_White_Tracer_30mmHE_2A42_M",					100000],
	["CUP_250Rnd_TE1_Red_Tracer_30mmHE_2A42_M",						100000],
	["CUP_250Rnd_TE1_Green_Tracer_30mmHE_2A42_M",					100000],
	["CUP_250Rnd_TE1_Yellow_Tracer_30mmHE_2A42_M",					100000],
	["CUP_1200Rnd_TE1_Red_Tracer_M621_20mm_HE_M",					100000],
	["CUP_750Rnd_TE1_Red_Tracer_GI2_20mm_HE_M",						100000],
	["CUP_750Rnd_TE1_Green_Tracer_GI2_20mm_HE_M",					100000],
	["CUP_750Rnd_TE1_Yellow_Tracer_GI2_20mm_HE_M",					100000],
	["CUP_750Rnd_TE1_Red_Tracer_GI2_20mm_AP_M",						100000],
	["CUP_750Rnd_TE1_Green_Tracer_GI2_20mm_AP_M",					100000],
	["CUP_750Rnd_TE1_Yello_Tracer_GI2_20mm_AP_M",					100000],
	["CUP_250Rnd_TE2_Green_Tracer_GSh23_23mm_APHE_M",				100000],
	["CUP_250Rnd_TE2_Yellow_Tracer_GSh23_23mm_APHE_M",				100000],
	["CUP_250Rnd_TE2_Red_Tracer_GSh23_23mm_APHE_M",					100000],
	["CUP_150Rnd_TE2_Green_Tracer_GSh23_23mm_APHE_M",				100000],
	["CUP_1350Rnd_TE1_Red_Tracer_30mm_GAU8_M",						100000],
	["CUP_300Rnd_TE1_White_Tracer_25mm_GAU12_M",					100000],
	["CUP_300Rnd_TE1_Red_Tracer_25mm_GAU12_M",						100000],
	["CUP_300Rnd_TE1_Green_Tracer_25mm_GAU12_M",					100000],
	["CUP_300Rnd_TE1_Yellow_Tracer_25mm_GAU12_M",					100000],
	["CUP_220Rnd_TE1_White_Tracer_30mm_GAU22_M",					100000],
	["CUP_1100Rnd_TE1_Red_Tracer_20mm_M168_M",						100000],
	["CUP_1550Rnd_TE1_Red_Tracer_20mm_Phalanx_M",					100000],
	["CUP_500Rnd_TE1_30mm_GSh302K_HE_M",							100000],
	["CUP_750Rnd_TE1_30mm_GSh302K_HE_M",							100000],
	["CUP_180Rnd_TE1_30mm_GSh301_HE_M",								100000],
	["CUP_1904Rnd_TE1_30mm_2A38M_HE_M",								100000],
	["CUP_1470Rnd_TE1_127x108_YakB_AP_M",							100000],
	["CUP_30Rnd_122mmHE_D30_M",										100000],
	["CUP_30Rnd_122mmWP_D30_M",										100000],
	["CUP_30Rnd_122mmLASER_D30_M",									100000],
	["CUP_30Rnd_122mmSMOKE_D30_M",									100000],
	["CUP_30Rnd_122mmILLUM_D30_M",									100000],
	["CUP_30Rnd_105mmHE_M119_M",									100000],
	["CUP_30Rnd_105mmWP_M119_M",									100000],
	["CUP_30Rnd_105mmLASER_M119_M",									100000],
	["CUP_30Rnd_105mmSMOKE_M119_M",									100000],
	["CUP_30Rnd_105mmILLUM_M119_M",									100000],
	["CUP_20Rnd_127mm_Mk45_HE",										100000],
	["CUP_20Rnd_127mm_Mk45_ILLUM",									100000],
	["CUP_20Rnd_127mm_Mk45_LG",										100000],
	["CUP_30Rnd_122mmAT_D30_M",										100000],
	["CUP_12Rnd_MLRS_HE",											100000],
	["CUP_12Rnd_MLRS_DPICM",										100000],
	["CUP_40Rnd_GRAD_HE",											100000],
	["CUP_2Rnd_GBU12_M",											100000],
	["CUP_4Rnd_GBU12_M",											100000],
	["CUP_6Rnd_GBU12_M",											100000],
	["CUP_8Rnd_GBU12_M",											100000],
	["CUP_GBU_G",													100000],
	["CUP_6Rnd_KAB250_M",											100000],
	["CUP_4Rnd_KAB250_M",											100000],
	["CUP_2Rnd_Mk82_M",												100000],
	["CUP_4Rnd_Mk82_M",												100000],
	["CUP_6Rnd_Mk82_M",												100000],
	["CUP_8Rnd_Mk82_M",												100000],
	["CUP_Mk82_G",													100000],
	["CUP_2Rnd_FAB250_M",											100000],
	["CUP_4Rnd_FAB250_M",											100000],
	["CUP_6Rnd_AT13_M",												100000],
	["CUP_2Rnd_TOW_M",												100000],
	["CUP_2Rnd_TOW2_M",												100000],
	["CUP_6Rnd_TOW_HMMWV_M",										100000],
	["CUP_6Rnd_TOW2_M",												100000],
	["CUP_2Rnd_Igla_M",												100000],
	["CUP_4Rnd_Igla_M",												100000],
	["CUP_8Rnd_9M311_Tunguska_M",									100000],
	["CUP_4Rnd_Stinger_M",											100000],
	["CUP_8Rnd_Stinger_M",											100000],
	["CUP_7Rnd_FFAR_M",												100000],
	["CUP_14Rnd_FFAR_M",											100000],
	["CUP_19Rnd_FFAR_M",											100000],
	["CUP_28Rnd_FFAR_M",											100000],
	["CUP_38Rnd_FFAR_M",											100000],
	["CUP_38Rnd_FFAR_Mid_M",										100000],
	["CUP_38Rnd_FFAR_In_M",											100000],
	["CUP_14Rnd_FFAR_Out_M",										100000],
	["CUP_14Rnd_FFAR_Mid_M",										100000],
	["CUP_14Rnd_FFAR_In_M",											100000],
	["CUP_38Rnd_FFAR_Out_M",										100000],
	["CUP_12Rnd_CRV7_FAT_M",										100000],
	["CUP_14Rnd_CRV7_FAT_M",										100000],
	["CUP_19Rnd_CRV7_FAT_M",										100000],
	["CUP_24Rnd_CRV7_FAT_M",										100000],
	["CUP_38Rnd_CRV7_FAT_M",										100000],
	["CUP_48Rnd_CRV7_FAT_M",										100000],
	["CUP_76Rnd_CRV7_FAT_M",										100000],
	["CUP_114Rnd_CRV7_FAT_M",										100000],
	["CUP_128Rnd_S5_M",												100000],
	["CUP_192Rnd_S5_M",												100000],
	["CUP_40Rnd_S8_M",												100000],
	["CUP_80Rnd_S8_M",												100000],
	["CUP_4Rnd_AT2_M",												100000],
	["CUP_4Rnd_AT3_M",												100000],
	["CUP_4Rnd_AT6_M",												100000],
	["CUP_4Rnd_AT9_M",												100000],
	["CUP_8Rnd_AT9_M",												100000],
	["CUP_12Rnd_AT16_M",											100000],
	["CUP_4Rnd_Kh29L_M",											100000],
	["CUP_6Rnd_Kh29L_M",											100000],
	["CUP_4Rnd_AIM_9L_Sidewinder_External_M",						100000],
	["CUP_2Rnd_AIM_9L_Sidewinder_Internal_M",						100000],
	["CUP_2Rnd_AIM_9L_Sidewinder_External_M",						100000],
	["CUP_1Rnd_AIM_9L_Sidewinder_External_M",						100000],
	["CUP_Sidewinder_G",											100000],
	["CUP_8Rnd_RIM7_M",												100000],
	["2Rnd_Missile_AA_03_F",										100000],
	["CUP_4Rnd_Missile_AA_03_F",									100000],
	["CUP_8Rnd_AGM114K_Hellfire_II_M",								100000],
	["CUP_8Rnd_AGM114L_Hellfire_II_M",								100000],
	["CUP_4Rnd_AGM114K_Hellfire_II_M",								100000],
	["CUP_4Rnd_AGM114L_Hellfire_II_M",								100000],
	["CUP_2Rnd_AGM114L_Hellfire_II_M",								100000],
	["CUP_2Rnd_AGM114K_Hellfire_II_M",								100000],
	["CUP_1Rnd_AGM114L_Hellfire_II_M",								100000],
	["CUP_1Rnd_AGM114K_Hellfire_II_M",								100000],
	["CUP_5Rnd_AT5_BRDM2_M",										100000],
	["CUP_8Rnd_AT5_BMP2_M",											100000],
	["CUP_2Rnd_AGM65_Maverick_M",									100000],
	["CUP_4Rnd_AGM65_Maverick_M",									100000],
	["CUP_6Rnd_AGM65_Maverick_M",									100000],
	["CUP_8Rnd_AGM84_Harpoon_M",									100000],
	["CUP_14Rnd_57mm",												100000],
	["CUP_64Rnd_57mm",												100000],
	["CUP_6Rnd_HE_M203_heli",										100000],
	["CUP_fake_weapon_mag",											100000],
	["FakeMagazine",												100000],
	["1200Rnd_20mm_M621",											100000],
	["12Rnd_CRV7",													100000],
	["4Rnd_Hellfire_N",												100000],
	["4Rnd_Hellfire_L",												100000]
];

//**************************************************************

// Disabled stock refueling at fuel trucks / gas pumps.
AVS_DisableStockRefuel = true;

// Use AVS Refuel System
AVS_RefuelSystemActive = true;

// Use AVS to fill Fuel-Canister with AVS Refuel Objects (Gas Station Pump). It's active only if AVS Refuel System is active too.
AVS_FillCanisterActive = true; // Remember to disable "Exile fill canister empty", to do this see Installation.txt

AVS_RefuelDistance = 50;	//  maximum distance to refuel. It doesn't affect the choppers that refuel on roof.
AVS_RefuelObjects =
[
	"Land_HelipadEmpty_F"
];

AVS_FuelCost = 100;					// 5 poptabs/liter
AVS_RefuelSpeed = 2;				// 3 liters/second (for ground vehicles, small tank)
AVS_RefuelSpeedAirVehicle = 10;		// 20 liters/second (for air vehicles, big tank so need to be faster)

//**************************************************************

AVS_DebugMarkers = false;
AVS_PersistentVehiclesPinCode = "0000";
AVS_PersistentVehiclesAmmoPercent = 0; // 100 = full ammo, 50 = half ammo, 0 = no ammo
AVS_PersistentVehiclesFuelPercent = 25; // 100 = full, 50 = half, 0 = empty

//**************************************************************

AVS_useSpawnedPersistentVehiclesLocation = false; // Spawns persistent vehicles at specified locations
AVS_LocationSearchRadius = 50; // Set to 0 for exact positioning.
AVS_spawnedPersistentVehiclesLocation =
[
	//["ID Tag", ["ClassName", "ClassName", ...], [DamageMin, DamageMax], NumberToPersist, [[Location1], [Location2], ...]]
	// NOTE: ID Tag is how AVS tracks how many to persist. If there's 5 vehicles with the ID tag "RandomVehicles" then no more will spawn here.
	["RandomVehicles", ["I_MRAP_03_hmg_F", "B_Heli_Light_01_armed_F"], [0.1, 0.75], 5, [[14909.1,16462.8,0.00143814], [15086.6,16636.2,0.00144386]]],
	// OR
	//["ID Tag", ["ClassName", "ClassName", ...], Damage, NumberToPersist, [[Location1], [Location2], ...]]
	["RandomHeli", ["B_Heli_Light_01_armed_F"], 0.25, 2, [[15186.8,16741.9,0.00143814]]]
];

//**************************************************************

AVS_useSpawnedPersistentVehiclesRoadside = false; // Spawns persistent vehicles near roads.
AVS_RoadSearchRadius = 200; // Max distance to the road
AVS_spawnedPersistentVehiclesRoadside =
[
	//["ID Tag", ["Class1", "Class2"], [DamageMin, DamageMax], NumberToPersist],
	// OR
	//["ID Tag", ["Class1", "Class2"], Damage, NumberToPersist]
];

//**************************************************************

AVS_useSpawnedPersistentVehiclesRandom = false; // Spawns persistent vehicles completely randomly.
AVS_spawnedPersistentVehiclesRandom =
[
	//["ID Tag", ["Class1", "Class2"], [DamageMin, DamageMax], NumberToPersist],
	// OR
	//["ID Tag", ["Class1", "Class2"], Damage, NumberToPersist]
];

 

Try mine. dont comment anything out. If your still getting kicked post a updated server rpt.

Share this post


Link to post
Share on other sites
Advertisement
7 hours ago, macnova said:

Blake tried your script this morning, locked my server up, im ready to call it a day on this thing 

Without logs I can't see whats going on. This scrip dose not work completely anyways. It fails to rearm tanks. It's too bad because this script is really needed with saving the ammo to database.

Edited by Blake2394

Share this post


Link to post
Share on other sites

Thanks for the help tho blake I appreciate it, i have had some issues with a few scripts lately like the paycheck script  and rappel from helicopter scripts not working , yourself and gyro have been the only people to respond to any of my messages so i am really grateful  

Share this post


Link to post
Share on other sites

I think this one saves the ammo Blake, its a pretty recent updated version, I have an issue right now where every vehicle goes back to full ammo on restart which i dont want, any ideas??? infistar maybe? i have a paycheck script also that would not save to database either,

 

Share this post


Link to post
Share on other sites
3 hours ago, macnova said:

I think this one saves the ammo Blake, its a pretty recent updated version, I have an issue right now where every vehicle goes back to full ammo on restart which i dont want, any ideas??? infistar maybe? i have a paycheck script also that would not save to database either,

 

Yah that means it's not saving the ammo. It's not a issue with anything else. I wounder If I can look at both sripts and see if I can call the save ammo to db function from this new script.

Share this post


Link to post
Share on other sites

Hi,

If forEach executes the given command(s) on every item of an array, is it possible to select random items to damage instead within in the following edit?

Thanks

Spoiler

// Set damage
_hitpoints = ["HitLFWheel","HitRFWheel","HitRBWheel","HitLBWheel","HitEngine","HitFuel","HitGlass1","HitGlass2"];

{
    if (typeName _damage isEqualTo "ARRAY") then
    {
        _damageMin = (_damage select 0);
        _damageMax = (_damage select 1);
        _damageDiff = _damageMin - _damageMax;
        _damageChance = random _damageDiff;
        _damage = _damageChance + _damageMin;
        _vehicle setHitPointDamage [_x, _damage];
    }
    else
    {
        _damage = _damage;
        _vehicle setHitPointDamage [_x, _damage];
    };
} forEach _hitpoints;

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.