Jump to content

[Release] R3F lifting and towing. working


Recommended Posts

hey guys. i will admit, i am the newest newb to this.

i have put in this tow/lift script on my epoch server. the towing works fine. i can lift vehicles, but when i go to drop them, i am kicked for a setpos restriction#0.

can anyone help me with this?

please read the section that starts with

then in your setpos.txt in the first line add all the vehicles that you are towing and lifting so its like
!"vehiclename" !"vehiclename" and so on.

in my first post, this will fix the kick that you get. sorry if this is a bit too late but i had to study for my exams

 

If we edit the BEC files, will that mees up infistar??

im not sure if this works with infistar, but you can try and set a exception, i dont know how to set exceptions in infistar since i never used it

Link to comment
Share on other sites

/**
 * English and French comments
 * Commentaires anglais et français
 * 
 * This file contains the configuration variables of the logistics system.
 * Fichier contenant les variables de configuration du système de logistique.
 * 
 * Important note : All the classes names which inherits from the ones used in configuration variables will be also available.
 * Note importante : Tous les noms de classes dérivant de celles utilisées dans les variables de configuration seront aussi valables.
 */

/*
 * There are two ways to manage new objects with the logistics system. The first is to add these objects in the
 * folowing appropriate lists. The second is to create a new external file in the /addons_config/ directory,
 * according to the same scheme as the existing ones, and to add a #include at the end of this current file.
 * 
 * Deux moyens existent pour gérer de nouveaux objets avec le système logistique. Le premier consiste à ajouter
 * ces objets dans les listes appropriées ci-dessous. Le deuxième est de créer un fichier externe dans le répertoire
 * /addons_config/ selon le même schéma que ceux qui existent déjà, et d'ajouter un #include à la fin de ce présent fichier.
 */

/****** TOW WITH VEHICLE / REMORQUER AVEC VEHICULE ******/

/**
 * List of class names of (ground or air) vehicles which can tow towables objects.
 * Liste des noms de classes des véhicules terrestres pouvant remorquer des objets remorquables.
 */
R3F_LOG_CFG_remorqueurs =
[
    "V3S_Civ",
	"V3S_Open_TK_CIV_EP1",
	"V3S_Open_TK_EP1",
	"UralCivil",
	"UralCivil2",
	"Ural_UN_EP1",
	"Ural_TK_CIV_EP1",
	"Ural_CDF",
	"Kamaz",
	"MTVR_DES_EP1",
	"MTVR",
	"HMMWV_Armored",
	"KamazRefuel_DZ",
	"MtvrRefuel_DES_EP1_DZ",
	"UralRefuel_TK_EP1_DZ",
	"V3S_Refuel_TK_GUE_EP1_DZ",
	"LAV25_HQ",
	"BRDM2_HQ_Gue",
	"M113Ambul_TK_EP1",
	"M113Ambul_UN_EP1",
	"M1126_ICV_M2_EP1",
	"V3S_Reammo_TK_GUE_EP1",
	"V3S_Repair_TK_GUE_EP1",
	"V3S_Salvage_TK_GUE_EP1",
	"M1133_MEV_EP1",
	"Ikarus",
	"Ikarus_TK_CIV_EP1",
	"tractor",
	"Ural_ZU23_CDF",
	"M1A1_US_DES_EP1",
	"M1A2_US_TUSK_MG_EP1",
	"GAZ_Vodnik_MedEvac",
	"SUV_TK_CIV_EP1",
	"SUV_Blue",
	"SUV_Charcoal",
	"SUV_Green",
	"SUV_Orange",
	"SUV_Pink",
	"SUV_Red",
	"SUV_Silver",
	"SUV_White",
	"SUV_Yellow",
	"SUV_Camo",
	"HMMWV_M998A2_SOV_DES_EP1_DZE",
	"HMMWV_M1151_M2_CZ_DES_EP1_DZE",
	"LandRover_Special_CZ_EP1_DZE",
	"LandRover_MG_TK_EP1_DZE",
	"UAZ_MG_TK_EP1_DZE",
	"GAZ_Vodnik_DZE",
	"GAZ_Vodnik_DZE",
	"Pickup_PK_GUE_DZE",
	"Pickup_PK_INS_DZE",
	"ArmoredSUV_PMC_DZE",
	"Pickup_PK_TK_GUE_EP1_DZE",
	"Offroad_DSHKM_Gue_DZE"
];

/**
 * List of class names of towables objects.
 * Liste des noms de classes des objets remorquables.
 */
R3F_LOG_CFG_objets_remorquables =
[
	"car_hatchback",
	"car_sedan",
	"datsun1_civil_1_open",
	"datsun1_civil_2_covered",
	"datsun1_civil_3_open",
	"GLT_M300_LT",
	"GLT_M300_ST",
	"GNT_C185",
	"GNT_C185C",
	"GNT_C185R",
	"GNT_C185U",
	"hilux1_civil_1_open",
	"hilux1_civil_2_covered",
	"hilux1_civil_3_open_EP1",
	"HMMWV_Ambulance",
	"HMMWV_Ambulance_CZ_DES_EP1",
	"HMMWV_DES_EP1",
	"Lada1",
	"Lada1_TK_CIV_EP1",
	"Lada2",
	"Lada2_TK_CIV_EP1",
	"LadaLM",
	"LandRover_CZ_EP1",
	"LandRover_TK_CIV_EP1",
	"S1203_ambulance_EP1",
	"S1203_TK_CIV_EP1",
	"Skoda",
	"SkodaBlue",
	"SkodaGreen",
	"SkodaRed",
	"UAZ_CDF",
	"UAZ_INS",
	"UAZ_RU",
	"UAZ_Unarmed_TK_CIV_EP1",
	"UAZ_Unarmed_TK_EP1",
	"UAZ_Unarmed_UN_EP1",
	"VolhaLimo_TK_CIV_EP1",
	"Volha_1_TK_CIV_EP1",
	"Volha_2_TK_CIV_EP1",
	"VWGolf",
	"V3S_Civ",
	"V3S_Open_TK_CIV_EP1",
	"V3S_Open_TK_EP1",
	"UralCivil",
	"UralCivil2",
	"Ural_UN_EP1",
	"Ural_TK_CIV_EP1",
	"Ural_CDF",
	"Kamaz",
	"MTVR_DES_EP1",
	"MTVR",
	"HMMWV_Armored",
	"KamazRefuel_DZ",
	"MtvrRefuel_DES_EP1_DZ",
	"UralRefuel_TK_EP1_DZ",
	"V3S_Refuel_TK_GUE_EP1_DZ",
	"LAV25_HQ",
	"BRDM2_HQ_Gue",
	"M113Ambul_TK_EP1",
	"M113Ambul_UN_EP1",
	"M1126_ICV_M2_EP1",
	"V3S_Reammo_TK_GUE_EP1",
	"V3S_Repair_TK_GUE_EP1",
	"V3S_Salvage_TK_GUE_EP1",
	"M1133_MEV_EP1",
	"Ikarus",
	"Ikarus_TK_CIV_EP1",
	"tractor",
	"Ural_ZU23_CDF",
	"V3S_Gue",
	"V3S_RA_TK_GUE_EP1_DZE",
	"V3S_TK_EP1_DZE",
	"UralCivil_DZE",
	"UralCivil2_DZE",
	"KamazOpen_DZE",
	"HMMWV_M1035_DES_EP1",
	"HMMWV_DZ",
	"SUV_TK_CIV_EP1",
	"SUV_Blue",
	"SUV_Charcoal",
	"SUV_Green",
	"SUV_Orange",
	"SUV_Pink",
	"SUV_Red",
	"SUV_Silver",
	"SUV_White",
	"SUV_Yellow",
	"SUV_Camo",
	"Pickup_PK_GUE"
];


/****** LIFT WITH VEHICLE / HELIPORTER AVEC VEHICULE ******/

/**
 * List of class names of air vehicles which can lift liftables objects.
 * Liste des noms de classes des véhicules aériens pouvant héliporter des objets héliportables.
 */
R3F_LOG_CFG_heliporteurs =
[
	"Mi17_Civilian_DZ",
	"CH_47F_EP1_DZE",
	"BAF_Merlin_HC3_D",
	"Mi17_DZE",
	"MV22_DZ",
	"UH1H_DZE",
	"UH1Y_DZE",
	"UH60M_EP1_DZE"
];

/**
 * List of class names of liftables objects.
 * Liste des noms de classes des objets héliportables.
 */
R3F_LOG_CFG_objets_heliportables =
[	
	"car_hatchback",
	"car_sedan",
	"datsun1_civil_1_open",
	"datsun1_civil_2_covered",
	"datsun1_civil_3_open",
	"GLT_M300_LT",
	"GLT_M300_ST",
	"GNT_C185",
	"GNT_C185C",
	"GNT_C185R",
	"GNT_C185U",
	"hilux1_civil_1_open",
	"hilux1_civil_2_covered",
	"hilux1_civil_3_open_EP1",
	"HMMWV_Ambulance",
	"HMMWV_Ambulance_CZ_DES_EP1",
	"HMMWV_DES_EP1",
	"Lada1",
	"Lada1_TK_CIV_EP1",
	"Lada2",
	"Lada2_TK_CIV_EP1",
	"LadaLM",
	"LandRover_CZ_EP1",
	"LandRover_TK_CIV_EP1",
	"S1203_ambulance_EP1",
	"S1203_TK_CIV_EP1",
	"Skoda",
	"SkodaBlue",
	"SkodaGreen",
	"SkodaRed",
	"UAZ_CDF",
	"UAZ_INS",
	"UAZ_RU",
	"UAZ_Unarmed_TK_CIV_EP1",
	"UAZ_Unarmed_TK_EP1",
	"UAZ_Unarmed_UN_EP1",
	"VolhaLimo_TK_CIV_EP1",
	"Volha_1_TK_CIV_EP1",
	"Volha_2_TK_CIV_EP1",
	"VWGolf",
	"V3S_Civ",
	"V3S_Open_TK_CIV_EP1",
	"V3S_Open_TK_EP1",
	"UralCivil",
	"UralCivil2",
	"Ural_UN_EP1",
	"Ural_TK_CIV_EP1",
	"Ural_CDF",
	"Kamaz",
	"MTVR_DES_EP1",
	"MTVR",
	"HMMWV_Armored",
	"KamazRefuel_DZ",
	"MtvrRefuel_DES_EP1_DZ",
	"UralRefuel_TK_EP1_DZ",
	"V3S_Refuel_TK_GUE_EP1_DZ",
	"LAV25_HQ",
	"BRDM2_HQ_Gue",
	"M113Ambul_TK_EP1",
	"M113Ambul_UN_EP1",
	"M1126_ICV_M2_EP1",
	"V3S_Reammo_TK_GUE_EP1",
	"V3S_Repair_TK_GUE_EP1",
	"V3S_Salvage_TK_GUE_EP1",
	"M1133_MEV_EP1",
	"Ikarus",
	"Ikarus_TK_CIV_EP1",
	"tractor",
	"Ural_ZU23_CDF",
	"V3S_Gue",
	"V3S_RA_TK_GUE_EP1_DZE",
	"V3S_TK_EP1_DZE",
	"UralCivil_DZE",
	"UralCivil2_DZE",
	"KamazOpen_DZE",
	"HMMWV_M1035_DES_EP1",
	"HMMWV_DZ",
	"SUV_TK_CIV_EP1",
	"SUV_Blue",
	"SUV_Charcoal",
	"SUV_Green",
	"SUV_Orange",
	"SUV_Pink",
	"SUV_Red",
	"SUV_Silver",
	"SUV_White",
	"SUV_Yellow",
	"SUV_Camo",
	"Pickup_PK_GUE"
];


/****** LOAD IN VEHICLE / CHARGER DANS LE VEHICULE ******/

/*
 * This section use a quantification of the volume and/or weight of the objets.
 * The arbitrary referencial used is : an ammo box of type USVehicleBox "weights" 12 units.
 * 
 * Cette section utilise une quantification du volume et/ou poids des objets.
 * Le référentiel arbitraire utilisé est : une caisse de munition de type USVehicleBox "pèse" 12 unités.
 * 
 * Note : the priority of a declaration of capacity to another corresponds to their order in the tables.
 *   For example : the "Truck" class is in the "Car" class (see http://community.bistudio.com/wiki/ArmA_2:_CfgVehicles).
 *   If "Truck" is declared with a capacity of 140 before "Car". And if "Car" is declared after "Truck" with a capacity of 40,
 *   Then all the sub-classes in "Truck" will have a capacity of 140. And all the sub-classes of "Car", excepted the ones
 *   in "Truck", will have a capacity of 40.
 * 
 * Note : la priorité d'une déclaration de capacité sur une autre correspond à leur ordre dans les tableaux.
 *   Par exemple : la classe "Truck" appartient à la classe "Car" (voir http://community.bistudio.com/wiki/ArmA_2:_CfgVehicles).
 *   Si "Truck" est déclaré avec une capacité de 140 avant "Car". Et que "Car" est déclaré après "Truck" avec une capacité de 40,
 *   Alors toutes les sous-classes appartenant à "Truck" auront une capacité de 140. Et toutes les sous-classes appartenant
 *   à "Car", exceptées celles de "Truck", auront une capacité de 40.
 */

/**
 * List of class names of (ground or air) vehicles which can transport transportables objects.
 * The second element of the arrays is the load capacity (in relation with the capacity cost of the objects).
 * 
 * Liste des noms de classes des véhicules (terrestres ou aériens) pouvant transporter des objets transportables.
 * Le deuxième élément des tableaux est la capacité de chargement (en relation avec le coût de capacité des objets).
 */
R3F_LOG_CFG_transporteurs =
[
	["CH_47F_EP1_DZE", 150],
	["Mi17_DZE", 50],
	["Mi24_D_TK_EP1_DZ", 50],
	["Mi17_Civilian_DZ", 50],
	["MTVR_DES_EP1", 50],
	["MTVR", 50],
	["V3S_Open_TK_CIV_EP1", 50],
	["V3S_Open_TK_EP1", 50],
	["Ural_UN_EP1", 50],
	["Ural_TK_CIV_EP1", 50],
	["Ural_CDF", 50],
	["hilux1_civil_1_open", 25],
	["hilux1_civil_2_covered", 25],
	["hilux1_civil_3_open_EP1", 25],
	["datsun1_civil_1_open", 25],
	["datsun1_civil_2_covered", 25],
	["datsun1_civil_3_open", 25],
	["Pickup_PK_TK_GUE_EP1", 25],
	["Pickup_PK_GUE", 25],
	["Pickup_PK_INS", 25],
	["Offroad_DSHKM_Gue", 25],
	["Pickup_PK_GUE", 25],
	["HMMWV_M1151_M2_CZ_DES_EP1_DZE", 25],
	["LandRover_CZ_EP1", 10],
	["LandRover_MG_TK_EP1_DZE", 10],
	["LandRover_Special_CZ_EP1_DZE", 10],
	["LandRover_TK_CIV_EP1", 10],
	["SUV_Green", 40],
	["SUV_Yellow", 40],
	["SUV_White", 40],
	["SUV_Silver", 40],
	["SUV_Red", 40],
	["SUV_Pink", 40],
	["SUV_Orange", 40],
	["SUV_Charcoal", 40],
	["SUV_Blue", 40],
	["ArmoredSUV_PMC_DZE", 40],
	["SUV_Camo", 40],
	["Zodiac", 10],
	["RHIB", 25],
	["Fishing_Boat", 10],
	["HMMWV_Armored", 100],
	["KamazRefuel_DZ", 50],
	["MtvrRefuel_DES_EP1_DZ", 50],
	["UralRefuel_TK_EP1_DZ", 50],
	["V3S_Refuel_TK_GUE_EP1_DZ", 50],
	["M113Ambul_UN_EP1", 75],
	["M113Ambul_TK_EP1", 75],
	["BRDM2_HQ_Gue", 50],
	["LAV25_HQ", 100],
	["TowingTractor", 25],
	["UH1H_DZE", 75],
	["M1126_ICV_M2_EP1", 100],
	["SeaFox", 200],
	["BAF_Merlin_HC3_D", 100],
	["UH60M_EP1_DZE", 125],
	["BTR40_TK_GUE_EP1", 50],
	["BTR40_TK_INS_EP1", 50],
	["V3S_Reammo_TK_GUE_EP1", 75],
	["V3S_Repair_TK_GUE_EP1", 75],
	["V3S_Salvage_TK_GUE_EP1", 75],
	["MH60S", 75],
	["Ural_ZU23_CDF", 100]
];

/**
 * List of class names of transportables objects.
 * The second element of the arrays is the cost capacity (in relation with the capacity of the vehicles).
 * 
 * Liste des noms de classes des objets transportables.
 * Le deuxième élément des tableaux est le coût de capacité (en relation avec la capacité des véhicules).
 */
R3F_LOG_CFG_objets_transportables =
[
	["VWGolf", 100],
	["Lada1", 100],
	["Lada2", 100],
	["LadaLM", 100],
	["Lada2_TK_CIV_EP1", 100],
	["Skoda", 100],
	["SkodaGreen", 100],
	["SkodaRed", 100],
	["SkodaBlue", 100],
	["car_sedan", 100],
	["car_hatchback", 100],
	["policecar", 100],
	["ATV_CZ_EP1", 50],
	["ATV_US_EP1", 50],
	["Old_moto_TK_Civ_EP1", 25],
	["M1030_US_DES_EP1", 25],
	["TT650_Civ", 25],
	["TT650_Ins", 25],
	["TT650_TK_CIV_EP1", 25],
	["MMT_Civ", 25],
	["Old_bike_TK_INS_EP1", 25],
	["Barrels", 15],
	["USVehicleBox_EP1", 10],
	["USSpecialWeaponsBox", 5],
	["TKSpecialWeapons_EP1", 5],
	["BAF_BasicAmmunitionBox", 5],
	["M2StaticMG", 25],
	["SearchLight", 25],
	["SearchLight_CDF", 25],
	["SearchLight_Gue", 25],
	["KORD_high_UN_EP1", 25],
	["DSHKM_TK_GUE_EP1", 25],
	["KORD_UN_EP1", 25],
	["M2HD_mini_TriPod_US_EP1", 25]
];

/****** MOVABLE-BY-PLAYER OBJECTS / OBJETS DEPLACABLES PAR LE JOUEUR ******/

/**
 * List of class names of objects moveables by player.
 * Liste des noms de classes des objets transportables par le joueur.
 */
R3F_LOG_CFG_objets_deplacables =
[
	"MMT_Civ",
	"Old_bike_TK_INS_EP1",
	"Barrels",
	"USSpecialWeaponsBox",
	"USVehicleBox_EP1",
	"TKSpecialWeapons_EP1",
	"BAF_BasicAmmunitionBox",
	"M2StaticMG",
	"SearchLight",
	"SearchLight_CDF",
	"SearchLight_Gue",
	"KORD_high_UN_EP1",
	"DSHKM_TK_GUE_EP1",
	"KORD_UN_EP1",
	"M2HD_mini_TriPod_US_EP1"
];

/*
 * List of files adding objects in the arrays of logistics configuration (e.g. R3F_LOG_CFG_remorqueurs)
 * Add an include to the new file here if you want to use the logistics with a new addon.
 * 
 * Liste des fichiers ajoutant des objets dans les tableaux de fonctionnalités logistiques (ex : R3F_LOG_CFG_remorqueurs)
 * Ajoutez une inclusion vers votre nouveau fichier ici si vous souhaitez utilisez la logistique avec un nouvel addon.
 */
//#include "addons_config\ACE_OA_objects.sqf"
//#include "addons_config\BAF_objects.sqf"
//#include "addons_config\arma2_CO_objects.sqf"

The tow and load options show,  but nothing happens when they are selected

 

scratch that, it does allow me to tow, it just doesn't give any notification that the towing/ loading option has been selected successfully. Like after selecting tow it would say "now select the vehicle to attach to" or something like that.

 

i tried to add that in but im not very experienced so i dont know how to do it. sorry ;(

Link to comment
Share on other sites

this only need one person to tow, i didn't change anything but anyway there is a better one than this

use that one, i dont use this on my server anymore cause its kind of broken and too much work. this only requires one person as well

I also use this, R3F made me unhappy :(

Link to comment
Share on other sites

I don't know if you want it but I have some code changes to R3F Lifting and Towing that doesn't allow people to tow more than one vehicle and also doesn't allow a vehicle to be loaded in if it's towing something. They're not a part of the standard R3F lift and tow.

 

I also have one that allows you to drop vehicles on buildings and stuff but that's a bit more dangerous because whatever you're lifting exists the instant you release it and falls to the ground, rather than teleporting there instantly, it also maintains any inertia the heli has when you release it.

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...