FreeOrion

Forums for the FreeOrion project
It is currently Tue Jun 19, 2018 7:43 pm

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Sat May 19, 2018 10:07 am 
Offline
Vacuum Dragon
User avatar

Joined: Mon Apr 10, 2017 4:25 pm
Posts: 595
I was thinking on a implementation for a rudimentary, standalone combat simulator (to be able to discuss some rock-paper-scissors stuff with Jaumito) and stumbled on this question.
I thought flak cannons start with 3 shots (modified by pilots species trait) and get +1 from each tech upgrade (up to 6 shots plus species trait), but then I realised I didn't know what techs granted the upgrade, either the mass driver refinements (SHP_WEAPON_1_[2-4].focs.txt) or the unlocking tech of the other weapon types (SHP_WEAPON_[2-4]_1.focs.txt). So I tried to figure it out checking the focs files for weapon parts and techs, and their descriptions in the stringtables, but I couldn't see if or how are flak cannons upgraded.

Which improvement (if any) do flak cannons get from what techs?


Top
 Profile  
 
PostPosted: Sat May 19, 2018 10:30 am 
Offline
Vacuum Dragon
User avatar

Joined: Mon Apr 10, 2017 4:25 pm
Posts: 595
Another question related to flak cannons:
Since I've seen in the combat reports that a ship can end up with big negative HP numbers after a combat round, I assume that on each round each weapon chooses a target independently, so that many guns can aim at the same target even if that target needs only one shot to die in this round. Therefore, I also assume that two different flak cannons can choose the same target. However, flak cannons are the only weapons that have more than one shot per combat round.

Can a flak cannon choose more than once the same target in the same combat round?
I'm thinking of objectives with 1 HP that will die with first shot, especially fighters.


Top
 Profile  
 
PostPosted: Sat May 19, 2018 7:13 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4561
Location: Sol III
Oberlus wrote:
Which improvement (if any) do flak cannons get from what techs?
AFAIK, the flak cannon does not get any upgrades from techs currently. It's actually more of a proof of concept type of thing. The entire carrier/fighter thing, as it's currently present in the game, is at a "first rough implementation" stage, and in need of revision/polishing/fleshing out, meaning, very much work in progress.

As is the IS, and will be the Influence thing once it gets added next release cycle. I guess we need to do some refining/consolidating after 0.5.0. ;)


Top
 Profile  
 
PostPosted: Sat May 19, 2018 8:23 pm 
Offline
Psionic Snowflake

Joined: Tue Sep 30, 2014 10:01 am
Posts: 483
AFAIK the flak does not get any improvements ATM (its for shooting down fighters which always have 1HP).
Also the three rounds of the flak per round should randomly choose (different) targets. So a lucky flak cannon should be able to shoot down three fighters per round (i.e. 9 fighters per turn).

_________________
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.


Top
 Profile  
 
PostPosted: Sun May 20, 2018 10:49 am 
Offline
Space Dragon
User avatar

Joined: Fri Jul 29, 2016 10:12 am
Posts: 259
Ophiuchus wrote:
Also the three rounds of the flak per round should randomly choose (different) targets.


So Flak does not have a priority to shoot at fighters first?


Top
 Profile  
 
PostPosted: Sun May 20, 2018 10:55 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12223
Location: Munich
EricF wrote:
So Flak does not have a priority to shoot at fighters first?
Weapons target all valid targets with equal probability, independently for each shot.


Top
 Profile  
 
PostPosted: Sun May 20, 2018 11:03 am 
Offline
Space Dragon
User avatar

Joined: Fri Jul 29, 2016 10:12 am
Posts: 259
Geoff the Medio wrote:
EricF wrote:
So Flak does not have a priority to shoot at fighters first?
Weapons target all valid targets with equal probability, independently for each shot.


Any plans to change that?


Top
 Profile  
 
PostPosted: Sun May 20, 2018 11:15 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12223
Location: Munich
EricF wrote:
Any plans to change that?
Leaders or targetting parts in designs are vaguely envisioned to be able to prioritize target selection. Species could have grudges against other species, and also prioritize based on that.


Top
 Profile  
 
PostPosted: Sun May 20, 2018 11:28 am 
Offline
Vacuum Dragon
User avatar

Joined: Mon Apr 10, 2017 4:25 pm
Posts: 595
Geoff the Medio wrote:
Weapons target all valid targets with equal probability, independently for each shot.
So, in a given combat round, a single flak cannon could target more than once the same (say) fighter, because it is still a valid target until destroyed at the end of combat round?


Top
 Profile  
 
PostPosted: Sun May 20, 2018 11:33 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12223
Location: Munich
Oberlus wrote:
So, in a given combat round, a single flak cannon could target more than once the same (say) fighter, because it is still a valid target until destroyed at the end of combat round?
Yes.


Top
 Profile  
 
PostPosted: Sun May 20, 2018 2:32 pm 
Offline
Space Floater

Joined: Sat May 12, 2018 9:28 am
Posts: 23
Quote:
Weapons target all valid targets with equal probability, independently for each shot.


So did the fighters (bomber inteceptor..) follow the same rule as "Weapon" ?

so an interceptor could attack a battleship even if there are enemy fighters around ?


Top
 Profile  
 
PostPosted: Sun May 20, 2018 3:24 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12223
Location: Munich
phocas wrote:
...so an interceptor could attack a battleship even if there are enemy fighters around ?
Yes.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group