Contest - New AI templates

Post Reply
wiking
Armajunkies
Posts: 484
Joined: Sat 31. May 2014, 13:50

Contest - New AI templates

Post by wiking » Sun 8. Jan 2017, 17:39

We have now the possibility in our mission to randomize mission ai groups.
To do so you can use the classnames exported from virtual arsenal and add the equipment to the the template below. If you use virtual arsenal please also attach screenshots of your selection to this thread so that we get a feeling for your idea.

Please try to use only equipment which should be found (not to expensive/strong guns, not to strong vests, not to big backpacks, not to strong scopes, .. keep it cosmetic).
Try to create groups with different looking soldiers. The code

Code: Select all

case (_i % 3 == 0)
means this loadout is used every 3 soldiers.

Code: Select all

	_unit addVest "V_HarnessOGL_brn";
	_unit addHeadgear "H_HelmetO_ocamo";
	_unit addGoggles "G_Bandanna_khk";



	switch (true) do
	{
		// Grenadier every 3 units
		case (_i % 3 == 0):
		{
			_unit forceAddUniform "U_O_CombatUniform_ocamo";
			_unit addWeapon "arifle_Katiba_GL_F";
			for "_i" from 1 to 2 do {_unit addItemToVest "MiniGrenade";};
			for "_i" from 1 to 3 do {_unit addItemToVest "1Rnd_HE_Grenade_shell";};
			for "_i" from 1 to 3 do {_unit addItem "30Rnd_65x39_caseless_green_mag_Tracer";};

		};
		// AT every 7 units, starting from second one
		case ((_i + 5) % 7 == 0):
		{
			_unit forceAddUniform "U_O_CombatUniform_ocamo";
			_unit addBackpack "B_FieldPack_ocamo";
			_unit addWeapon "arifle_Katiba_F";
			for "_i" from 1 to 3 do {_unit addItem "30Rnd_65x39_caseless_green_mag_Tracer";};
			_unit addPrimaryWeaponItem "optic_Hamr";
			_unit addMagazine "Titan_AT";
			_unit addWeapon "launch_O_Titan_short_F";
			_unit addMagazine "Titan_AT";
			_unit addMagazine "Titan_AT";
		};
		// AA every 6 units
		case (_i % 7 == 0):
		{
			_unit forceAddUniform "U_O_CombatUniform_ocamo";
			_unit addBackpack "B_FieldPack_ocamo";
			_unit addWeapon "arifle_Katiba_F";
			for "_i" from 1 to 3 do {_unit addItem "30Rnd_65x39_caseless_green_mag_Tracer";};
			_unit addPrimaryWeaponItem "optic_Hamr";
			_unit addMagazine "Titan_AA";
			_unit addWeapon "launch_O_Titan_F";
			_unit addMagazine "Titan_AA";
			_unit addMagazine "Titan_AA";
		};
		// Rifleman
		default
		{

			if (_unit == leader _group) then
			{
				_unit setRank "SERGEANT";
				_unit forceAddUniform "U_O_V_Soldier_Viper_hex_F";
				_unit addMagazine "MineDetector";
				_unit addWeapon "Rangefinder";
				_unit addHeadgear "H_HelmetO_ocamo";
				_unit addGoggles "G_Bandanna_khk";
				_unit addWeapon "arifle_ARX_hex_F";
				for "_i" from 1 to 3 do {_unit addMagazine "30Rnd_65x39_caseless_green";};
				for "_i" from 1 to 2 do {_unit addMagazine "10Rnd_50BW_Mag_F";};
				_unit addPrimaryWeaponItem "optic_Arco";
			}
			else
			{
				_unit forceAddUniform "U_O_CombatUniform_ocamo";
				_unit addWeapon "arifle_Katiba_F";
				for "_i" from 1 to 3 do {_unit addItem "30Rnd_65x39_caseless_green_mag_Tracer";};
				_unit addPrimaryWeaponItem "optic_Hamr";
				_unit addWeapon "Binocular";
			};
		};
	};

	_unit linkItem "O_NVGoggles_hex_F";
	_unit addPrimaryWeaponItem "acc_pointer_IR";
	_unit enablegunlights "forceOn";
	
	_unit linkItem "ItemMap";
	_unit linkItem "ItemCompass";
	_unit linkItem "ItemWatch";
	_unit linkItem "ItemRadio";
Image

User avatar
Reinhard
Rekrut
Posts: 63
Joined: Sat 30. Jan 2016, 13:49

Re: Contest - New AI templates

Post by Reinhard » Tue 10. Jan 2017, 00:40

Well, Iam not sure if I got it right with the template but I'm just going to post it anyways.

I tried to use use weapons that might be interesting, but somehow incomplete rather by lacking a supressor or a proper scope, etc. Loadout is very spartanic usually 2 white smokes and maybe 1 RNG/RGO. No NV gear, maybe need flashlights, but I wasn't sure...

Image

First idea is an officer type.

Code: Select all

comment "Exported from Arsenal by Reinhard";

comment "Remove existing items";
removeAllWeapons this;
removeAllItems this;
removeAllAssignedItems this;
removeUniform this;
removeVest this;
removeBackpack this;
removeHeadgear this;
removeGoggles this;

comment "Add containers";
this forceAddUniform "U_I_C_Soldier_Camo_F";
this addVest "V_PlateCarrier1_blk";
this addItemToVest "FirstAidKit";
for "_i" from 1 to 4 do {this addItemToVest "30Rnd_762x39_Mag_F";};
for "_i" from 1 to 2 do {this addItemToVest "SmokeShell";};
this addItemToVest "Chemlight_yellow";
this addItemToVest "MiniGrenade";
this addHeadgear "H_Beret_Colonel";
this addGoggles "G_Bandanna_aviator";

comment "Add weapons";
this addWeapon "arifle_AK12_F";
this addPrimaryWeaponItem "optic_ERCO_blk_F";
this addWeapon "hgun_Pistol_01_F";

comment "Add items";
this linkItem "ItemMap";
this linkItem "ItemCompass";
this linkItem "ItemWatch";

comment "Set identity";
this setFace "TanoanHead_A3_08";
this setSpeaker "Male08ENG";
Image

Second one is a LMG dude with supressor.

Code: Select all

comment "Exported from Arsenal by Reinhard";

comment "Remove existing items";
removeAllWeapons this;
removeAllItems this;
removeAllAssignedItems this;
removeUniform this;
removeVest this;
removeBackpack this;
removeHeadgear this;
removeGoggles this;

comment "Add containers";
this forceAddUniform "U_B_CTRG_3";
this addVest "V_HarnessO_gry";
for "_i" from 1 to 2 do {this addItemToVest "SmokeShell";};
this addItemToVest "200Rnd_65x39_cased_Box";
this addHeadgear "H_Booniehat_khk";
this addGoggles "G_Bandanna_beast";

comment "Add weapons";
this addWeapon "LMG_Mk200_F";
this addPrimaryWeaponItem "muzzle_snds_H_snd_F";
this addPrimaryWeaponItem "optic_Holosight_blk_F";
this addPrimaryWeaponItem "bipod_02_F_blk";
this addWeapon "hgun_Pistol_01_F";

comment "Add items";
this linkItem "ItemMap";

comment "Set identity";
this setFace "GreekHead_A3_06";
this setSpeaker "Male08ENG";
Image

Tried to work on some AI that resembles a medic and actually carries a Medkit around but a light weapon. Not so convinced of that creation yet~

Code: Select all

comment "Exported from Arsenal by Reinhard";

comment "Remove existing items";
removeAllWeapons this;
removeAllItems this;
removeAllAssignedItems this;
removeUniform this;
removeVest this;
removeBackpack this;
removeHeadgear this;
removeGoggles this;

comment "Add containers";
this forceAddUniform "U_BG_Guerilla1_1";
for "_i" from 1 to 2 do {this addItemToUniform "MiniGrenade";};
this addVest "V_TacVestIR_blk";
for "_i" from 1 to 2 do {this addItemToVest "SmokeShell";};
for "_i" from 1 to 4 do {this addItemToVest "30Rnd_9x21_Mag_SMG_02";};
this addBackpack "B_FieldPack_blk";
this addItemToBackpack "Medikit";
this addHeadgear "H_Bandanna_cbr";

comment "Add weapons";
this addWeapon "SMG_05_F";
this addPrimaryWeaponItem "muzzle_snds_L";

comment "Add items";
this linkItem "ItemMap";

comment "Set identity";
this setFace "GreekHead_A3_06";
this setSpeaker "Male08ENG";

User avatar
BabyWolf
Armajunkies
Posts: 300
Joined: Mon 13. Apr 2015, 19:38

Re: Contest - New AI templates

Post by BabyWolf » Tue 10. Jan 2017, 14:43

CSAT Specop

Should be Very Rare
Has Light Body Armour
Light Rifle
Looooks frikken deadly

Code: Select all

comment "Exported from Arsenal by BabyWolf [AJ]";

comment "Remove existing items";
removeAllWeapons this;
removeAllItems this;
removeAllAssignedItems this;
removeUniform this;
removeVest this;
removeBackpack this;
removeHeadgear this;
removeGoggles this;

comment "Add containers";
this forceAddUniform "U_O_CombatUniform_oucamo";
for "_i" from 1 to 2 do {this addItemToUniform "FirstAidKit";};
for "_i" from 1 to 3 do {this addItemToUniform "16Rnd_9x21_Mag";};
this addVest "V_PlateCarrier1_blk";
for "_i" from 1 to 6 do {this addItemToVest "30Rnd_580x42_Mag_F";};
for "_i" from 1 to 2 do {this addItemToVest "SmokeShellRed";};
for "_i" from 1 to 2 do {this addItemToVest "SmokeShellGreen";};
this addBackpack "B_AssaultPack_blk";
this addHeadgear "H_HelmetSpecO_blk";
this addGoggles "G_Balaclava_TI_blk_F";

comment "Add weapons";
this addWeapon "arifle_CTAR_blk_F";
this addPrimaryWeaponItem "acc_pointer_IR";
this addPrimaryWeaponItem "optic_Holosight_blk_F";
this addWeapon "hgun_Rook40_F";

comment "Add items";
this linkItem "ItemMap";
this linkItem "ItemCompass";
this linkItem "ItemWatch";
this linkItem "ItemRadio";

comment "Set identity";
this setFace "WhiteHead_17";
this setSpeaker "Male01GRE";
Attachments
20170110154114_1.jpg
20170110154114_1.jpg (180.05 KiB) Viewed 1902 times
Image

User avatar
BabyWolf
Armajunkies
Posts: 300
Joined: Mon 13. Apr 2015, 19:38

Re: Contest - New AI templates

Post by BabyWolf » Tue 10. Jan 2017, 14:48

Hes a sniper, kinda...

Rahim with DMS, 4 Mags
No Body Armour
He loooks kinda weird but hes just trying to be special.....
And hes got a pistol

Code: Select all

comment "Exported from Arsenal by BabyWolf [AJ]";

comment "Remove existing items";
removeAllWeapons this;
removeAllItems this;
removeAllAssignedItems this;
removeUniform this;
removeVest this;
removeBackpack this;
removeHeadgear this;
removeGoggles this;

comment "Add containers";
this forceAddUniform "U_B_CTRG_Soldier_urb_3_F";
for "_i" from 1 to 2 do {this addItemToUniform "FirstAidKit";};
for "_i" from 1 to 3 do {this addItemToUniform "6Rnd_45ACP_Cylinder";};
this addVest "V_Chestrig_oli";
for "_i" from 1 to 2 do {this addItemToVest "SmokeShellRed";};
for "_i" from 1 to 2 do {this addItemToVest "SmokeShellGreen";};
for "_i" from 1 to 4 do {this addItemToVest "10Rnd_762x54_Mag";};
this addHeadgear "H_Booniehat_oli";
this addGoggles "G_Bandanna_beast";

comment "Add weapons";
this addWeapon "srifle_DMR_01_F";
this addPrimaryWeaponItem "optic_DMS";
this addWeapon "hgun_Pistol_heavy_02_F";
this addWeapon "Rangefinder";

comment "Add items";
this linkItem "ItemMap";
this linkItem "ItemCompass";
this linkItem "ItemWatch";
this linkItem "ItemRadio";

comment "Set identity";
this setFace "WhiteHead_17";
this setSpeaker "Male01GRE";
Attachments
20170110154625_1.jpg
20170110154625_1.jpg (176.39 KiB) Viewed 1902 times
Image

User avatar
Reinhard
Rekrut
Posts: 63
Joined: Sat 30. Jan 2016, 13:49

Re: Contest - New AI templates

Post by Reinhard » Tue 10. Jan 2017, 15:58

Paramilitary uniforms, loadouts mainly for Tanoa~

Image

Code: Select all

comment "Exported from Arsenal by Reinhard";

comment "Remove existing items";
removeAllWeapons this;
removeAllItems this;
removeAllAssignedItems this;
removeUniform this;
removeVest this;
removeBackpack this;
removeHeadgear this;
removeGoggles this;

comment "Add containers";
this forceAddUniform "U_I_C_Soldier_Para_3_F";
for "_i" from 1 to 3 do {this addItemToUniform "30Rnd_545x39_Mag_F";};
this addVest "V_BandollierB_oli";
for "_i" from 1 to 3 do {this addItemToVest "30Rnd_545x39_Mag_F";};
this addBackpack "B_AssaultPack_rgr";
for "_i" from 1 to 2 do {this addItemToBackpack "RPG7_F";};
this addGoggles "G_Squares";

comment "Add weapons";
this addWeapon "arifle_AKS_F";
this addWeapon "launch_RPG7_F";

comment "Add items";

comment "Set identity";
this setFace "AsianHead_A3_05";
this setSpeaker "Male01GRE";
Image

Code: Select all

comment "Exported from Arsenal by Reinhard";

comment "Remove existing items";
removeAllWeapons this;
removeAllItems this;
removeAllAssignedItems this;
removeUniform this;
removeVest this;
removeBackpack this;
removeHeadgear this;
removeGoggles this;

comment "Add containers";
this forceAddUniform "U_I_C_Soldier_Para_2_F";
this addVest "V_I_G_resistanceLeader_F";
this addItemToVest "FirstAidKit";
for "_i" from 1 to 4 do {this addItemToVest "30Rnd_762x39_Mag_F";};
this addItemToVest "SmokeShellYellow";
this addHeadgear "H_Bandanna_khk";

comment "Add weapons";
this addWeapon "arifle_AKM_F";

comment "Add items";

comment "Set identity";
this setFace "AsianHead_A3_07";
this setSpeaker "Male01GRE";
Image

Code: Select all

comment "Exported from Arsenal by Reinhard";

comment "Remove existing items";
removeAllWeapons this;
removeAllItems this;
removeAllAssignedItems this;
removeUniform this;
removeVest this;
removeBackpack this;
removeHeadgear this;
removeGoggles this;

comment "Add containers";
this forceAddUniform "U_I_C_Soldier_Para_1_F";
this addVest "V_TacChestrig_oli_F";
for "_i" from 1 to 3 do {this addItemToVest "20Rnd_650x39_Cased_Mag_F";};
for "_i" from 1 to 2 do {this addItemToVest "SmokeShell";};
this addHeadgear "H_Shemag_olive_hs";

comment "Add weapons";
this addWeapon "srifle_DMR_07_ghex_F";
this addPrimaryWeaponItem "optic_DMS_ghex_F";

comment "Add items";

comment "Set identity";
this setFace "TanoanHead_A3_07";
this setSpeaker "Male01GRE";

Post Reply