Author: Sirex1
Author Website:

Requirements: No addons required

Version: 13-01-2011

Short description: This is a script which makes infantry fighting vehicles and their infantry squad cooperate better.

Date: 2011-01-13 19:59


Comments: (1)
Rating:



 






Mechanized Infantry Tactics Script

by
Sirex1


Description:
This is a script which makes infantry fighting vehicles and their infantry squad cooperate better.
It does so in a simple way, when the vehicle discovers an enemy and the enemy is
within preset engagement range then:
1. The vehicle stops.
2. The infantry squad dismounts and get locked out of their vehicle.
3. The infantry goes in to combat mode and moves to the enemy position.
4. The vehicle follows the infantry and support its attack.
5. After the engagement the infantry mounts up.

Also their exist a radio command that will lock up all the infantry in to their ifvs cargo.
Their also exist one to unlock. They will only be locked in to their cargo untill the group reaches next waypoint.
If you want it to activate for ceratin waypoints it can be made, instructions in "3. Add and disable options.".

Standard behaviour is that the script will detect all ifv on the map with infantry in their group on mission start.
Bind these infantry to the ifv and activate the script for these.
Radio command exist that will lock the cargo of the vehicles until the group reaches their next waypoint.

Background:
I am/was a trained mech infantry soldier, so when i saw the standard behavior of the ai during assault, with its constant dismount and mount up with no logic and that the ifv wondered off i decided to code my own ai script to solve this. So i started this summer and got a basic version up fast, but now i got a good version up which is highly customizable. The original thread is in the mission section here http://forums.bistudio.com/showthread.php?t=105064 .


Features:
- Provides more realistic combat behavior from mechanized infantry squads.
- Default behavior is that the script identifies every ifv with a squad on the start of the mission, in cargo or dismounted, and connects these to each other via code (2 arrays with same index) and activates the script for these units.
- Can be changed via init file value so it discovers new vehicle with infantry continually during game run.
- Can easily be modified so it only activates the script for the vehicles you pass to the script, just disable the automatic discovery code and pass an array with vehicle objects in the init file, instructions are on the top of the script file in comments and in the init file.
- In init their is a variable to make the ifv halt and stand still during combat.
- Easy to customize the behavior during different parts of the combat.
- Script only tested with IFV and APC.
- Tested with vanilla Arma2. But i have AO also.
- Added so you can lock the infantry in to the cargo with radio command or by global value.


Installation:
You download the mission and unzip it anywhere. In the directory it will be a file named init.sqf and a directory named "mechInfTac".
These two you need to copy and place in your mission folder for the mission you want it to work with, then the script will activate for all vehicles which got infantry in their group on mission start ingame, which is the standard behaviour.


Known issues:
Sometime if the soldier the vehicle is following dies the ifv might wounder off a bit, but often it will stay with the group and if it moves if often does so to a better firing position or to the current waypoint.


Amphibious assault demo:
Also got an amphibious assault demo where the infantry is locked in the cargo untill they hit the beach.
Download the Amphibious assault demo mission.


Notes/Additional info:
Please give feedback and request for features and report bugs!
Also i would like to thank a bunch of people who helped me in the Mission thread, also the guy who made Squint, excellent tool!


Credits & thanks:
Also i would like to thank a bunch of people who helped me in the Mission thread, also the guy who made Squint, excellent tool!


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!