Artificial intelligence for AE Defuser (Battlefield 2142)
In Battlefield 2142 there is a device for clearance, the archive Weapons_server its configuration are in folder Unl_Defuser. Like many other devices for it are not spelled out artificial intelligence. When I formed the sets for a single game, every weapon and tool I was prescribed the conditions for the use of their bots. Deuteron with out a hitch. In the second battle bots on ur key and repaired and mines were removed, but in 2142м there was a division of these functions between the two devices.In the second battle of repair AI file in the corresponding folder with a weapon/device was described similar to the conditions of employment of any weapon:
weaponTemplate.create wrench_AI
weaponTemplate.indirect 0
weaponTemplate.minRange 0.0
weaponTemplate.maxRange 0.0
weaponTemplate.setStrength Infantry 0.0
weaponTemplate.setStrength LightArmour 5.0
weaponTemplate.setStrength HeavyArmour 5.0
weaponTemplate.setStrength NavalArmour 1.0
weaponTemplate.setStrength Helicopter 3.0
weaponTemplate.setStrength AirPlane 3.0
In 2142й these conditions are described differently:
weaponTemplate.create Unl_Repair
weaponTemplate.weaponType Repair
weaponTemplate.maxRange 50.0
As we can see, removed the priority classes of equipment, and most importantly, added type weapons that defines the nature of device applications bot. Suitable types are for defibrillator, medical kit, and so on.
Not knowing the type of defuser, I first waved his hand at writing a AI file for it, deciding that it simply is not created. But in AIBehaviours file in the folder \Battlefield 2142\mods\bf2142\AI I noticed the line aiSettings.setBehaviour 9 DefuseMines
As I understand it, the mine-clearing bots in the game there, just need to know the same weaponType. Use DefuseMines/Defuser/Defuse I tried, none of the three gave no result.
I have about this issues.
Is there in fact, and if so, what weaponType for mine? Or not enough, and need manipulation with mine (which is a marker for bots to understand that it is mines, by analogy with the token infantry on gun emplacements and drones)?
Or need a completely different action?
Dmitry
Most likely weaponType for mine clearance does not exist, even searching themselves AI.dll and BF2142.exe I found these weaponsType's like Healing, Repair, C4, CloseCombat, etc., but found nothing about Defuse. Because the developers expected that deuteron and mines will benefit the players, so do not have the opportunity bots in the final version. Although if you look at the line aiSettings.setBehaviour 9 DefuseMines, it is likely that planned the possibility of clearance bots.
_Zuko_42_
Thanks for the reply! And what was discovered AI.dll and BF2142.exe?
_Zuko_42_
HEX Editor Neo failed me with AI.dll. Try ArtMoney, thanks for the advice.
Terminatys111
Simple transfer does not work, you need a weaponType for demining and AI files for the weapons in the second battle weaponType not indicated. And not the fact that weaponType match in the second and 2142й.