Jump to content

Photo
- - - - -

High Command - Weapon Teams Command Script (control MG and Mortar Teams)


  • Please log in to reply
34 replies to this topic
Thread Starter
igneous01
igneous01

    First Sergeant

  • Members
  • 893 posts

#1

Posted 08 December 2011 - 21:17

Script updated to 1.0, here are the new changes:
- added OA backpacks for all weapon teams (backpacks are added/removed when teams are deployed/packed up)
- added ammo count for MG teams (default is 6 belts per team) can be changed in the WeaponTeamInit

older changes:
- added support for multiple selections while using weapon team actions
- added ammo count for mortar teams (default is 12 shells per team) you can change this in the init script
- added a submenu for mortar fire missions
- added many more fire mission types, including ability to cancel
- added support for all sides

All the actions are in the communication menu (0-8), groups that are added to the script will have their HighCommand Group Icon change into the appropriate team symbol. You order these groups around like any other high command groups, then use the communication menu to deploy/packup and call in mortar strikes.

Teams when asked to deploy/pack up will go down, play an animation, then the weapon will appear and the unit will go into it. If the gunner dies in combat while deployed, the next man in the team will take over the position and continue firing. Teams are vulnerable when setting up/packing weapons and it takes 15 seconds to finish setting up.

This is Executed Via:
nul = [[g1,g2], [g3,g4]] execVM "WeaponTeamScript\WeaponTeamInit.sqf"

where [g1, g2] is an ARRAY of GROUPS that are to become Mortar Teams, and [g3, g4] is an ARRAY of GROUPS that are to become MG Teams.

EXAMPLE MISSION:
4 shared - link 1

Media Fire - link 2

In the example mission, you will start on Utes with 3 fireteams, 2 mg teams, and 2 mortar teams. There is some enemy in the north village for you to take a test drive.

Edited by Igneous01, 22 January 2012 - 15:12.
Updated script


katipo66
katipo66

    Warrant Officer

  • Members
  • 2589 posts

#2

Posted 08 December 2011 - 21:54

Thanks, sounds very cool, i like HC... ill give it a spin
:icon_eek: :popcornsmilie:

katipo66
katipo66

    Warrant Officer

  • Members
  • 2589 posts

#3

Posted 09 December 2011 - 15:34

All gud :)

Edited by Katipo66, 13 December 2011 - 15:59.

:icon_eek: :popcornsmilie:

CaptainBravo
CaptainBravo

    Master Sergeant

  • Members
  • 730 posts

#4

Posted 19 January 2012 - 05:57

Great work Igneous01! :thumbsup:

Is it possible to add west and maybe indep to it as well?

I am surprised no one thought of it before!
Captain Bravo
One of the serious problems in planning the fight against American doctrine, is that the Americans do not read their manuals, nor do they feel any obligation to follow their doctrine"
From a Russian General's Notebook

Join Bravo Company
A highly trained unit run by an ex cook, a hooker and an old pensioner, so expect the best!
http://forums.bistud...ead.php?t=80906

Thread Starter
igneous01
igneous01

    First Sergeant

  • Members
  • 893 posts

#5

Posted 19 January 2012 - 14:03

Great work Igneous01! :thumbsup:

Is it possible to add west and maybe indep to it as well?

I am surprised no one thought of it before!


thanks

actually its pretty easy to adapt for west or independants, just replace the mortar and mg with the one for the side. Its near the top of WeaponTeamInit.sqf:

// change high command icon to match group role
{
	_x setvariable ["MARTA_customIcon",["o_mortar"]];
	_x setVariable ["DZ_WTS_Type", 0];
      _x setVariable ["DZ_WTS_Deployed", false];
	_x enableAttack false;
	if (side _x == EAST) then {
		_x setVariable ["DZ_WTS_Weapon", "[COLOR="Red"]2b14_82mm[/COLOR]"];
	};
} foreach _MortarGroups;
{
	_x setvariable ["MARTA_customIcon",["o_support"]];
	_x setVariable ["DZ_WTS_Type", 1];
	_x setVariable ["DZ_WTS_Deployed", false];
	_x enableAttack false;
	if (side _x == EAST) then {
		_x setVariable ["DZ_WTS_Weapon", "[COLOR="Red"]DSHKM_Ins[/COLOR]"];
	};
} foreach _MGGroups;

just find the weapon classname for the mortar you want to use and mg, and copy it inside those quotes, and it will work for any other side.

Let me know if there are any issues with it, I have not yet updated this script with more features, but once I get my campaign in good shape it will be on my todo list.

CaptainBravo
CaptainBravo

    Master Sergeant

  • Members
  • 730 posts

#6

Posted 19 January 2012 - 14:47

thanks

actually its pretty easy to adapt for west or independants, just replace the mortar and mg with the one for the side. Its near the top of WeaponTeamInit.sqf:

// change high command icon to match group role
{
	_x setvariable ["MARTA_customIcon",["o_mortar"]];
	_x setVariable ["DZ_WTS_Type", 0];
      _x setVariable ["DZ_WTS_Deployed", false];
	_x enableAttack false;
	if (side _x == EAST) then {
		_x setVariable ["DZ_WTS_Weapon", "[COLOR="Red"]2b14_82mm[/COLOR]"];
	};
} foreach _MortarGroups;
{
	_x setvariable ["MARTA_customIcon",["o_support"]];
	_x setVariable ["DZ_WTS_Type", 1];
	_x setVariable ["DZ_WTS_Deployed", false];
	_x enableAttack false;
	if (side _x == EAST) then {
		_x setVariable ["DZ_WTS_Weapon", "[COLOR="Red"]DSHKM_Ins[/COLOR]"];
	};
} foreach _MGGroups;

just find the weapon classname for the mortar you want to use and mg, and copy it inside those quotes, and it will work for any other side.

Let me know if there are any issues with it, I have not yet updated this script with more features, but once I get my campaign in good shape it will be on my todo list.


Did that but weapons (deploy/pick up) options are grayed out. Markers are also infantry so they have not changed. Is there another line for side and imarker type needs changing?
Captain Bravo
One of the serious problems in planning the fight against American doctrine, is that the Americans do not read their manuals, nor do they feel any obligation to follow their doctrine"
From a Russian General's Notebook

Join Bravo Company
A highly trained unit run by an ex cook, a hooker and an old pensioner, so expect the best!
http://forums.bistud...ead.php?t=80906

gunterlund21
gunterlund21

    Gunnery Sergeant

  • Members
  • 455 posts

#7

Posted 19 January 2012 - 22:29

great stuff. this needs to be combined with Domz hac extensions.
My System
Motherboard - Asus Striker II Extreme 790i
CPU - Intel E8500 Duo 3.16GHz overclocked to 3.8
Memory - OCZ Gold DDR3 SDRAM 1600 2Gig
Drive - Western Digital Caviar RE2 500Gig Sata
Drive - Kingston 128Gig SSD
Video -BFG 285GTX
Drivers - Nvidia 195.
Artic Cooling Freezer 7 Pro CPU Fan
Power - Antec TPQ-850 850 Watt
Microsoft Windows 7 64-Bit

Thread Starter
igneous01
igneous01

    First Sergeant

  • Members
  • 893 posts

#8

Posted 20 January 2012 - 10:29

Did that but weapons (deploy/pick up) options are grayed out. Markers are also infantry so they have not changed. Is there another line for side and imarker type needs changing?


oops, the problem is staring me in the face haha, change the:

if (side _x == EAST)
to

if (side _x == WEST)

forgot that I had that in there for future side implements. should work once the side is changed to west

CaptainBravo
CaptainBravo

    Master Sergeant

  • Members
  • 730 posts

#9

Posted 20 January 2012 - 14:41

oops, the problem is staring me in the face haha, change the:

if (side _x == EAST)
to

if (side _x == WEST)

forgot that I had that in there for future side implements. should work once the side is changed to west


I am still having the same issue despite changing the East to West. I have attached the example mission I am having the issue with. I appreciate you taking a quick look and letting me know my mistake.


http://www.mediafire...c3g6r9qr27826rf
Captain Bravo
One of the serious problems in planning the fight against American doctrine, is that the Americans do not read their manuals, nor do they feel any obligation to follow their doctrine"
From a Russian General's Notebook

Join Bravo Company
A highly trained unit run by an ex cook, a hooker and an old pensioner, so expect the best!
http://forums.bistud...ead.php?t=80906

gunterlund21
gunterlund21

    Gunnery Sergeant

  • Members
  • 455 posts

#10

Posted 20 January 2012 - 14:50

your mission still show side equals EAST

---------- Post added at 03:50 PM ---------- Previous post was at 03:49 PM ----------

Your mission still shows side equals east

{
_x setvariable ["MARTA_customIcon",["o_mortar"]];
_x setVariable ["DZ_WTS_Type", 0];
_x setVariable ["DZ_WTS_Deployed", false];
_x enableAttack false;
if (side _x == EAST) then {
_x setVariable ["DZ_WTS_Weapon", "M252"];
};


My System
Motherboard - Asus Striker II Extreme 790i
CPU - Intel E8500 Duo 3.16GHz overclocked to 3.8
Memory - OCZ Gold DDR3 SDRAM 1600 2Gig
Drive - Western Digital Caviar RE2 500Gig Sata
Drive - Kingston 128Gig SSD
Video -BFG 285GTX
Drivers - Nvidia 195.
Artic Cooling Freezer 7 Pro CPU Fan
Power - Antec TPQ-850 850 Watt
Microsoft Windows 7 64-Bit

Thread Starter
igneous01
igneous01

    First Sergeant

  • Members
  • 893 posts

#11

Posted 20 January 2012 - 16:58

your mission still show side equals EAST

---------- Post added at 03:50 PM ---------- Previous post was at 03:49 PM ----------

Your mission still shows side equals east


yup, need to change both if cases to west (or you could remove the if statements since they are not really needed right now, assuming you know how to do that)

gunterlund21
gunterlund21

    Gunnery Sergeant

  • Members
  • 455 posts

#12

Posted 20 January 2012 - 19:50

also in the init line of your team leader you need to create a group ie g1=group this. You dont name the team leader g1

---------- Post added at 08:50 PM ---------- Previous post was at 08:45 PM ----------

Igneous01 what would also be very cool is if you have a crew served weapon have the crew fill all the avail slots of the weapon. ie mortars have two slots I believe. In your example 1 guys mans the mortar the other two hang out. Maybe to an array of the weapon slots on init. Just a thought
My System
Motherboard - Asus Striker II Extreme 790i
CPU - Intel E8500 Duo 3.16GHz overclocked to 3.8
Memory - OCZ Gold DDR3 SDRAM 1600 2Gig
Drive - Western Digital Caviar RE2 500Gig Sata
Drive - Kingston 128Gig SSD
Video -BFG 285GTX
Drivers - Nvidia 195.
Artic Cooling Freezer 7 Pro CPU Fan
Power - Antec TPQ-850 850 Watt
Microsoft Windows 7 64-Bit

katipo66
katipo66

    Warrant Officer

  • Members
  • 2589 posts

#13

Posted 20 January 2012 - 20:48

As i mentioned earlier somewhere and what i think is common knowledge this doesnt work if units enter then exit a vehicle, which is a pain... they exit and move/deploy no problem but do not man weapon from memory, this is a BIS issue i believe.
:icon_eek: :popcornsmilie:

Thread Starter
igneous01
igneous01

    First Sergeant

  • Members
  • 893 posts

#14

Posted 20 January 2012 - 23:46

As i mentioned earlier somewhere and what i think is common knowledge this doesnt work if units enter then exit a vehicle, which is a pain... they exit and move/deploy no problem but do not man weapon from memory, this is a BIS issue i believe.


hmm strange, I never encountered that (yet). Thanks for the heads up.

Igneous01 what would also be very cool is if you have a crew served weapon have the crew fill all the avail slots of the weapon. ie mortars have two slots I believe. In your example 1 guys mans the mortar the other two hang out. Maybe to an array of the weapon slots on init. Just a thought


Shouldn't be too hard to implement, I may have some slight issues with getting the passenger of the mortar switch to gunner if the gunner dies, but it shouldn't be too difficult.

I just need to figure out someway of storing ammo for the static weapons so that the player cant packup/deploy and get standard ammo all over again.

CaptainBravo
CaptainBravo

    Master Sergeant

  • Members
  • 730 posts

#15

Posted 21 January 2012 - 05:02

Thanks guys I got it working now.

I have implmented in Extended HC and works perfectly so far.

I assume I can replace the MG with any other static weapon such as Tow?
Captain Bravo
One of the serious problems in planning the fight against American doctrine, is that the Americans do not read their manuals, nor do they feel any obligation to follow their doctrine"
From a Russian General's Notebook

Join Bravo Company
A highly trained unit run by an ex cook, a hooker and an old pensioner, so expect the best!
http://forums.bistud...ead.php?t=80906

Thread Starter
igneous01
igneous01

    First Sergeant

  • Members
  • 893 posts

#16

Posted 21 January 2012 - 05:59

Thanks guys I got it working now.

I have implmented in Extended HC and works perfectly so far.

I assume I can replace the MG with any other static weapon such as Tow?


technically, yes you can, it can be whatever static weapon you want it to be, just make sure this is the MGGroup weapon that is being replaced and not the mortar group

Thread Starter
igneous01
igneous01

    First Sergeant

  • Members
  • 893 posts

#17

Posted 21 January 2012 - 10:22

Script has been updated with much more features and a nicer looking menu. first post updated.

foxhound
foxhound

    Retired Moderator

  • Members
  • 11346 posts

#18

Posted 21 January 2012 - 12:18

Thanks for taking the time to inform us about your release :cool:


Release frontpaged on the Armaholic homepage.

Posted Image
High Command - Weapon Teams Command Script v0.85


Visit Armaholic.com | Visit Carriercommandaholic.com
Posted Image
Public FTP available, just check the Armaholic.com FAQ.

HMM........wonder what it is huh?

DomZ
DomZ

    Sergeant

  • Members
  • 123 posts

#19

Posted 21 January 2012 - 12:43

Very cool addon. Like the high command fire control. Very clever!

metalcraze
metalcraze

    First Lieutenant

  • Members
  • 5157 posts

#20

Posted 21 January 2012 - 13:24

Looks like ArmA is being turned into a real strategy game by the day.
:salute:
ArmA2: "Doc, I'm wounded, I can barely aim and I'm bleeding badly, come on pull my body out of the harm's way and treat me before I die!"
ArmA3: "You are wounded! Click to instantly regenerate health whenever you feel like it!"

Guess two years post-release aren't enough to make ArmA3 at least half as dumbed down.