Jump to content
  • 0

computermancer

Question

cmSALVAGE and REARM SCRIPT

 

I am currently working on a script to allow a player to salvage some metal or parts from vehicles.

 

I am more than half-way done with the script, I would like to share it when it is complete.

 

Currently, it allows you to salvage some metal or repair parts from a vehicle, and with each attempt (chance of failure) the vehicle itself becomes more dmaged.

 

I will have a toggle to allow the option of allowing a chance for the vehicle to explode from too many salvages.

 

At the moment, I am working on the arrays of items to give, as well as making sure there's no way to spam or exploit it from a players position.

 

I will be adding files, videos, and other goodies in the near future.

 

-computermancer

 

EDIT: current alpha version, without any BE filter instructions... CLICK HERE , GOODLUCK!

 

 http://youtu.be/bScgV-8IddM

 

http://youtu.be/N7PZvUcng5s

Link to comment
Share on other sites

Recommended Posts

  • 0

My only problem, is how to apply damage to wheels and motor and hull. If I can learn how to do that, I can finish this damn thing.

 

 

if you haven't found already try these, you would probably want to set a limit of how many times you can salvage as people may just use repair gun to exploit it.

 

https://community.bistudio.com/wiki/setHit

https://community.bistudio.com/wiki/Config_Properties_Megalist#class_HitPoints_names

_MH60S setHit [getText(configFile >> "cfgVehicles" >> "MH60S" >> "HitPoints" >> "HitAvionics" >> "name"), _hit];

Link to comment
Share on other sites

  • 0

Next update they are making this in default epoch. Which is announced to be public release in about 2-3 weeks time. I would just wait till then.

My understanding is they are going to allow you to use the sledgehammer to get scrap metal from vehicle wrecks... nto actually remove scrap from live vehicles. But perhaps my understanding of the wording is incorrect.

 

 

"You can now bash persistent wrecks of vehicles/rocks and get scrap metal from them"

Link to comment
Share on other sites

  • 0

how fun is this!

 

This is a loop to get damages information from vehicle cusortarget... not actually a part of the complete salvage script

while {true} do {

sleep 1;

cm_check1 = cursorTarget;

cm_check2 = cm_check1 getHitPointDamage "HitLFWheel";
cm_check3 = cm_check1 getHitPointDamage "HitRFWheel";
cm_check4 = cm_check1 getHitPointDamage "HitLBWheel";
cm_check5 = cm_check1 getHitPointDamage "HitRBWheel";
cm_check6 = cm_check1 getHitPointDamage "HitLF2Wheel"; //Left Back
cm_check7 = cm_check1 getHitPointDamage "HitRF2Wheel"; //Right Back
cm_check8 = cm_check1 getHitPointDamage "HitLMWheel";
cm_check9 = cm_check1 getHitPointDamage "HitRMWheel";

cm_check10 = cm_check1 getHitPointDamage "HitFuel";
cm_check11 = cm_check1 getHitPointDamage "HitEngine";
cm_check12 = cm_check1 getHitPointDamage "HitBody";

cm_check13 = cm_check1 getHitPointDamage "HitGlass1";
cm_check14 = cm_check1 getHitPointDamage "HitGlass2";
cm_check15 = cm_check1 getHitPointDamage "HitGlass3";
cm_check16 = cm_check1 getHitPointDamage "HitGlass4";
cm_check17 = cm_check1 getHitPointDamage "HitRGlass";
cm_check18 = cm_check1 getHitPointDamage "HitLGlass";
cm_check19 = cm_check1 getHitPointDamage "HitGlass5";
cm_check20 = cm_check1 getHitPointDamage "HitGlass6";

cm_check21 = cm_check1 getHitPointDamage "HitEngine2";
cm_check22 = cm_check1 getHitPointDamage "HitEngine3";
cm_check23 = cm_check1 getHitPointDamage "HitHRotor";
cm_check24 = cm_check1 getHitPointDamage "HitVRotor";
cm_check25 = cm_check1 getHitPointDamage "HitTail";
cm_check26 = cm_check1 getHitPointDamage "HitLight";
cm_check27 = cm_check1 getHitPointDamage "HitGear";
cm_check28 = cm_check1 getHitPointDamage "HitAvionics";
cm_check29 = cm_check1 getHitPointDamage "HitHull";
cm_check30 = cm_check1 getHitPointDamage "HitStarter1";
cm_check31 = cm_check1 getHitPointDamage "HitStarter2";
cm_check32 = cm_check1 getHitPointDamage "HitStarter3";



hint format ["HitLFWheel: %2 , HitRFWheel: %3  HitLBWheel: %4  HitRBWheel: %5 HitLF2Wheel: %6 HitRF2Wheel: %7 HitLMWheel: %8 HitRMWheel: %9 HitFuel: %10   HitEngine: %11  HitBody: %12 , HitGlass1: %13  HitGlass2: %14  HitGlass3: %15 HitGlass4: %16 HitRGlass: %17 HitLGlass: %18 HitGlass5: %19 HitGlass6: %20  HitEngine2: %21  HitEngine3: %22   HitHRotor: %23  HitVRotor: %24  HitTail: %25 HitLight: %26 HitGear: %27 HitAvionics: %28 HitHull: %29 HitStarter1: %30   HitStarter2: %31  HitStarter3: %32" ,
cm_check1,
cm_check2,
cm_check3,
cm_check4,
cm_check5,
cm_check6,
cm_check7,
cm_check8,
cm_check9,
cm_check10,
cm_check11,
cm_check12,
cm_check13,
cm_check14,
cm_check15,
cm_check16,
cm_check17,
cm_check18,
cm_check19,
cm_check20,
cm_check21,
cm_check22,
cm_check23,
cm_check24,
cm_check25,
cm_check26,
cm_check27,
cm_check28,
cm_check29,
cm_check30,
cm_check31,
cm_check32

];

};
Link to comment
Share on other sites

  • 0

WOW ComputerMancer! I am very very happy with your menu.

I have twice so far visited your server and twice now used it on my own.

Dude major props to you and your hard work from day one on this and your other projects.

However I would like to offer this back to you and the community.

This array will allow anyone with all type of Arma 3 vehicles / Epoch vehicles / Mas Vehicles and a few other mods vehicles all in this list.

This array is the full list and I have also added in a few cm arrays to be worked with.

I have attempted the orca's ammo salvage and reload but have not had full success.

I hope sharing this is enough to say Thanks back to ya!

This is only the Arrays at the end of the file

//ARRAYS

//=======================================================================================

//item is what ?Repair_EPOCH ......................

if (cmDebug) then {systemChat "Arrays";};

cm_VehWeaponArray1 = ["B_MRAP_01_gmg_F","O_MRAP_02_gmg_F"];

cm_VehWeaponArray2 = ["B_MRAP_01_hmg_F","O_MRAP_02_hmg_F"];

cm_VehWeaponArray3 = ["B_G_Offroad_01_armed_F"];

cm_VehWeaponArray4 = ["B_Heli_Transport_01_camo_F","B_Heli_Transport_03_black_F","B_Heli_Transport_03_F","B_Heli_Transport_01_camo_EPOCH","O_Heli_Light_02_unarmed_EPOCH","B_Heli_Transport_01_F","B_Heli_Transport_01_EPOCH"];

cm_VehWeaponArray5 = ["O_Heli_Light_02_F","O_Heli_Light_02_unarmed_F","O_Heli_Light_02_v2_F","B_Heli_Light_01_armed_F","civ_ka60_whiteblue"];

cm_ArmedTypes = [

"B_MRAP_01_hmg_F",

"B_MRAP_01_gmg_F",

"O_MRAP_02_gmg_F",

"O_MRAP_02_hmg_F",

"B_G_Offroad_01_armed_F",

"B_mas_HMMWV_M2",

"B_Heli_Transport_01_EPOCH",

"B_Heli_Transport_01_camo_EPOCH",

"O_Heli_Light_02_unarmed_EPOCH",

"B_Heli_Light_01_armed_F",

"O_Heli_Light_02_F",

"O_Heli_Light_02_unarmed_F",

"O_Heli_Light_02_v2_F",

"B_Heli_Transport_01_F",

"B_Heli_Transport_01_camo_F",

"B_Heli_Transport_03_F",

"B_Heli_Transport_03_black_F",

"B_mas_CH_47F",

"B_mas_UH60M",

"B_mas_UH60M_SF",

"B_mas_UH60M_MEV",

"civ_ka60_whiteblue",

"B_mas_UH1Y_F",

"I_mas_MI24V",

"O_mas_MI24V",

"I_mas_MI8",

"O_mas_MI8",

"I_mas_MI8MTV",

"O_mas_MI8MTV"

];

cm_PlaneTypes = [

"B_Plane_CAS_01_F",

"O_Plane_CAS_02_F",

"I_Plane_Fighter_03_CAS_F",

"I_Plane_Fighter_03_AA_F",

"sab_C130_J",

"sab_C130_JT",

"sab_C130_JC",

"sab_C130_JE",

"sab_C130_JEC",

"sab_C130_H",

"sab_C130_HC",

"sab_C130_HE",

"sab_C130_HEC",

"sab_C130_FA",

"sab_C130_LC",

"sab_C130_LC_Ski",

"sab_C130_CG",

"sab_C130_CSP",

"sab_C130_FP",

"sab_C130_H_CSAT",

"sab_C130_H_CSAT2",

"sab_C130_H_CSAT3",

"sab_C130_H_AAF",

"sab_C130_H_AAF2",

"sab_C130_H_AAF3",

"sab_C130_J_FF",

"sab_C130_J_FF2",

"sab_L100_AL",

"sab_camel",

"sab_camel_blu",

"sab_camel_blu_B",

"sab_camel_ind",

"sab_camel_ind_B",

"sab_camel_red",

"sab_camel_red_B"

];

cm_ChopperTYpes = [

"mosquito_epoch",

"B_Heli_Light_01_EPOCH",

"B_Heli_Transport_01_EPOCH",

"B_Heli_Transport_01_camo_EPOCH",

"O_Heli_Light_02_unarmed_EPOCH",

"I_Heli_Transport_02_EPOCH",

"O_Heli_Transport_04_EPOCH",

"O_Heli_Transport_04_bench_EPOCH",

"O_Heli_Transport_04_box_EPOCH",

"O_Heli_Transport_04_covered_EPOCH",

"B_Heli_Transport_03_unarmed_EPOCH",

"B_Heli_Light_01_F",

"B_Heli_Light_01_armed_F",

"C_Heli_Light_01_civil_F",

"C_Heli_Light_01_blue_F",

"C_Heli_Light_01_red_F",

"C_Heli_Light_01_ion_F",

"C_Heli_Light_01_blueline_F",

"C_Heli_Light_01_digital_F",

"C_Heli_Light_01_elliptical_F",

"C_Heli_Light_01_turious_F",

"C_Heli_Light_01_graywatcher_F",

"C_Heli_Light_01_jeans_F",

"C_Heli_Light_01_light_F",

"C_Heli_Light_01_shadow_F",

"C_Heli_Light_01_sheriff_F",

"C_Heli_Light_01_speedy_F",

"C_Heli_Light_01_sunset_F",

"C_Heli_Light_01_vrana_F",

"C_Heli_Light_01_wasp_F",

"C_Heli_Light_01_wave_F",

"C_Heli_Light_01_stripped_F",

"C_Heli_Light_01_luxe_F",

"B_Heli_Light_01_stripped_F",

"O_Heli_Light_02_F",

"O_Heli_Light_02_unarmed_F",

"O_Heli_Light_02_v2_F",

"B_Heli_Attack_01_F",

"O_Heli_Attack_02_F",

"O_Heli_Attack_02_black_F",

"B_Heli_Transport_01_F",

"B_Heli_Transport_01_camo_F",

"I_Heli_Transport_02_F",

"B_Heli_Transport_03_F",

"B_Heli_Transport_03_unarmed_F",

"B_Heli_Transport_03_black_F",

"B_Heli_Transport_03_unarmed_green_F",

"O_Heli_Transport_04_F",

"O_Heli_Transport_04_ammo_F",

"O_Heli_Transport_04_bench_F",

"O_Heli_Transport_04_box_F",

"O_Heli_Transport_04_covered_F",

"O_Heli_Transport_04_fuel_F",

"O_Heli_Transport_04_medevac_F",

"O_Heli_Transport_04_repair_F",

"O_Heli_Transport_04_black_F",

"O_Heli_Transport_04_ammo_black_F",

"O_Heli_Transport_04_bench_black_F",

"O_Heli_Transport_04_box_black_F",

"O_Heli_Transport_04_covered_black_F",

"O_Heli_Transport_04_fuel_black_F",

"O_Heli_Transport_04_medevac_black_F",

"O_Heli_Transport_04_repair_black_F",

"B_mas_CH_47F",

"B_mas_UH60M",

"B_mas_UH60M_SF",

"B_mas_UH60M_MEV",

"civ_mohawk_ion",

"civ_mohawk_dahoman",

"civ_md500_vrana",

"civ_md500_shadow",

"civ_md500_blueline",

"civ_md500_urban",

"civ_md500_whitered",

"civ_md500_greywatcher",

"civ_md500_jeans",

"civ_md500_sherrif",

"civ_md500_speedy",

"civ_md500_sunset",

"civ_md500_wasp",

"civ_md500_wave",

"civ_ka60_whiteblue",

"B_mas_UH1Y_UNA_F",

"B_mas_UH1Y_MEV_F",

"B_mas_UH1Y_F",

"I_mas_MI24V",

"O_mas_MI24V",

"I_mas_MI8",

"O_mas_MI8",

"I_mas_MI8MTV",

"O_mas_MI8MTV"

];

cm_AutomobileTypes= [

"ebike_epoch",

"C_Hatchback_01_EPOCH",

"C_Hatchback_02_EPOCH",

"C_Offroad_01_EPOCH",

"C_Quadbike_01_EPOCH",

"C_SUV_01_EPOCH",

"C_Van_01_box_EPOCH",

"C_Van_01_transport_EPOCH",

"B_MRAP_01_EPOCH",

"B_Truck_01_transport_EPOCH",

"B_Truck_01_covered_EPOCH",

"B_Truck_01_mover_EPOCH",

"B_Truck_01_box_EPOCH",

"O_Truck_02_covered_EPOCH",

"O_Truck_02_transport_EPOCH",

"O_Truck_03_covered_EPOCH",

"O_Truck_02_box_EPOCH",

"K01",

"K02",

"K03",

"K04",

"B_MRAP_01_F",

"B_MRAP_01_hmg_F",

"B_MRAP_01_gmg_F",

"O_MRAP_02_F",

"O_MRAP_02_hmg_F",

"O_MRAP_02_gmg_F",

"C_Offroad_01_F",

"C_Offroad_01_repair_F",

"B_G_Offroad_01_repair_F",

"O_G_Offroad_01_repair_F",

"I_G_Offroad_01_repair_F",

"I_G_Offroad_01_F",

"I_G_Offroad_01_armed_F",

"B_G_Offroad_01_F",

"O_G_Offroad_01_F",

"B_G_Offroad_01_armed_F",

"O_G_Offroad_01_armed_F",

"C_Quadbike_01_F",

"B_Quadbike_01_F",

"O_Quadbike_01_F",

"I_Quadbike_01_F",

"I_G_Quadbike_01_F",

"B_G_Quadbike_01_F",

"O_G_Quadbike_01_F",

"C_Quadbike_01_black_F",

"C_Quadbike_01_blue_F",

"C_Quadbike_01_red_F",

"C_Quadbike_01_white_F",

"I_MRAP_03_F",

"I_MRAP_03_hmg_F",

"I_MRAP_03_gmg_F",

"B_Truck_01_transport_F",

"B_Truck_01_covered_F",

"O_Truck_02_covered_F",

"O_Truck_02_transport_F",

"I_Truck_02_covered_F",

"I_Truck_02_transport_F",

"O_Truck_03_transport_F",

"O_Truck_03_covered_F",

"O_Truck_03_repair_F",

"O_Truck_03_ammo_F",

"O_Truck_03_fuel_F",

"O_Truck_03_medical_F",

"O_Truck_03_device_F",

"C_Hatchback_01_F",

"C_Hatchback_01_sport_F",

"C_Hatchback_01_grey_F",

"C_Hatchback_01_green_F",

"C_Hatchback_01_blue_F",

"C_Hatchback_01_deepblue_F",

"C_Hatchback_01_deepsand_F",

"C_Hatchback_01_yellow_F",

"C_Hatchback_01_white_F",

"C_Hatchback_01_black_F",

"C_Hatchback_01_dark_F",

"C_Hatchback_01_sport_red_F",

"C_Hatchback_01_sport_blue_F",

"C_Hatchback_01_sport_orange_F",

"C_Hatchback_01_sport_white_F",

"C_Hatchback_01_sport_grey_F",

"C_Hatchback_01_sport_green_F",

"C_SUV_01_F",

"B_Truck_01_mover_F",

"B_Truck_01_box_F",

"B_Truck_01_Repair_F",

"B_Truck_01_ammo_F",

"B_Truck_01_fuel_F",

"B_Truck_01_medical_F",

"O_Truck_02_box_F",

"O_Truck_02_medical_F",

"O_Truck_02_Ammo_F",

"O_Truck_02_fuel_F",

"I_Truck_02_Ammo_F",

"I_Truck_02_box_F",

"I_Truck_02_medical_F",

"I_Truck_02_fuel_F",

"C_Van_01_transport_F",

"I_G_Van_01_transport_F",

"C_Van_01_box_F",

"C_Van_01_fuel_F",

"I_G_Van_01_fuel_F",

"B_G_Van_01_transport_F",

"O_G_Van_01_transport_F",

"B_G_Van_01_fuel_F",

"O_G_Van_01_fuel_F",

"C_Van_01_transport_white_F",

"C_Van_01_transport_red_F",

"C_Van_01_box_white_F",

"C_Van_01_box_red_F",

"C_Van_01_fuel_white_F",

"C_Van_01_fuel_red_F",

"C_Van_01_fuel_white_v2_F",

"C_Van_01_fuel_red_v2_F",

"C_Kart_01_F",

"C_Kart_01_Fuel_F",

"C_Kart_01_Blu_F",

"C_Kart_01_Red_F",

"C_Kart_01_Vrana_F",

"C_Kart_01_green_F",

"C_Kart_01_orange_F",

"C_Kart_01_white_F",

"C_Kart_01_yellow_F",

"C_Kart_01_black_F",

"MRAP_01_hybrid_F",

"C_Hatchback_01_rallye_F",

"C_Hatchback_E_01_F",

"C_Offroad_01_F_RWD",

"C_Offroad_Rally_F",

"C_Van_01_repair_F",

"C_Quadbike_01_G700_F",

"B_Quadbike_01_G700_F",

"O_Quadbike_01_G700_F",

"I_Quadbike_01_G700_F",

"B_Quadbike_01_G700_Support_F",

"B_Quadbike_01_G700_Repair_F",

"O_Quadbike_01_G700_Support_F",

"O_Quadbike_01_G700_Repair_F",

"B_G_Quadbike_01_G700_F",

"B_G_Quadbike_01_G700_Support_F",

"B_G_Quadbike_01_G700_Repair_F",

"C_Quadbike_01_black_G700_F",

"C_Quadbike_01_blue_G700_F",

"C_Quadbike_01_red_G700_F",

"C_Quadbike_01_white_G700_F",

"civ_Truck_02_transport_F",

"civ_Truck_02_covered_F",

"civ_Truck_02_fuel_F",

"civ_Truck_02_box_F",

"C_SUV_01_sport_F",

"B_mas_cars_Hilux_MG",

"B_mas_cars_Hilux_M2",

"B_mas_cars_Hilux_AGS30",

"B_mas_cars_Hilux_Unarmed",

"B_mas_cars_Hilux_Med",

"B_mas_cars_Hilux_SPG9",

"B_mas_cars_Hilux_RKTS",

"B_mas_HMMWV_M2",

"B_mas_HMMWV_M134",

"B_mas_HMMWV_SOV",

"B_mas_HMMWV_SOV_M134",

"B_mas_HMMWV_TOW",

"B_mas_HMMWV_MK19",

"B_mas_HMMWV_UNA",

"B_mas_HMMWV_MEV",

"B_mas_HMMWV_M2_des",

"B_mas_HMMWV_M134_des",

"B_mas_HMMWV_SOV_des",

"B_mas_HMMWV_SOV_M134_des",

"B_mas_HMMWV_TOW_des",

"B_mas_HMMWV_MK19_des",

"B_mas_HMMWV_UNA_des",

"B_mas_HMMWV_MEV_des",

"I_mas_cars_UAZ_MG",

"O_mas_cars_UAZ_MG",

"I_mas_cars_UAZ_M2",

"I_mas_cars_UAZ_AGS30",

"O_mas_cars_UAZ_AGS30",

"I_mas_cars_UAZ_Unarmed",

"I_mas_cars_UAZ_Med",

"O_mas_cars_UAZ_Unarmed",

"O_mas_cars_UAZ_Med",

"I_mas_cars_UAZ_SPG7",

"O_mas_cars_UAZ_SPG9",

"RDS_Ikarus_Civ_01",

"RDS_Ikarus_Civ_02",

"RDS_Lada_Civ_01",

"RDS_Lada_Civ_02",

"RDS_Lada_Civ_03",

"RDS_Lada_Civ_04",

"RDS_Lada_Civ_05",

"RDS_S1203_Civ_01",

"RDS_S1203_Civ_02",

"RDS_S1203_Civ_03",

"RDS_Gaz24_Civ_01",

"RDS_Gaz24_Civ_02",

"RDS_Gaz24_Civ_03",

"RDS_Golf4_Civ_01",

"RDS_Octavia_Civ_01",

"RDS_Hatchback_01_F",

"RDS_SUV_01_F",

"RDS_Van_01_transport_F",

"RDS_Van_01_fuel_F",

"RDS_Van_01_box_F",

"I_mas_BMP1_AAF_01",

"O_mas_BMP1_OPF_01",

"I_mas_BMP1P_AAF_01",

"O_mas_BMP1P_OPF_01",

"I_mas_BMP2_AAF_01",

"O_mas_BMP2_OPF_01",

"I_mas_BMP2_HQ_AAF_01",

"O_mas_BMP2_HQ_AAF_01",

"I_mas_BMP2_Ambul_01",

"O_mas_BMP2_Ambul_01",

"I_mas_BRDM2",

"O_mas_BRDM2",

"I_mas_BTR60",

"O_mas_BTR60",

"B_mas_cars_LR_Unarmed",

"B_mas_cars_LR_Med",

"B_mas_cars_LR_M2",

"B_mas_cars_LR_Mk19",

"B_mas_cars_LR_TOW",

"B_mas_cars_LR_SPG9",

"I_mas_cars_LR_soft_Unarmed",

"I_mas_cars_LR_soft_Med",

"I_mas_cars_LR_soft_M2",

"I_mas_cars_LR_soft_Mk19",

"I_mas_cars_LR_soft_TOW",

"I_mas_cars_LR_soft_SPG9"

];

cm_WaterTypes = [

"B_SDV_01_EPOCH",

"C_Rubberboat_EPOCH",

"C_Rubberboat_02_EPOCH",

"C_Rubberboat_03_EPOCH",

"C_Rubberboat_04_EPOCH",

"jetski_epoch",

"C_Boat_Civil_01_EPOCH",

"C_Boat_Civil_01_police_EPOCH",

"C_Boat_Civil_01_rescue_EPOCH",

"O_G_Boat_Transport_01_F"

];

cm_allowedArray = [

"mosquito_epoch",

"B_Heli_Light_01_EPOCH",

"B_Heli_Transport_01_EPOCH",

"B_Heli_Transport_01_camo_EPOCH",

"O_Heli_Light_02_unarmed_EPOCH",

"I_Heli_Transport_02_EPOCH",

"O_Heli_Transport_04_EPOCH",

"O_Heli_Transport_04_bench_EPOCH",

"O_Heli_Transport_04_box_EPOCH",

"O_Heli_Transport_04_covered_EPOCH",

"B_Heli_Transport_03_unarmed_EPOCH",

"B_Heli_Light_01_F",

"B_Heli_Light_01_armed_F",

"C_Heli_Light_01_civil_F",

"C_Heli_Light_01_blue_F",

"C_Heli_Light_01_red_F",

"C_Heli_Light_01_ion_F",

"C_Heli_Light_01_blueline_F",

"C_Heli_Light_01_digital_F",

"C_Heli_Light_01_elliptical_F",

"C_Heli_Light_01_turious_F",

"C_Heli_Light_01_graywatcher_F",

"C_Heli_Light_01_jeans_F",

"C_Heli_Light_01_light_F",

"C_Heli_Light_01_shadow_F",

"C_Heli_Light_01_sheriff_F",

"C_Heli_Light_01_speedy_F",

"C_Heli_Light_01_sunset_F",

"C_Heli_Light_01_vrana_F",

"C_Heli_Light_01_wasp_F",

"C_Heli_Light_01_wave_F",

"C_Heli_Light_01_stripped_F",

"C_Heli_Light_01_luxe_F",

"B_Heli_Light_01_stripped_F",

"O_Heli_Light_02_F",

"O_Heli_Light_02_unarmed_F",

"O_Heli_Light_02_v2_F",

"B_Heli_Attack_01_F",

"O_Heli_Attack_02_F",

"O_Heli_Attack_02_black_F",

"B_Heli_Transport_01_F",

"B_Heli_Transport_01_camo_F",

"I_Heli_Transport_02_F",

"B_Heli_Transport_03_F",

"B_Heli_Transport_03_unarmed_F",

"B_Heli_Transport_03_black_F",

"B_Heli_Transport_03_unarmed_green_F",

"O_Heli_Transport_04_F",

"O_Heli_Transport_04_ammo_F",

"O_Heli_Transport_04_bench_F",

"O_Heli_Transport_04_box_F",

"O_Heli_Transport_04_covered_F",

"O_Heli_Transport_04_fuel_F",

"O_Heli_Transport_04_medevac_F",

"O_Heli_Transport_04_repair_F",

"O_Heli_Transport_04_black_F",

"O_Heli_Transport_04_ammo_black_F",

"O_Heli_Transport_04_bench_black_F",

"O_Heli_Transport_04_box_black_F",

"O_Heli_Transport_04_covered_black_F",

"O_Heli_Transport_04_fuel_black_F",

"O_Heli_Transport_04_medevac_black_F",

"O_Heli_Transport_04_repair_black_F",

"B_mas_CH_47F",

"B_mas_UH60M",

"B_mas_UH60M_SF",

"B_mas_UH60M_MEV",

"civ_mohawk_ion",

"civ_mohawk_dahoman",

"civ_md500_vrana",

"civ_md500_shadow",

"civ_md500_blueline",

"civ_md500_urban",

"civ_md500_whitered",

"civ_md500_greywatcher",

"civ_md500_jeans",

"civ_md500_sherrif",

"civ_md500_speedy",

"civ_md500_sunset",

"civ_md500_wasp",

"civ_md500_wave",

"civ_ka60_whiteblue",

"B_mas_UH1Y_UNA_F",

"B_mas_UH1Y_MEV_F",

"B_mas_UH1Y_F",

"I_mas_MI24V",

"O_mas_MI24V",

"I_mas_MI8",

"O_mas_MI8",

"I_mas_MI8MTV",

"O_mas_MI8MTV",

"ebike_epoch",

"C_Hatchback_01_EPOCH",

"C_Hatchback_02_EPOCH",

"C_Offroad_01_EPOCH",

"C_Quadbike_01_EPOCH",

"C_SUV_01_EPOCH",

"C_Van_01_box_EPOCH",

"C_Van_01_transport_EPOCH",

"B_MRAP_01_EPOCH",

"B_Truck_01_transport_EPOCH",

"B_Truck_01_covered_EPOCH",

"B_Truck_01_mover_EPOCH",

"B_Truck_01_box_EPOCH",

"O_Truck_02_covered_EPOCH",

"O_Truck_02_transport_EPOCH",

"O_Truck_03_covered_EPOCH",

"O_Truck_02_box_EPOCH",

"K01",

"K02",

"K03",

"K04",

"B_MRAP_01_F",

"B_MRAP_01_hmg_F",

"B_MRAP_01_gmg_F",

"O_MRAP_02_F",

"O_MRAP_02_hmg_F",

"O_MRAP_02_gmg_F",

"C_Offroad_01_F",

"C_Offroad_01_repair_F",

"B_G_Offroad_01_repair_F",

"O_G_Offroad_01_repair_F",

"I_G_Offroad_01_repair_F",

"I_G_Offroad_01_F",

"I_G_Offroad_01_armed_F",

"B_G_Offroad_01_F",

"O_G_Offroad_01_F",

"B_G_Offroad_01_armed_F",

"O_G_Offroad_01_armed_F",

"C_Quadbike_01_F",

"B_Quadbike_01_F",

"O_Quadbike_01_F",

"I_Quadbike_01_F",

"I_G_Quadbike_01_F",

"B_G_Quadbike_01_F",

"O_G_Quadbike_01_F",

"C_Quadbike_01_black_F",

"C_Quadbike_01_blue_F",

"C_Quadbike_01_red_F",

"C_Quadbike_01_white_F",

"I_MRAP_03_F",

"I_MRAP_03_hmg_F",

"I_MRAP_03_gmg_F",

"B_Truck_01_transport_F",

"B_Truck_01_covered_F",

"O_Truck_02_covered_F",

"O_Truck_02_transport_F",

"I_Truck_02_covered_F",

"I_Truck_02_transport_F",

"O_Truck_03_transport_F",

"O_Truck_03_covered_F",

"O_Truck_03_repair_F",

"O_Truck_03_ammo_F",

"O_Truck_03_fuel_F",

"O_Truck_03_medical_F",

"O_Truck_03_device_F",

"C_Hatchback_01_F",

"C_Hatchback_01_sport_F",

"C_Hatchback_01_grey_F",

"C_Hatchback_01_green_F",

"C_Hatchback_01_blue_F",

"C_Hatchback_01_deepblue_F",

"C_Hatchback_01_deepsand_F",

"C_Hatchback_01_yellow_F",

"C_Hatchback_01_white_F",

"C_Hatchback_01_black_F",

"C_Hatchback_01_dark_F",

"C_Hatchback_01_sport_red_F",

"C_Hatchback_01_sport_blue_F",

"C_Hatchback_01_sport_orange_F",

"C_Hatchback_01_sport_white_F",

"C_Hatchback_01_sport_grey_F",

"C_Hatchback_01_sport_green_F",

"C_SUV_01_F",

"B_Truck_01_mover_F",

"B_Truck_01_box_F",

"B_Truck_01_Repair_F",

"B_Truck_01_ammo_F",

"B_Truck_01_fuel_F",

"B_Truck_01_medical_F",

"O_Truck_02_box_F",

"O_Truck_02_medical_F",

"O_Truck_02_Ammo_F",

"O_Truck_02_fuel_F",

"I_Truck_02_Ammo_F",

"I_Truck_02_box_F",

"I_Truck_02_medical_F",

"I_Truck_02_fuel_F",

"C_Van_01_transport_F",

"I_G_Van_01_transport_F",

"C_Van_01_box_F",

"C_Van_01_fuel_F",

"I_G_Van_01_fuel_F",

"B_G_Van_01_transport_F",

"O_G_Van_01_transport_F",

"B_G_Van_01_fuel_F",

"O_G_Van_01_fuel_F",

"C_Van_01_transport_white_F",

"C_Van_01_transport_red_F",

"C_Van_01_box_white_F",

"C_Van_01_box_red_F",

"C_Van_01_fuel_white_F",

"C_Van_01_fuel_red_F",

"C_Van_01_fuel_white_v2_F",

"C_Van_01_fuel_red_v2_F",

"C_Kart_01_F",

"C_Kart_01_Fuel_F",

"C_Kart_01_Blu_F",

"C_Kart_01_Red_F",

"C_Kart_01_Vrana_F",

"C_Kart_01_green_F",

"C_Kart_01_orange_F",

"C_Kart_01_white_F",

"C_Kart_01_yellow_F",

"C_Kart_01_black_F",

"MRAP_01_hybrid_F",

"C_Hatchback_01_rallye_F",

"C_Hatchback_E_01_F",

"C_Offroad_01_F_RWD",

"C_Offroad_Rally_F",

"C_Van_01_repair_F",

"C_Quadbike_01_G700_F",

"B_Quadbike_01_G700_F",

"O_Quadbike_01_G700_F",

"I_Quadbike_01_G700_F",

"B_Quadbike_01_G700_Support_F",

"B_Quadbike_01_G700_Repair_F",

"O_Quadbike_01_G700_Support_F",

"O_Quadbike_01_G700_Repair_F",

"B_G_Quadbike_01_G700_F",

"B_G_Quadbike_01_G700_Support_F",

"B_G_Quadbike_01_G700_Repair_F",

"C_Quadbike_01_black_G700_F",

"C_Quadbike_01_blue_G700_F",

"C_Quadbike_01_red_G700_F",

"C_Quadbike_01_white_G700_F",

"civ_Truck_02_transport_F",

"civ_Truck_02_covered_F",

"civ_Truck_02_fuel_F",

"civ_Truck_02_box_F",

"C_SUV_01_sport_F",

"B_mas_cars_Hilux_MG",

"B_mas_cars_Hilux_M2",

"B_mas_cars_Hilux_AGS30",

"B_mas_cars_Hilux_Unarmed",

"B_mas_cars_Hilux_Med",

"B_mas_cars_Hilux_SPG9",

"B_mas_cars_Hilux_RKTS",

"B_mas_HMMWV_M2",

"B_mas_HMMWV_M134",

"B_mas_HMMWV_SOV",

"B_mas_HMMWV_SOV_M134",

"B_mas_HMMWV_TOW",

"B_mas_HMMWV_MK19",

"B_mas_HMMWV_UNA",

"B_mas_HMMWV_MEV",

"B_mas_HMMWV_M2_des",

"B_mas_HMMWV_M134_des",

"B_mas_HMMWV_SOV_des",

"B_mas_HMMWV_SOV_M134_des",

"B_mas_HMMWV_TOW_des",

"B_mas_HMMWV_MK19_des",

"B_mas_HMMWV_UNA_des",

"B_mas_HMMWV_MEV_des",

"I_mas_cars_UAZ_MG",

"O_mas_cars_UAZ_MG",

"I_mas_cars_UAZ_M2",

"I_mas_cars_UAZ_AGS30",

"O_mas_cars_UAZ_AGS30",

"I_mas_cars_UAZ_Unarmed",

"I_mas_cars_UAZ_Med",

"O_mas_cars_UAZ_Unarmed",

"O_mas_cars_UAZ_Med",

"I_mas_cars_UAZ_SPG7",

"O_mas_cars_UAZ_SPG9",

"RDS_Ikarus_Civ_01",

"RDS_Ikarus_Civ_02",

"RDS_Lada_Civ_01",

"RDS_Lada_Civ_02",

"RDS_Lada_Civ_03",

"RDS_Lada_Civ_04",

"RDS_Lada_Civ_05",

"RDS_S1203_Civ_01",

"RDS_S1203_Civ_02",

"RDS_S1203_Civ_03",

"RDS_Gaz24_Civ_01",

"RDS_Gaz24_Civ_02",

"RDS_Gaz24_Civ_03",

"RDS_Golf4_Civ_01",

"RDS_Octavia_Civ_01",

"RDS_Hatchback_01_F",

"RDS_SUV_01_F",

"RDS_Van_01_transport_F",

"RDS_Van_01_fuel_F",

"RDS_Van_01_box_F",

"I_mas_BMP1_AAF_01",

"O_mas_BMP1_OPF_01",

"I_mas_BMP1P_AAF_01",

"O_mas_BMP1P_OPF_01",

"I_mas_BMP2_AAF_01",

"O_mas_BMP2_OPF_01",

"I_mas_BMP2_HQ_AAF_01",

"O_mas_BMP2_HQ_AAF_01",

"I_mas_BMP2_Ambul_01",

"O_mas_BMP2_Ambul_01",

"I_mas_BRDM2",

"O_mas_BRDM2",

"I_mas_BTR60",

"O_mas_BTR60",

"B_mas_cars_LR_Unarmed",

"B_mas_cars_LR_Med",

"B_mas_cars_LR_M2",

"B_mas_cars_LR_Mk19",

"B_mas_cars_LR_TOW",

"B_mas_cars_LR_SPG9",

"I_mas_cars_LR_soft_Unarmed",

"I_mas_cars_LR_soft_Med",

"I_mas_cars_LR_soft_M2",

"I_mas_cars_LR_soft_Mk19",

"I_mas_cars_LR_soft_TOW",

"I_mas_cars_LR_soft_SPG9"

];

Link to comment
Share on other sites

  • 0

So just playing around I added in cm_PlaneTypes and cm_WaterTypes and have them listed in there also.

Preemptive work in case you have been busy on other projects or life.

So far I have added in the orca's to the armed side of the script.

Added a new weapons array and am able to salvage ammo from the minigun.

I do have the reload side of it recognizing the ammo to use on the vehicle and it processes but not fully.

Link to comment
Share on other sites

  • 0

Wow! Awesome list of arrays dude!  :wub:

 

I should have enough free-time this week to separate my scripts into packages so I can share the code. :blink:

 

I know if you go to my server and download my mission file, it's a bit hard to tell what functions go to what scripts... messy  :P

Link to comment
Share on other sites

  • 0

Please pardon my ignorance, as I'm just learning the guts of scripting, but doesn't this code

while {true} do {

sleep 1;

 basically mean that this script is going to be checking hitpoints on every vehicle on the map once per second?  If so I could foresee there being a HUGE performance hit when running this.  

 

Once again, if I'm wrong, please forgive my noobishness.  lol!

Link to comment
Share on other sites

  • 0

Please pardon my ignorance, as I'm just learning the guts of scripting, but doesn't this code

while {true} do {

sleep 1;

 basically mean that this script is going to be checking hitpoints on every vehicle on the map once per second?  If so I could foresee there being a HUGE performance hit when running this.  

 

Once again, if I'm wrong, please forgive my noobishness.  lol!

 

Where in the code is this loop? 

 

I will check it out to see...

Link to comment
Share on other sites

  • 0

Where in the code is this loop? 

 

I will check it out to see...

 

 

It's this code here

while {true} do {

sleep 1;

cm_check1 = cursorTarget;

cm_check2 = cm_check1 getHitPointDamage "HitLFWheel";
cm_check3 = cm_check1 getHitPointDamage "HitRFWheel";
cm_check4 = cm_check1 getHitPointDamage "HitLBWheel";
cm_check5 = cm_check1 getHitPointDamage "HitRBWheel";
cm_check6 = cm_check1 getHitPointDamage "HitLF2Wheel"; //Left Back
cm_check7 = cm_check1 getHitPointDamage "HitRF2Wheel"; //Right Back
cm_check8 = cm_check1 getHitPointDamage "HitLMWheel";
cm_check9 = cm_check1 getHitPointDamage "HitRMWheel";

So every second the game is going to be checking if every connected player's cursor is targeting a vehicle?  Or am I reading that wrong?

Link to comment
Share on other sites

  • 0

ooooh, is this code from the scan-tool script I wrote in a post up above in this thread? 

 

If so, that was just one of the first things I had to learn and use to be able to manipulate parts damages.

 

That code is not in the actual script... but yeah, that is what that does, it checks the damages of every part on the cursortarget vehicles.

Link to comment
Share on other sites

  • 0

Ok, I thought I would be nice and I ripped out the salvage functions to make a preliminary version... so no BE filters are documented yet....

 

You can try this out on your test server and do the filters yourself, or wait for me to make the lists... I will be able to test this out on my vanilla test server later today... hopefully....

 

goodluck!

 

CLICK HERE FOR RAR OF ALPHA WITH NO BE FILTERS SETUP

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...