Problem with bots and satchels -1 reply

Please wait...

bbble

Don't mess with my Teddy!

50 XP

30th September 2004

0 Uploads

357 Posts

0 Threads

#1 13 years ago

I am working on modifying a map with bots right now, and I admit I am somewaht a n00b with bots. They behave not that badly, actually, but when it comes to destroying enemy tanks the american bots seem unable to complete the action. They grab the satchels in their hand, and run up to the tank, and then they stop. They just have to open their hand and let it go, but nothing happens, as in the picture below where 3 american engineers is standing right by the PanzerIV H.

bot_satchelproblem.jpg Does anyone know how I go about getting this problem solved?

Another example of the same situation: igotabombbutidunnohowtouseit.jpg




bbble

Don't mess with my Teddy!

50 XP

30th September 2004

0 Uploads

357 Posts

0 Threads

#2 13 years ago

*BUMP* anyone? Can you picture those americans saying "dude, does it say anything in the user's guide how you actually detonate one of these"?




[21Pz]Stauffenberg

the Wishmaster

50 XP

29th April 2005

0 Uploads

2,040 Posts

0 Threads

#3 13 years ago

that is, i think a common fh AI problem, like the Panzerfaust/bazooka bug in 0.65, where they never shot at anything, so maybe you report this to the "bugforum" heinkel




CamelNele

Norwegian Resistance

50 XP

21st May 2005

0 Uploads

27 Posts

0 Threads

#4 13 years ago

Which satchel does your bot use ? As far as i see it at the moment, the "Satchel" has no any ai-template assigned. The "SatchelShort" has one, which should work. (but if this is the one, that is not working, you might consider to change the ai-temperature-values) :cool:




bizness

FH Dev

50 XP

22nd October 2004

0 Uploads

543 Posts

0 Threads

#5 13 years ago

ive tried to change the values for satchelfast and satchel and still can't get them to work. ive seen the bots drop a satchel or 2 but its rare.




CamelNele

Norwegian Resistance

50 XP

21st May 2005

0 Uploads

27 Posts

0 Threads

#6 13 years ago

Well, once, put your eyes on this line : [color=sandybrown]objectTemplate.aiTemplate SatchelAI[/color] [color=sandybrown] [color=black]This line is in "SatchelShort" but not in "Satchel", thus only "SatchelShort" can get played by the bots. The "Satchel" is missing the information for the bots to use it.[/color] And for the AI-changes, lets look at the template : rem *** Add Satchel *** weaponTemplate.create SatchelAI weaponTemplate.burst 0 weaponTemplate.indirect 0 weaponTemplate.isThrown 1 weaponTemplate.minRange 0.0 [color=deepskyblue]weaponTemplate.maxRange 10.0[/color] weaponTemplate.weaponActivate PIMenuSelect5 weaponTemplate.weaponFire PIFire weaponTemplate.setStrength Infantry [color=deepskyblue]1.0[/color] weaponTemplate.setStrength LightArmour [color=deepskyblue]5.0[/color] weaponTemplate.setStrength HeavyArmour [color=deepskyblue]2.0[/color] weaponTemplate.setStrength NavalArmour 0.0 weaponTemplate.setStrength Submarine 0.0 weaponTemplate.setStrength Air 0.0 [color=black]I would rather try to change one of these (blue) properties. Increasing the maxRange can make the bots throw the satchels earlier, but might also result in not being able to hit the target at all.[/color] Increasing the setStrength-properties will result in a higher use-rate of the weapon against the certain vehicles.

Another thing i just see :

weaponTemplate.weaponActivate PIMenuSelect5 [color=black]"Satchels" have the item-index 4, "SatchelShort" have 5. This means, that you will need a completely new AI-template with another [color=red]PIMenuSelect4[/color]-property, to let the bots understand, that it is in slot 4.[/color] [/color]