You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -109,7 +109,7 @@ OPTION(FSO_USE_OPENALSOFT "Download and build OpenAL Soft instead of using the s
109
109
110
110
OPTION(FSO_FATAL_WARNINGS"Determines if warnings in the build are considered fatal errors, primarily used for CI"OFF)
111
111
112
-
SET(FSO_FREESPACE_PATH "${CMAKE_INSTALL_PREFIX}"CACHEFILEPATH"The path of the FreeSpace directory you want to use. Please note that you will have to change CMAKE_INSTALL_PREFIX if you change this at some point.")
112
+
SET(FSO_FREESPACE_PATH "${CMAKE_INSTALL_PREFIX}"CACHEPATH"The path of the FreeSpace directory you want to use. Please note that you will have to change CMAKE_INSTALL_PREFIX if you change this at some point.")
113
113
114
114
SET(FSO_RUN_ARGUMENTS ""CACHESTRING"Additional arguments passed to a generated executable when run with the generated build files.")
Copy file name to clipboardExpand all lines: code/ai/ai_flags.h
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,12 +44,15 @@ namespace AI {
44
44
Goal_on_hold, // when set, this goal cannot currently be satisfied, although it could be in the future
45
45
Subsys_needs_fixup, // when set, the subsystem index (for a destroy subsystem goal) is invalid and must be gotten from the subsys name stored in docker.name field!!
46
46
Goal_override, // paired with ai_goal_type::DYNAMIC to mean this goal overrides any other goal
47
+
Want_override, // a goal should set this flag if Goal_override should be assigned when the goal is achievable
47
48
Purge, // purge this goal next time we process
48
-
Goals_purged, // this goal has already caused other goals to get purged
49
+
Purge_when_new_goal_added, // this goal is perpetual until any other goal is added, at which time it sets its own Purge flag
50
+
Goals_purged, // this goal has already caused other goals to get purged (because it is something like ai-disarm that renders other goals invalid)
49
51
Depart_sound_played,// Goober5000 - replacement for AL's hack ;)
50
52
Target_own_team, // this attack goal is allowed to target friendlies
51
53
Afterburn_hard, // afterburn as hard as possible to the goal
52
54
Waypoints_in_reverse, // decrement instead of increment
55
+
Clear_all_goals_first, // this goal wipes all goals (including itself) before it runs (handled separately, and in a different place, from purging invalid goals)
mprintf(("Warning: $default form-on-wing priority: should be > 0 (read %d). Value will not be used.\n", priority));
734
+
}
735
+
}
736
+
737
+
set_flag(profile, "$do not clear goals when running form-on-wing:", AI::Profile_Flags::Do_not_clear_goals_when_running_form_on_wing);
738
+
739
+
set_flag(profile, "$do not clear goals when running stay-still:", AI::Profile_Flags::Do_not_clear_goals_when_running_stay_still);
740
+
741
+
set_flag(profile, "$do not set override when assigning form-on-wing:", AI::Profile_Flags::Do_not_set_override_when_assigning_form_on_wing);
742
+
743
+
set_flag(profile, "$purge player-issued form-on-wing after subsequent order:", AI::Profile_Flags::Purge_player_issued_form_on_wing_after_subsequent_order);
744
+
745
+
set_flag(profile, "$cancel future waves of any wing launched from an exited ship:", AI::Profile_Flags::Cancel_future_waves_of_any_wing_launched_from_an_exited_ship);
746
+
724
747
725
748
// end of options ----------------------------------------
Warning(LOCATION, "Ship %s was set to arrive from fighter bay on object %s, but no fighter bay exists on that ships' model (%s).\n", shipp->ship_name, parent_shipp->ship_name, pm->filename);
@@ -13912,9 +13920,8 @@ int ai_find_closest_depart_path(ai_info *aip, polymodel *pm, int allowed_path_ma
13912
13920
float dist, min_dist, min_free_dist;
13913
13921
vec3d *source;
13914
13922
model_path *mp;
13915
-
ship_bay *bay;
13916
13923
13917
-
bay = pm->ship_bay;
13924
+
const auto& bay = pm->ship_bay;
13918
13925
13919
13926
best_free_path = best_path = -1;
13920
13927
min_free_dist = min_dist = 1e20f;
@@ -13991,9 +13998,9 @@ int ai_acquire_depart_path(object *pl_objp, int parent_objnum, int allowed_path_
0 commit comments