UFO:Alien Invasion

General => Discussion => Topic started by: Duque Atreides on May 26, 2012, 11:11:17 pm

Title: Difficulty; alien shooting
Post by: Duque Atreides on May 26, 2012, 11:11:17 pm
I can see that the aliens don´t uses all the shooting types of their weapons. Is this a matter of difficulty? The AI makes snap shots everytime?

Title: Re: Difficulty; alien shooting
Post by: Duque Atreides on July 24, 2012, 04:37:48 pm
Hi. I want to do the same question. Why the aliens don´t uses burst shot with plasma rifle, for example?

Thanks
Title: Re: Difficulty; alien shooting
Post by: DarkRain on July 24, 2012, 09:02:06 pm
The answer is: the AI is buggy: AI_SearchBestTarget loops through all the fire modes but it resets visibility each iteration while only checking the visibility the first time, this effectively prevents aliens form ever using other firemode than the first one

Uploading patch to tracker shortly

Edit: Done patch #3547989 (https://sourceforge.net/tracker/?func=detail&aid=3547989&group_id=157793&atid=805244)
Title: Re: Difficulty; alien shooting
Post by: Sandro on July 25, 2012, 06:11:45 pm
Good catch! Heh, always was wondering why aliens always fire single shots whenever possible. Playtested it a bit -- aliens seem to be more dangerous now.

But reaction fire still always uses 1st firing mode, which is painfully obvious with double-barreled shotgun. Maybe, there is a similar problem?
Title: Re: Difficulty; alien shooting
Post by: DarkRain on July 25, 2012, 06:57:39 pm
AFAIK AI reaction fire is only partially implemented (IIRC it is enabled for random AI actors at the start of battle and that's all)
Title: Re: Difficulty; alien shooting
Post by: Duque Atreides on July 25, 2012, 11:39:59 pm
The answer is: the AI is buggy: AI_SearchBestTarget loops through all the fire modes but it resets visibility each iteration while only checking the visibility the first time, this effectively prevents aliens form ever using other firemode than the first one

Uploading patch to tracker shortly

Edit: Done patch #3547989 (https://sourceforge.net/tracker/?func=detail&aid=3547989&group_id=157793&atid=805244)

And how can i use this patch? Where i need to copy it?
Title: Re: Difficulty; alien shooting
Post by: Nokim on July 25, 2012, 11:48:01 pm
And how can i use this patch? Where i need to copy it?
It's already applied to master, so just update source from git or download latest nightly build.
Title: Re: Difficulty; alien shooting
Post by: Duque Atreides on July 26, 2012, 12:13:15 am
But nigthly build is for 2.5, isn´t? I´m playing 2.4.
Title: Re: Difficulty; alien shooting
Post by: H-Hour on July 26, 2012, 11:02:19 am
The change is only available in the latest development version.