Jump to content

[Release] Casca Vehicles Convoy for any Map


Donnovan

Recommended Posts

Some shots here: http://matadouro.forumeiro.com/t17-comboios-aereos-estagio-avancado#74

- Helis with Gunner
- Helis without Gunner
- Helis hover above ground to release soldiers
- If the Helis broke in air, soldiers jump from it to try to save their lifes
- If the pilot dies in air, soldiers jump from the heli
- Not all the soldiers have parachute :O
- Helis only engage on you if you mess with then
- If a comvoy engage on you, you can hide or run away to try to make then disengage

- The Helis have loot even if they are destroyed
 

Edited by Donnovan
Link to comment
Share on other sites

Files updated. Read it before update, if you use V1a you problably don't need to update.

NEW ON TAKELONG V1b:

Coin rewards: Fixed coins rewards not happening due to a typo.

Manual fix if you have V1a: Inside andre_convoy.sqf change the configuration setting from _coinsRewards = [650,4000,650]; to _coinRewards = [650,4000,650];

Edited by Donnovan
Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...
2 hours ago, BetterDeadThanZed said:

Can someone explain what the values mean in the lists of loot? Also, how does the script decide which items will be in the truck? Lastly, can someone explain the "_convoyFormation" settings?

If you mean that part the number is to tell you which vehicle in your donn_carsConvy gonna spawn. You can make the convoy as long as you want. 

_convoyFormation = [
        [0,1,2],  ////////////There is my first set of vehicle that will spawn HMMWV, BTR40, Vodnik
        [4],       
        [0,2],
        [5,2,0],
        [3],
        [3,4],
        [0,1,0]

Look at that (well my vehicles will be different then your)

donn_carsConvy = [
        //(0) Vehicle Unarmored Unarmed Mediun Capacity
        ["HMMWV",3,[]],  ///////////////////number 3 mean the number of AI
        //(1) Vehicle Unarmed Armored High Capacity
        ["BTR40_TK_GUE_EP1",3,[]],
        //(2) Vehicle Unarmed Armored High Capacity
        ["GAZ_Vodnik_MedEvac",3,[]],
        //(3) Vehicle Trash High Capacity
        ["SUV_Camo",4,[]],
        //(4) Civil Truck Ultra High Capacity
        ["Ural_TK_CIV_EP1",4,[]],
        //(5) Civil Truck Ultra High Capacity
        ["V3S_Open_TK_CIV_EP1",4,[]]
    ];

Hope that what you wanted to know.

Link to comment
Share on other sites

I made some changes so that the loot carried in the vehicles and on the AI's bodies would be random. I've found that in some cases some of the AI don't have any loot and/or weapons and sometimes multiple AI will have the same weapons. Here's the code. Maybe someone can look at it and tell me what I'm doing wrong?

Spoiler

_primary = ["M16A2","M16A4","M4A1","Sa58P_EP1","Sa58V_EP1","AKS_74_U","AK_47_M","AK_74","FN_FAL","Winchester1866","MR43","M1014","LeeEnfield","Saiga12K","vil_SKS","gms_k98","vil_ak12","vil_AKM","vil_AKMS","vil_AKS_47","vil_AKS_74","vil_AKs_74_u","vil_AK_101","vil_AK_103","vil_AK_103","vil_AK_47","vil_AK_47_49","vil_AK_74","vil_AK_74m","vil_AK_74P","vil_AK_nato_m1","vil_AK_nato_m80","vil_AEK1","vil_AEK2","vil_AeK_23","vil_AeK_3","vil_AMD","vil_AMD63","vil_ASH82","vil_M64","vil_M70","vil_M70B","vil_type88_1","vil_9a91","vil_Abakan","FHQ_ACR_BLK_IRN","FHQ_ACR_BLK_IRN_F","vil_Vikhr","vil_G36KA4","vil_G36VA4","vil_G3a2","vil_G3a3","vil_G3a4","vil_G3a4b","vil_G3an","vil_G3anb","vil_MPi","vil_PMI","vil_PMI74S","vil_PMIS","RH_mas"] call loadout_fnc_selectRandom;
_primary1 = ["M16A2","M16A4","M4A1","Sa58P_EP1","Sa58V_EP1","AKS_74_U","AK_47_M","AK_74","FN_FAL","Winchester1866","MR43","M1014","LeeEnfield","Saiga12K","vil_SKS","gms_k98","vil_ak12","vil_AKM","vil_AKMS","vil_AKS_47","vil_AKS_74","vil_AKs_74_u","vil_AK_101","vil_AK_103","vil_AK_103","vil_AK_47","vil_AK_47_49","vil_AK_74","vil_AK_74m","vil_AK_74P","vil_AK_nato_m1","vil_AK_nato_m80","vil_AEK1","vil_AEK2","vil_AeK_23","vil_AeK_3","vil_AMD","vil_AMD63","vil_ASH82","vil_M64","vil_M70","vil_M70B","vil_type88_1","vil_9a91","vil_Abakan","FHQ_ACR_BLK_IRN","FHQ_ACR_BLK_IRN_F","vil_Vikhr","vil_G36KA4","vil_G36VA4","vil_G3a2","vil_G3a3","vil_G3a4","vil_G3a4b","vil_G3an","vil_G3anb","vil_MPi","vil_PMI","vil_PMI74S","vil_PMIS","RH_mas"] call loadout_fnc_selectRandom;
_primary2 = ["M16A2","M16A4","M4A1","Sa58P_EP1","Sa58V_EP1","AKS_74_U","AK_47_M","AK_74","FN_FAL","Winchester1866","MR43","M1014","LeeEnfield","Saiga12K","vil_SKS","gms_k98","vil_ak12","vil_AKM","vil_AKMS","vil_AKS_47","vil_AKS_74","vil_AKs_74_u","vil_AK_101","vil_AK_103","vil_AK_103","vil_AK_47","vil_AK_47_49","vil_AK_74","vil_AK_74m","vil_AK_74P","vil_AK_nato_m1","vil_AK_nato_m80","vil_AEK1","vil_AEK2","vil_AeK_23","vil_AeK_3","vil_AMD","vil_AMD63","vil_ASH82","vil_M64","vil_M70","vil_M70B","vil_type88_1","vil_9a91","vil_Abakan","FHQ_ACR_BLK_IRN","FHQ_ACR_BLK_IRN_F","vil_Vikhr","vil_G36KA4","vil_G36VA4","vil_G3a2","vil_G3a3","vil_G3a4","vil_G3a4b","vil_G3an","vil_G3anb","vil_MPi","vil_PMI","vil_PMI74S","vil_PMIS","RH_mas"] call loadout_fnc_selectRandom;
_primary3 = ["M16A2","M16A4","M4A1","Sa58P_EP1","Sa58V_EP1","AKS_74_U","AK_47_M","AK_74","FN_FAL","Winchester1866","MR43","M1014","LeeEnfield","Saiga12K","vil_SKS","gms_k98","vil_ak12","vil_AKM","vil_AKMS","vil_AKS_47","vil_AKS_74","vil_AKs_74_u","vil_AK_101","vil_AK_103","vil_AK_103","vil_AK_47","vil_AK_47_49","vil_AK_74","vil_AK_74m","vil_AK_74P","vil_AK_nato_m1","vil_AK_nato_m80","vil_AEK1","vil_AEK2","vil_AeK_23","vil_AeK_3","vil_AMD","vil_AMD63","vil_ASH82","vil_M64","vil_M70","vil_M70B","vil_type88_1","vil_9a91","vil_Abakan","FHQ_ACR_BLK_IRN","FHQ_ACR_BLK_IRN_F","vil_Vikhr","vil_G36KA4","vil_G36VA4","vil_G3a2","vil_G3a3","vil_G3a4","vil_G3a4b","vil_G3an","vil_G3anb","vil_MPi","vil_PMI","vil_PMI74S","vil_PMIS","RH_mas"] call loadout_fnc_selectRandom;
_primary4 = ["M16A2","M16A4","M4A1","Sa58P_EP1","Sa58V_EP1","AKS_74_U","AK_47_M","AK_74","FN_FAL","Winchester1866","MR43","M1014","LeeEnfield","Saiga12K","vil_SKS","gms_k98","vil_ak12","vil_AKM","vil_AKMS","vil_AKS_47","vil_AKS_74","vil_AKs_74_u","vil_AK_101","vil_AK_103","vil_AK_103","vil_AK_47","vil_AK_47_49","vil_AK_74","vil_AK_74m","vil_AK_74P","vil_AK_nato_m1","vil_AK_nato_m80","vil_AEK1","vil_AEK2","vil_AeK_23","vil_AeK_3","vil_AMD","vil_AMD63","vil_ASH82","vil_M64","vil_M70","vil_M70B","vil_type88_1","vil_9a91","vil_Abakan","FHQ_ACR_BLK_IRN","FHQ_ACR_BLK_IRN_F","vil_Vikhr","vil_G36KA4","vil_G36VA4","vil_G3a2","vil_G3a3","vil_G3a4","vil_G3a4b","vil_G3an","vil_G3anb","vil_MPi","vil_PMI","vil_PMI74S","vil_PMIS","RH_mas"] call loadout_fnc_selectRandom;
_primary5 = ["M16A2","M16A4","M4A1","Sa58P_EP1","Sa58V_EP1","AKS_74_U","AK_47_M","AK_74","FN_FAL","Winchester1866","MR43","M1014","LeeEnfield","Saiga12K","vil_SKS","gms_k98","vil_ak12","vil_AKM","vil_AKMS","vil_AKS_47","vil_AKS_74","vil_AKs_74_u","vil_AK_101","vil_AK_103","vil_AK_103","vil_AK_47","vil_AK_47_49","vil_AK_74","vil_AK_74m","vil_AK_74P","vil_AK_nato_m1","vil_AK_nato_m80","vil_AEK1","vil_AEK2","vil_AeK_23","vil_AeK_3","vil_AMD","vil_AMD63","vil_ASH82","vil_M64","vil_M70","vil_M70B","vil_type88_1","vil_9a91","vil_Abakan","FHQ_ACR_BLK_IRN","FHQ_ACR_BLK_IRN_F","vil_Vikhr","vil_G36KA4","vil_G36VA4","vil_G3a2","vil_G3a3","vil_G3a4","vil_G3a4b","vil_G3an","vil_G3anb","vil_MPi","vil_PMI","vil_PMI74S","vil_PMIS","RH_mas"] call loadout_fnc_selectRandom;
_primary6 = ["M16A2","M16A4","M4A1","Sa58P_EP1","Sa58V_EP1","AKS_74_U","AK_47_M","AK_74","FN_FAL","Winchester1866","MR43","M1014","LeeEnfield","Saiga12K","vil_SKS","gms_k98","vil_ak12","vil_AKM","vil_AKMS","vil_AKS_47","vil_AKS_74","vil_AKs_74_u","vil_AK_101","vil_AK_103","vil_AK_103","vil_AK_47","vil_AK_47_49","vil_AK_74","vil_AK_74m","vil_AK_74P","vil_AK_nato_m1","vil_AK_nato_m80","vil_AEK1","vil_AEK2","vil_AeK_23","vil_AeK_3","vil_AMD","vil_AMD63","vil_ASH82","vil_M64","vil_M70","vil_M70B","vil_type88_1","vil_9a91","vil_Abakan","FHQ_ACR_BLK_IRN","FHQ_ACR_BLK_IRN_F","vil_Vikhr","vil_G36KA4","vil_G36VA4","vil_G3a2","vil_G3a3","vil_G3a4","vil_G3a4b","vil_G3an","vil_G3anb","vil_MPi","vil_PMI","vil_PMI74S","vil_PMIS","RH_mas"] call loadout_fnc_selectRandom;
_primary7 = ["M16A2","M16A4","M4A1","Sa58P_EP1","Sa58V_EP1","AKS_74_U","AK_47_M","AK_74","FN_FAL","Winchester1866","MR43","M1014","LeeEnfield","Saiga12K","vil_SKS","gms_k98","vil_ak12","vil_AKM","vil_AKMS","vil_AKS_47","vil_AKS_74","vil_AKs_74_u","vil_AK_101","vil_AK_103","vil_AK_103","vil_AK_47","vil_AK_47_49","vil_AK_74","vil_AK_74m","vil_AK_74P","vil_AK_nato_m1","vil_AK_nato_m80","vil_AEK1","vil_AEK2","vil_AeK_23","vil_AeK_3","vil_AMD","vil_AMD63","vil_ASH82","vil_M64","vil_M70","vil_M70B","vil_type88_1","vil_9a91","vil_Abakan","FHQ_ACR_BLK_IRN","FHQ_ACR_BLK_IRN_F","vil_Vikhr","vil_G36KA4","vil_G36VA4","vil_G3a2","vil_G3a3","vil_G3a4","vil_G3a4b","vil_G3an","vil_G3anb","vil_MPi","vil_PMI","vil_PMI74S","vil_PMIS","RH_mas"] call loadout_fnc_selectRandom;
_primary8 = ["M16A2","M16A4","M4A1","Sa58P_EP1","Sa58V_EP1","AKS_74_U","AK_47_M","AK_74","FN_FAL","Winchester1866","MR43","M1014","LeeEnfield","Saiga12K","vil_SKS","gms_k98","vil_ak12","vil_AKM","vil_AKMS","vil_AKS_47","vil_AKS_74","vil_AKs_74_u","vil_AK_101","vil_AK_103","vil_AK_103","vil_AK_47","vil_AK_47_49","vil_AK_74","vil_AK_74m","vil_AK_74P","vil_AK_nato_m1","vil_AK_nato_m80","vil_AEK1","vil_AEK2","vil_AeK_23","vil_AeK_3","vil_AMD","vil_AMD63","vil_ASH82","vil_M64","vil_M70","vil_M70B","vil_type88_1","vil_9a91","vil_Abakan","FHQ_ACR_BLK_IRN","FHQ_ACR_BLK_IRN_F","vil_Vikhr","vil_G36KA4","vil_G36VA4","vil_G3a2","vil_G3a3","vil_G3a4","vil_G3a4b","vil_G3an","vil_G3anb","vil_MPi","vil_PMI","vil_PMI74S","vil_PMIS","RH_mas"] call loadout_fnc_selectRandom;
_primary9 = ["M16A2","M16A4","M4A1","Sa58P_EP1","Sa58V_EP1","AKS_74_U","AK_47_M","AK_74","FN_FAL","Winchester1866","MR43","M1014","LeeEnfield","Saiga12K","vil_SKS","gms_k98","vil_ak12","vil_AKM","vil_AKMS","vil_AKS_47","vil_AKS_74","vil_AKs_74_u","vil_AK_101","vil_AK_103","vil_AK_103","vil_AK_47","vil_AK_47_49","vil_AK_74","vil_AK_74m","vil_AK_74P","vil_AK_nato_m1","vil_AK_nato_m80","vil_AEK1","vil_AEK2","vil_AeK_23","vil_AeK_3","vil_AMD","vil_AMD63","vil_ASH82","vil_M64","vil_M70","vil_M70B","vil_type88_1","vil_9a91","vil_Abakan","FHQ_ACR_BLK_IRN","FHQ_ACR_BLK_IRN_F","vil_Vikhr","vil_G36KA4","vil_G36VA4","vil_G3a2","vil_G3a3","vil_G3a4","vil_G3a4b","vil_G3an","vil_G3anb","vil_MPi","vil_PMI","vil_PMI74S","vil_PMIS","RH_mas"] call loadout_fnc_selectRandom;
_primary10 = ["M16A2","M16A4","M4A1","Sa58P_EP1","Sa58V_EP1","AKS_74_U","AK_47_M","AK_74","FN_FAL","Winchester1866","MR43","M1014","LeeEnfield","Saiga12K","vil_SKS","gms_k98","vil_ak12","vil_AKM","vil_AKMS","vil_AKS_47","vil_AKS_74","vil_AKs_74_u","vil_AK_101","vil_AK_103","vil_AK_103","vil_AK_47","vil_AK_47_49","vil_AK_74","vil_AK_74m","vil_AK_74P","vil_AK_nato_m1","vil_AK_nato_m80","vil_AEK1","vil_AEK2","vil_AeK_23","vil_AeK_3","vil_AMD","vil_AMD63","vil_ASH82","vil_M64","vil_M70","vil_M70B","vil_type88_1","vil_9a91","vil_Abakan","FHQ_ACR_BLK_IRN","FHQ_ACR_BLK_IRN_F","vil_Vikhr","vil_G36KA4","vil_G36VA4","vil_G3a2","vil_G3a3","vil_G3a4","vil_G3a4b","vil_G3an","vil_G3anb","vil_MPi","vil_PMI","vil_PMI74S","vil_PMIS","RH_mas"] call loadout_fnc_selectRandom;
_primary11 = ["M16A2","M16A4","M4A1","Sa58P_EP1","Sa58V_EP1","AKS_74_U","AK_47_M","AK_74","FN_FAL","Winchester1866","MR43","M1014","LeeEnfield","Saiga12K","vil_SKS","gms_k98","vil_ak12","vil_AKM","vil_AKMS","vil_AKS_47","vil_AKS_74","vil_AKs_74_u","vil_AK_101","vil_AK_103","vil_AK_103","vil_AK_47","vil_AK_47_49","vil_AK_74","vil_AK_74m","vil_AK_74P","vil_AK_nato_m1","vil_AK_nato_m80","vil_AEK1","vil_AEK2","vil_AeK_23","vil_AeK_3","vil_AMD","vil_AMD63","vil_ASH82","vil_M64","vil_M70","vil_M70B","vil_type88_1","vil_9a91","vil_Abakan","FHQ_ACR_BLK_IRN","FHQ_ACR_BLK_IRN_F","vil_Vikhr","vil_G36KA4","vil_G36VA4","vil_G3a2","vil_G3a3","vil_G3a4","vil_G3a4b","vil_G3an","vil_G3anb","vil_MPi","vil_PMI","vil_PMI74S","vil_PMIS","RH_mas"] call loadout_fnc_selectRandom;
_secondary = ["glock17_EP1","Colt1911","M9","Makarov","revolver_EP1","RH_deagle","RH_Deagleg","RH_Deaglem","RH_Deaglemz","RH_Deaglemzb","RH_Deagles","RH_g17","RH_g18","RH_g19","RH_g19t","RH_browninghp","RH_bull","RH_anac","RH_anacg","RH_m1911","RH_m1911old","RH_m9","RH_m93r","RH_m9c","RH_usp","RH_uspm","RH_mk2","RH_mk22","RH_mk22v","RH_p226","RH_p226s","RH_p38","RH_ppk","RH_python","RH_tec9","RH_tt33","RH_vz61","vil_B_HP","vil_USP","vil_USP45","vil_Glock","vil_Glock_o"] call loadout_fnc_selectRandom;
_ammo = _primary call find_suitable_ammunition;
_ammos = _secondary call find_suitable_ammunition;
_food = ["FoodCanBadguy", "FoodCanBoneboy", "FoodCanCorn", "FoodCanCurgon", "FoodCanDemon", "FoodCanFraggleos", "FoodCanGriff", "FoodCanHerpy", "FoodCanOrlok", "FoodCanPowell", "FoodCanTylers", "FoodCanSardines", "FoodCanBakedBeans", "FoodCanFrankBeans", "FoodCanPasta", "ItemWaterbottleUnfilled","ItemWaterbottleBoiled","FoodmuttonCooked","FoodchickenCooked","FoodBaconCooked","FoodRabbitCooked","FoodCanUnlabeled","FoodPistachio","FoodNutmix","FoodMRE"] call loadout_fnc_selectRandom;
_drink = ["ItemSodaClays", "ItemSodaDrwaste", "ItemSodaLemonade", "ItemSodaLvg","ItemSodaMzly", "ItemSodaRabbit", "ItemSodaSmasht", "ItemSodaOrangeSherbet", "ItemSodaMdew", "ItemSodaRbull", "ItemSodaMtngreen", "ItemSodaCoke", "ItemSodaPepsi", "ItemWaterbottle"] call loadout_fnc_selectRandom;
_backpack = ["DZ_Patrol_Pack_EP1","DZ_Assault_Pack_EP1","DZ_Czech_Vest_Puch"] call loadout_fnc_selectRandom;
_light = ["HandChemRed","HandRoadFlare","HandRoadFlare"] call loadout_fnc_selectRandom;

	
	//LOOT IN VEHICLE
	_loot1 = [
		[["addWeaponCargoGlobal",_primary,[1,1,2]],["addMagazineCargoGlobal",_ammo,[1,2,3]]],	//Maried Loot
		[["addWeaponCargoGlobal",_primary,[1,1,2]],["addMagazineCargoGlobal",_ammo,[1,2,3]]],	//Maried Loot
		[["addWeaponCargoGlobal",_primary,[1,1,2]],["addMagazineCargoGlobal",_ammo,[2,3,4]]],		//Maried Loot
		[["addWeaponCargoGlobal",_primary,[1,1,2]],["addMagazineCargoGlobal",_ammo,[3,4,5]]],		//Maried Loot
		[["addWeaponCargoGlobal",_primary,[1,1,2]],["addMagazineCargoGlobal",_ammo,[2,3,4]]],	//Maried Loot
		[["addWeaponCargoGlobal",_secondary,[1,2,3]]],
		[["addWeaponCargoGlobal",_secondary,[1,2,3]]],
		[["addMagazineCargoGlobal",_food,[8,12,16]]],
		[["addMagazineCargoGlobal",_food,[5,7,9]]],
		[["addMagazineCargoGlobal",_drink,[6,12,18]]]
	];
	
	//AI WEAPONS & AMMO
	_donn_weapons = [
		[_primary1,_ammo],
		[_primary2,_ammo],
		[_primary3,_ammo],
		[_primary4,_ammo],
		[_primary5,_ammo],
		[_primary6,_ammo],
		[_primary7,_ammo],
		[_primary8,_ammo],
		[_primary9,_ammo],
		[_primary10,_ammo],
		[_primary11,_ammo]
	];

 

 

Link to comment
Share on other sites

  • 5 months later...

Hi All !

I have installed this script, but found errors in RPT:

19:06:21 "TIME SYNC: Local Time set to [2013,8,3,8,6]"
19:06:48 Out of path-planning region for O 1-1-F:3 (CASCA_AI_6_1_3) at 10280.0,10678.8, node type
19:06:48 Error O 1-1-F:3 (CASCA_AI_6_1_3): Invalid path from [10280.55, 90.19, 10682.61] to [10282.96, 87.01, 10681.39].
19:06:50 Out of path-planning region for O 1-1-F:4 (CASCA_AI_6_1_4) at 10280.0,10678.8, node type
19:06:50 Error O 1-1-F:4 (CASCA_AI_6_1_4): Invalid path from [10280.60, 90.20, 10682.73] to [10283.09, 87.02, 10681.66].
19:06:52 Out of path-planning region for O 1-1-F:5 (CASCA_AI_6_1_5) at 10280.0,10678.8, node type
19:06:52 Error O 1-1-F:5 (CASCA_AI_6_1_5): Invalid path from [10280.60, 90.20, 10682.72] to [10283.09, 87.02, 10681.66].
19:06:53 Out of path-planning region for O 1-1-F:3 (CASCA_AI_6_1_3) at 10280.0,10678.8, node type
19:06:53 Error O 1-1-F:3 (CASCA_AI_6_1_3): Invalid path from [10280.63, 90.11, 10682.79] to [10282.96, 87.01, 10681.39].

Why that errors? I use Napf map.

Link to comment
Share on other sites

  • 5 months later...
  • 2 months later...

@WLFand @Runewulv

In the andre_convoy_functions.sqf add in die function :

If you are using coins:

donn_cleanUnitCoins {

Search for:  

    if (random 100 > 60) then {
        {_unit removeWeapon _x;} forEach weapons _unit;
        {_unit removeMagazine _x;} forEach magazines _unit;
    };

Place that under the line from above:

    _unit setVariable ["bodyName","unknown",false];

If you are using gold:

donn_cleanUnitGold {

Search for:  

    if (random 100 > 60) then {
        {_unit removeWeapon _x;} forEach weapons _unit;
        {_unit removeMagazine _x;} forEach magazines _unit;
    };

Place that under the line from above:

    _unit setVariable ["bodyName","unknown",false];

Link to comment
Share on other sites

  • 4 months later...
  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...