Help - Search - Members - Calendar
Full Version: Bots as engineers
Battlefield SinglePlayer Forum > Main > BF42 and BFV Discussion > AI Editing and Mod Support
Lt.General.Rodkeif
I've seen manys mods with cool stuff for engineers. But I've never seen the bots use them effectively or at all. I want to see a couple of bots as engineers, on wake island, mine the entrance to the airfield from the landing beach, and then set tnt packs in the bushes around the landing beach, now that would be something. ph34r.gif Does realplayer do this, or is this still WIP?
Dnamro
In order to get the bots to deploy any handweapon, you have to change its velocity bots so it can throw it further. Usually a velocity of 15 will work. But then you have a deployed handweapon that is thrown instead of dropped, which for single player usually is not a big deal. Another issue is that bots won't deploy a weapon unless you trick them into trying to throw the deployed handweapon at an enemy. So, you can set the Aitemplate maxrange to something really high like 1000. This will get bots spamming the map with landmines or what else you want them to deploy, but there is no way to make bots deploy them strategically.

Now, since bots can't use the detonator correctly, you have to change the detpack's timetolive projectile setting to just a few seconds (5-10) instead of the usual 180. Now, these you want a short AI range so the bots will try to throw them at vehicles.

I explain it in more detail in my offline modding guide:
http://battlefieldsingleplayer.planetbattl...?showtopic=6860
Aussie Dan
Another idea is to change the detonator so instead of pressing altfire then fire, you only have press altfire to activate the charges. That would make it easier for the bots to use, but you would have to tweak the ammo count since bots never run out of ammo.
Dnamro
There are some big obstacles to getting bots to use the detonator that no one has solved:

- Bots never run out of ammo, so how do you get bots to stop throwing detpacks and switch to the detonator?

- How to control the bot to use the detonator after it has thrown down a detpack? How do you get the bots to only use a detonator after it has dropped a detpack? If the bots could be limited to the number of detpacks, then possibly it might be workable. I haven't found a way to limit the ammo for bots.

- How to tell the bots to select the detonator? There is no know method to tell the bots that after they use a detpack, to use the alt fire key to select the detonator.

- Detpack projectile needs velocity increased in order for bots to be able to use. Not a big deal for a single player only mod, but if its part of a multiplayer mod, the players usually don't won't their detpack's thrown.

- How do you get the bots to even fire the detonator? You would have to make the bots think that the detonator is a regular handweapon and somehow code it with a fake projectile that the bots can actually fire at the enemy.

- Even if all those issues can be worked out, there is no way to make the bots take cover after they drop a detpack before they used the detonator, which makes the bots look really stupid.

Its much better to just to change the detonator to a timebomb, and get the bots to throw them so they aren't standing right next to it when it goes off.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.