Page 1 of 1

WeaponTemplate.indirect [0/1]

Posted: Mon Nov 18, 2013 1:14 am
by Swaffy
I see this in AI templates, but what does it do? If it is set to 1, what happens? For example, if it is set to 1 and used on a machinegun tempate?

I looked at the BF: MDT backup site but it says nothing. I tried a search here, but no one has talked about it.

Re: WeaponTemplate.indirect [0/1]

Posted: Mon Nov 18, 2013 1:47 am
by BotHunter
Direct means the need to aim at the object to hurt it. Indirect means that you need to aim near it. eg. Artillery, Battleship guns ect.

Re: WeaponTemplate.indirect [0/1]

Posted: Mon Nov 18, 2013 7:33 pm
by Swaffy
The thing is, I tried indirect on one of my MGs and the bot still tried to aim directly at the enemy before shooting.

Re: WeaponTemplate.indirect [0/1]

Posted: Mon Nov 18, 2013 8:36 pm
by BotHunter
I think they still try to aim at the target. they just don't make it a priority.

Re: WeaponTemplate.indirect [0/1]

Posted: Mon Nov 18, 2013 8:43 pm
by Vilespring
I think it might initiate arc trajectory calculations for firing long distances/over hills.

Re: WeaponTemplate.indirect [0/1]

Posted: Tue Nov 19, 2013 12:09 am
by Swaffy
Vilespring wrote:I think it might initiate arc trajectory calculations for firing long distances/over hills.
That's what I was thinking after I saw the bot looking at enemies through objects and the heightmap. Must be arc trajectory related.

Re: WeaponTemplate.indirect [0/1]

Posted: Tue Nov 19, 2013 10:28 am
by Sarge31FR
It's plain simple:

indirect means that bots can fire OVER obstacles, so it's a must for any artillery piece and ship guns which are to be used as artillery pcos (with the proper coding of course !).
It doesn't make any sense to give a straight shooting weapon like a rifle, tank gun etc. an indirect firing, ONLY weapons shooting in an arc must have them.

Re: WeaponTemplate.indirect [0/1]

Posted: Mon Dec 30, 2013 10:53 pm
by takiwa
If weaponTemplate.indirect is set to true (1), the weapon is fired in the 45-90 degree range, if it is set to false (0), it is fired in the 0-45 degree range.

Although most weapons in the game are set to true, I have read in some coding forums that setting both burst and indirect to true (1) increases the bots ability to aim (and therefor use) certain weapons more effectively, like anti-aircraft weapons for instance. I have not, however, played with this personally.

Hope this helps.