Make Bots Use Vehicle More Often?

Ask questions, discuss ideas, get answers
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Make Bots Use Vehicle More Often?

Post by Vilespring »

IT MAKES SENSE!
that hasn't happened in a long time! :lol:
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Make Bots Use Vehicle More Often?

Post by Swaffy »

Same here, Vile, same here. I never knew about Takiwa's experience, it's nice to see another experienced modder here.

Okay, here is my setup for my APC AI. I made the the driver and gunner seats use some higher values than the passenger seats. (Is this a problem?)

Driver and gunner:

Code: Select all

aiTemplatePlugIn.setStrategicStrength 0 2
aiTemplatePlugIn.setStrategicStrength 1 2
...
aiTemplate.degeneration 15
aiTemplate.allowedTimeDiff 2
aiTemplate.basicTemp 10
Passenger:

Code: Select all

aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 1
...
aiTemplate.degeneration 15
aiTemplate.allowedTimeDiff 2
aiTemplate.basicTemp 8
Should all of the Temps and strategicStrengths be the same value throughout the whole vehicle?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
takiwa
Posts: 134
Joined: Mon Dec 30, 2013 4:29 pm
Location: The Great State of Georgia

Re: Make Bots Use Vehicle More Often?

Post by takiwa »

Swaffy wrote:Should all of the Temps and strategicStrengths be the same value throughout the whole vehicle?
No, each PCO can (and most often does) have a different strategic value.
Image
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Make Bots Use Vehicle More Often?

Post by Swaffy »

takiwa wrote:
Swaffy wrote:Should all of the Temps and strategicStrengths be the same value throughout the whole vehicle?
No, each PCO can (and most often does) have a different strategic value.
Okay, thanks. Now I have a similar question that relates to this thread. Is there a way I can get a bot to use a gunner seat but never the driver seat using any of these values? I want my Mi-24D Hind to be like this, and also my AH-6 Little Bird.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
takiwa
Posts: 134
Joined: Mon Dec 30, 2013 4:29 pm
Location: The Great State of Georgia

Re: Make Bots Use Vehicle More Often?

Post by takiwa »

Swaffy wrote:Okay, thanks. Now I have a similar question that relates to this thread. Is there a way I can get a bot to use a gunner seat but never the driver seat using any of these values? I want my Mi-24D Hind to be like this, and also my AH-6 Little Bird.
You could try a strategic value of 0 for offense/defense on the driver PCO, and a value of 3-5 on the gunner PCO and see...although I think the easiest way would be to remove the aiTemplate from the driver seat...haven't played with this yet, but I was thinking of doing the same thing with the mobile artillery, seems the bots always get in and try to drive while I'm aiming the arty :roll:
Image
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Make Bots Use Vehicle More Often?

Post by Swaffy »

I tried a few minutes ago to make the AI take no priority to the driver seat, but it seems to have made the bots completely ignore the vehicle.

I have another idea:
Is there a way to make the "W" key the key that players press to go to seat 2? You see, bots instantly use the move forward key so perhaps we can change the key the bots use to the seat 2 key (so they instantly change to seat 2)?

[Edit] Look what I found:

(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Make Bots Use Vehicle More Often?

Post by Vilespring »

AHA!
nice,that can make vehicles that bots just cannot use as well as a player (well, that's everything...) be left alone, yet with a full crew ready for battle!
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
takiwa
Posts: 134
Joined: Mon Dec 30, 2013 4:29 pm
Location: The Great State of Georgia

Re: Make Bots Use Vehicle More Often?

Post by takiwa »

haha, that would do it...every time the bot uses the throttle input (menu select 2) to make the vehicle go, he changes positions in the vehicle...brilliant :)
Image
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Make Bots Use Vehicle More Often?

Post by Swaffy »

I'm currently trying to figure out a way to prevent the bots from switching to the driver position after leaving it. In other words, preventing the bot from going back and forth between seat 2 and seat 1.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Make Bots Use Vehicle More Often?

Post by Vilespring »

make the seat 1 button be the seat their already in?
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Post Reply