View Issue Details

IDProjectCategoryView StatusLast Update
0000180FSSCPgameplaypublic2010-10-22 13:36
ReporterSadisticSid Assigned ToZacam  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0000180: "Huge" tag does not function for primary weapons on fighters
DescriptionPretty self-explanatory, the "Huge" tag should mean a weapon is fired only at a large ship, and this functions for primary and secondary weapons on large ships, and secondary weapons on fighters/bombers, but not on primary weapons on fighters/bombers.
TagsNo tags attached.

Activities

Goober5000

2004-04-26 19:07

administrator   ~0000829

Erm, double-check this in retail. I'm pretty sure that all along "huge" only meant that it does huge damage... there's nothing preventing it from being fired at small ships.

phreak

2004-04-28 16:59

developer   ~0000841

in the ai_choose_secondary() function theres an if statement that handles when the target ship is a big ship, it then prioritizes to use "huge" weapons (if they are equipped), otherwise if the target is a small ship it won't use them when ai_select_secondary() is called

SadisticSid

2004-04-29 10:02

reporter   ~0000846

Goob, check the beams for a good example of this - SRed has the flags ("Big Ship" "huge" "beam") while SAAA has ("Big Ship" "beam"). The same is true for all other primary weapons mounted on capital ships' turrets.

Goober5000

2005-03-15 01:02

administrator   ~0001936

Phreak, has there been any new development on this?

phreak

2005-03-15 01:37

developer   ~0001949

I was looking at this, never tried anything though. There may be a problem if an AI ship is carrying only "huge" primaries and the player orders them to attack a fighter. Would the ship pursue it with missiles or break off and attack something else

phreak

2005-06-20 15:09

developer   ~0002664

ok priority is:

1) Chase fighters with secondaries and don't fire primaries if all primaries have huge tag
2) if all primaries and secondaries have huge flags, find a new target
3) if no suitable target found, run.

phreak

2005-08-30 15:04

developer   ~0003203

Last edited: 2005-08-30 15:05

This is going to take a long time to rewrite properly. If the weapon selection function fails, there really is no proper way to have ships break off their attack and focus on shooting something else. Besides, if the weapons selection fails, then the first weapon is selected for primaries. Secondaries fail gracefully IIRC. I guess the best solution is to have the the AI pick hostiles that satisfy available weapons* and maybe set ships to evade all hostiles or stay near friendly ships if no hostiles can be attacked with the current loadout. Perhaps have a sexp to change the behavior on a per-ship/wing basis. Say beta wing could evade, while gamma would stay near the GTD Aquataine. Also, if a ship is ordered, by the player, to attack a hostile that it can't attack. should the AI disregard the player orders and cause confusion to why it isn't attacking.

*:
1) Weapons flags match
2) In range, or not too far away

assign to FSO4?

edited on: 08-30-05 11:05

Goober5000

2005-09-06 15:03

administrator   ~0003273

Last edited: 2005-09-06 15:03

Yeah, might as well.

EDIT: Okay, what happened to the FSO 4 user?

edited on: 09-06-05 11:03

phreak

2005-09-06 17:05

developer   ~0003274

deleted from the looks of it.

Goober5000

2005-09-06 18:55

administrator   ~0003280

Reassigning.

emperor

2005-10-02 00:06

reporter   ~0003491

Poke.

I'd definitely like to see this resolved, as it's interfering with my beam bombers. See this thread...
http://dynamic.gamespy.com/~freespace/forums/showthread.php?s=&threadid=35539

We'd have to work out how this would affect weapons like the Trebuchet that have the Huge flag but are still extremely effective against smaller vessels. Maybe have its valid targets include bombers when it has the 'bomber+' flag.

phreak

2008-10-09 21:13

developer   ~0009917

I will work on this once 3.6.10 is not released. This is more of a bug and not a feature since the AI primary weapon choice is does not honor the "huge" (and probably not the "bomber+" flag either). I think it should require the smart AI primary selection flag in ai_profiles.tbl

Zacam

2010-02-13 21:48

administrator   ~0011666

Commit 5894 introduces "Captital+" flag for weapons that the AI actually honors, in that it will not utilize that weapon against not SIF_BIG_SHIP or SIF_HUGE_SHIP targets.

Do we want to consider that a resolution for this issue?

The E mentions though (and a good point at that) that Capital+ really only affects the Targeting usage of Primaries, while "Huge" affects targeting and damage for Secondaries.

Idea (From The E): Leave "huge" alone, extend capital+ to cover primaries and secondaries, and introduce a new flag that will _only_ govern the damage-specific things."huge" would then effectively be turned into "capital+" | "new flag"

The_E

2010-10-22 13:35

administrator   ~0012430

Closing. Using "Capital+" and "Huge" together solves this.

Issue History

Date Modified Username Field Change
2004-04-25 20:35 SadisticSid New Issue
2004-04-26 19:07 Goober5000 Note Added: 0000829
2004-04-28 16:59 phreak Note Added: 0000841
2004-04-29 10:02 SadisticSid Note Added: 0000846
2004-04-29 13:54 Goober5000 Status new => assigned
2004-04-29 13:54 Goober5000 Assigned To => Goober5000
2004-04-30 04:08 Goober5000 Priority normal => immediate
2005-03-15 01:02 Goober5000 Note Added: 0001936
2005-03-15 01:02 Goober5000 Assigned To Goober5000 => phreak
2005-03-15 01:37 phreak Note Added: 0001949
2005-06-20 15:09 phreak Note Added: 0002664
2005-08-30 15:04 phreak Note Added: 0003203
2005-08-30 15:05 phreak Note Edited: 0003203
2005-09-06 15:03 Goober5000 Note Added: 0003273
2005-09-06 15:03 Goober5000 Note Edited: 0003273
2005-09-06 17:05 phreak Note Added: 0003274
2005-09-06 18:55 Goober5000 Note Added: 0003280
2005-09-06 18:55 Goober5000 Assigned To phreak => FSO 4
2005-09-06 18:55 Goober5000 Priority immediate => low
2005-10-02 00:06 emperor Note Added: 0003491
2008-10-09 21:13 phreak Note Added: 0009917
2009-01-20 05:20 Goober5000 Assigned To FSO 4 => phreak
2010-02-13 21:48 Zacam Note Added: 0011666
2010-02-13 21:48 Zacam Assigned To phreak => Zacam
2010-10-22 13:35 The_E Note Added: 0012430
2010-10-22 13:36 The_E Status assigned => closed
2010-10-22 13:36 The_E Resolution open => fixed