[Gcblue-commits] gcb_wx/scripts AI.py,1.7,1.8
Status: Alpha
Brought to you by:
ddcforge
From: <ddc...@us...> - 2004-01-09 21:48:46
|
Update of /cvsroot/gcblue/gcb_wx/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv28369/scripts Modified Files: AI.py Log Message: Index: AI.py =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/scripts/AI.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** AI.py 8 Jan 2004 23:54:27 -0000 1.7 --- AI.py 9 Jan 2004 21:48:40 -0000 1.8 *************** *** 114,118 **** ! # Run from hostile missiles (will run from antiship missiles too!) # return 1 if evading, 0 otherwise def EvadeMissiles(UI): --- 114,118 ---- ! # Run from hostile missiles (will run from supersonic antiship missiles too!) # return 1 if evading, 0 otherwise def EvadeMissiles(UI): *************** *** 128,133 **** for n in range(0, nMissiles): missile_track = track_list.GetTrack(n) track_range = UI.GetRangeToTrack(missile_track) ! if (track_range < closest_range) or (~foundThreat): int_heading = UI.GetInterceptHeadingToTrack(missile_track) heading_diff = RadianHeadingDiff(int_heading, UI.GetHeadingRad()) --- 128,135 ---- for n in range(0, nMissiles): missile_track = track_list.GetTrack(n) + hasAAMspeed = (missile_track.Speed > 600) # ignore subsonic missiles track_range = UI.GetRangeToTrack(missile_track) ! isClosestThreat = (track_range < closest_range) or (~foundThreat) ! if hasAAMspeed and isClosestThreat: int_heading = UI.GetInterceptHeadingToTrack(missile_track) heading_diff = RadianHeadingDiff(int_heading, UI.GetHeadingRad()) |