View Issue Details

IDProjectCategoryView StatusLast Update
0000705FSSCPgameplaypublic2006-01-17 16:48
Reporterthesource2 Assigned ToWMCoolmon  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0000705: Ships move when must not
DescriptionIn training 6 Deimos not just fired on me with turrets but moved around me with it's maximum speed. I think that's because you forgot to make some distinction in AI: fighter atacking fighter must move, warship atacking warship must move, but warship ordered to atack fighter must only fire turrets, but not to start moving!
TagsNo tags attached.

Activities

phreak

2006-01-14 01:21

developer   ~0004258

I narrowed it down to the new objecttypes.tbl feature and how cap-cap battles are handled. We need a ship type specified as "non-broadsideable" (is that a word?), or something similar that would prevent the attacking ship to try and get into position, or possibly move toward it and stop once it gets in range of its weapons.

phreak

2006-01-14 01:22

developer   ~0004259

Assigning to WMC since thats his can of worms

WMCoolmon

2006-01-14 09:19

developer   ~0004271

Were you able to figure out where in the code the problem occurs?

phreak

2006-01-14 09:32

developer   ~0004272

ai_chase() calls ai_cruiser_chase() since the ai class is setup to broadside

in ai_cruiser_chase() its that second block of code you commented out

if (!(esip->flags & (SIF_BIG_SHIP | SIF_HUGE_SHIP)))
{
    // Int3(); // Hmm, we're big and we're pursuing something other than a big ship?
    aip->mode = AIM_NONE;
    return;
}

WMCoolmon

2006-01-14 12:38

developer   ~0004285

Damn, I remember that. I was hoping I wouldn't have to deal with something like that because it means I have to build a list of ship types and then convert those to ints when parsing the code, an altogether inefficient affair.

Oh well.

WMCoolmon

2006-01-14 19:19

developer   ~0004289

I *believe* I have fixed this, it'll go in when I next commit aicode.cpp

thesource2

2006-01-17 08:36

reporter   ~0004334

Yes, it is fixed

WMCoolmon

2006-01-17 16:48

developer   ~0004346

Nifty. :)

Issue History

Date Modified Username Field Change
2006-01-12 09:15 thesource2 New Issue
2006-01-14 01:21 phreak Note Added: 0004258
2006-01-14 01:22 phreak Note Added: 0004259
2006-01-14 01:22 phreak Assigned To => WMCoolmon
2006-01-14 01:22 phreak Severity major => minor
2006-01-14 01:22 phreak Status new => assigned
2006-01-14 09:19 WMCoolmon Note Added: 0004271
2006-01-14 09:32 phreak Note Added: 0004272
2006-01-14 12:38 WMCoolmon Note Added: 0004285
2006-01-14 19:19 WMCoolmon Note Added: 0004289
2006-01-17 08:36 thesource2 Note Added: 0004334
2006-01-17 16:48 WMCoolmon Status assigned => resolved
2006-01-17 16:48 WMCoolmon Resolution open => fixed
2006-01-17 16:48 WMCoolmon Note Added: 0004346