Goober5000
a98fd2cb54
use the new 'mission_check_ship_yet_to_arrive' function when appropriate
2019-06-24 02:11:35 -04:00
niffiwan
760b601a95
Null wp_list on setting order, same as for sexps
...
Making wp_list null lets ai_mission_goal_achievable reset the waypoints
list correctly, otherwise it thinks the waypoints are ok when in fact
something has invalidated them
2019-05-06 18:30:38 +10:00
CasparKielwein
df7c91f3e7
remove some unused functions in ai code.
...
There is a lot of dead code left, but my IDE failds on the 15k file.
2018-12-22 20:10:56 +01:00
Goober5000
c667668c17
don't override play-dead goals
2018-09-27 01:33:44 -04:00
Goober5000
8d4643bc7a
add ai-play-dead-persistent
...
This adds a new AI goal which is equivalent to play-dead except that it "sticks". It doesn't clear the goal list
so it will continue playing dead until the goal is removed or another goal with a higher priority is added.
2018-09-27 00:48:57 -04:00
Jenna Trassa
bf37a36e89
strings.tbl translation adjustments
2018-07-14 14:18:52 +02:00
asarium
eeed22b91a
Enable misc-unused-parameters
...
clang-tidy was used for fixing the warnings. It is not clear if this is
actually an improvement so this may still be disabled later.
2018-04-25 11:57:55 +02:00
asarium
e28ebc2a6c
Enable and fix misc-suspicious-string-compare check
2018-04-25 11:13:19 +02:00
Fabian Woltermann
47bd990bca
Handle ships removed from play via ship-vanish correctly in ai goal processing.
2017-06-05 15:00:10 +02:00
Goober5000
03418796ab
missed this flag conversion
2016-09-05 02:51:50 -04:00
Goober5000
b93a3902dc
the actual guts of the chase-ship-class goal
2016-09-05 02:35:24 -04:00
Goober5000
c14af70287
all the goal infrastructure for chase-ship-class except for the actual chase logic
2016-09-05 02:35:23 -04:00
Fabian Woltermann
d53074c9ea
Merge pull request #931 from Goober5000/minor_aicode_tweaks
...
minor tweaks and adjustments to AI goal code
2016-09-05 08:17:13 +02:00
Goober5000
1d3ff1b6c0
minor tweaks and adjustments to AI goal code
...
A few things I noticed while working on ai-chase-ship-class, split out into a separate PR. Some code is reordered, some is cleaned up; nothing too extensive. The most notable changes are a) the modification of the Ai_goal_text function to work on the AI_GOAL_X #define directly rather than unnecessarily calculate the bit; b) changing the HUD text of "fly to ship" to "rendezvous with" plus the ship name; c) adding a Warning in ai_update_goal_references; and d) changing ship_name to target_name in ship_return_orders for clarity
2016-09-02 23:25:46 -04:00
Fabian Woltermann
99a59efdbf
AI Goal flags converted
2016-08-31 15:30:49 +02:00
Fabian Woltermann
add8662737
Converts AI Info flags
2016-08-22 16:39:42 +02:00
Fabian Woltermann
98f72f9378
Finishes converting the remaining ship-related flags ( #843 )
2016-08-17 05:49:40 -07:00
Fabian Woltermann
770fce8de5
Bitset flags -- take 2 ( #775 )
...
This introduces a new mechanism for handling bit flags. Instead of using an int (or two, or three) to write bits into, this uses the std::bitset in a wrapper class that accepts an enum class as input. This means that certain classes of errors we've had a few of in the engine, where a coder used the wrong set of flags or checked them against the wrong variable (SF_STEALTH vs SIF_STEALTH, for example) can now be detected at a compiler level rather than not at all.
2016-08-12 16:13:50 -07:00
Goober5000
bd3cd7eb18
Merge pull request #195 from Echelon9/fix/sort-uniq-includes
...
Review and refactor #include's
2015-08-19 00:05:02 -04:00
Echelon9
8051bac868
Fix: ai/aigoals.cpp:203:48: warning: declaration of ‘ai_goal’ shadows a global declaration [-Wshadow]
2015-07-06 22:15:18 +10:00
Echelon9
b38e153861
Remove redundant parameter to prioritize_goals().
2015-07-01 23:07:17 +10:00
Echelon9
c5493bb480
Scripted sort and uniq on (internal) project includes. Improves search time and as a by product removed a number of duplicative includes.
2015-06-22 20:24:30 +10:00
asarium
e9b9797b6e
Fix usage of negative index
...
I have no idea why this didn't cause any issues earlier...
2015-05-03 21:27:23 +02:00
niffiwan
471cf4c988
Fix Coverity 1093565: Negative array index read
...
Add an assertion to catch any callers that haven't correctly set
the target_name. Also fix a minor typo in the comments
2015-05-03 20:31:16 +10:00
Goober5000
93c7775109
stupid missing parenthesis >.>
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11098 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-04 13:45:44 +10:00
Goober5000
e15cd38a88
Between the Ashes HPC request: extend ai-chase-same-team to ai-disarm, ai-disable, and ai-destroy-subsys too
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11097 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-04 13:45:44 +10:00
Goober5000
f7e3bef9b7
Between the Ashes HPC request: allow ships to attack others on the same team
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11094 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-04 13:45:43 +10:00
Goober5000
df73bacb9e
Mantis #3004 : standardize checks for whether ships can depart to docking bays, and whether departure goals are achievable, and whether a ship can be commanded to depart; also fix the default behavior if a ship attempts to warp out but is unable to
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10428 387891d4-d844-0410-90c0-e4c51a9137d3
2014-02-20 18:27:34 +10:00
Goober5000
4bd10888ff
make localization more robust with additional checks on string length, more consting, and stronger typing and make XSTR const, since we don't want to modify the strings it translates and then CONST ALL THE THINGS
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9809 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-26 18:51:34 +10:00
Echelon9
fb33fe020b
Resolve a series of Xcode (LLVM compiler) warnings
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9735 387891d4-d844-0410-90c0-e4c51a9137d3
2013-08-06 22:55:14 +10:00
Goober5000
107a61ea13
for Mantis #2097 , straighten out the departure code so that goals to warp cause warping, and comm departures use whatever departure method is specified
2013-01-13 03:03:25 +00:00
Goober5000
91d30c608a
fix an old Volition bug -- properly mark a goal as not achievable if a ship departs, not only if it's destroyed
...
and throw in self-destructed for good measure, per Admiral MS
2012-10-29 20:48:06 +00:00
Goober5000
1adc301bde
prevent ships with mismatched models and tables from causing crashes later on (Mantis #2689 )
2012-07-15 22:54:47 +00:00
Goober5000
1d0e73adcf
in the interest of avoiding mysterious and subtle differences in AI behavior, restore retail behavior where:
...
a) the player's wing forms on him at mission start
b) wings in the Starting_wings list will form on the player if they arrive later in the mission
c) no other wing automatically forms on its leader
2012-07-09 05:29:43 +00:00
Goober5000
b146b10403
MOAR const-correctness!
2012-03-08 08:12:56 +00:00
chief1983
46d1ff7d7f
Fixes #2578 - Change the < in these checks against NAME_LENGTH to <=.
2012-01-23 01:22:05 +00:00
Echelon9
3ec5e94ff2
LLVM Warning fix: Remove this dead code to ai_shipname
2012-01-21 06:18:22 +00:00
Echelon9
19ae6528e0
Cases of commented out Int3() indicate areas of old, redundant code.
2011-11-17 11:07:53 +00:00
Goober5000
3ce69f150a
waypoints and waypoint paths now have dynamic limits
2011-08-30 03:35:42 +00:00
The_E
c684705e01
This makes the "Form on Wing" AI order accessible to FREDers as an AI goal.
2011-05-08 11:17:34 +00:00
Goober5000
315bd423dc
rename subsystem type fields so as to better distinguish them
...
some consistency checks
add "no aggregate" flag to exclude a subsystem from aggregate hitpoint calculations
2011-02-14 08:33:23 +00:00
chief1983
cbe541598e
IssMneur's autopilot fixes (hooray\!)
2010-07-13 22:45:54 +00:00
karajorma
e12b4c3840
Remove "disarm or disable cause global ai goal effects:" from AI_Profiles as promised and replace it with a new object types table setting.
2010-03-01 15:59:47 +00:00
Goober5000
a679a8f597
remove ai_get_subsystem_type as it's redundant
...
clean up all sorts of subsystem stuff in sexp.cpp (in particular, use ship_get_subsys when possible)
weapon / sensor subsystem types should work for "weapon" and "sensor", not "weapons" and "sensors" to be consistent
2009-12-06 10:06:51 +00:00
Wanderer
2ee628829a
fixes to various things listed in the prefast log
2009-09-11 15:52:18 +00:00
karajorma
f848621a1b
Ugly hack for the player ordered disarm/disable issue WCS have been experiencing.
2009-07-25 14:58:25 +00:00
portej05
719825f80d
The big CVS comment removal. This chops approx. 3.5mb off a full checkout.
...
I've tested this through compiling and through hand checking.
Normalises line endings in ALL files to \n.
2009-06-20 08:08:20 +00:00
portej05
da4d3ce2af
remove-goals sexp commit. This has received testing, however it hasn't been pushed to the limit.
...
http://www.hard-light.net/forums/index.php/topic,63249.0.html
2009-06-20 07:24:46 +00:00
Wanderer
943969aac1
merge from wanderer branch - fix inconsistencies with subobj_name and name
2009-05-21 08:19:51 +00:00
karajorma
a4e623db23
Portej05's preFAST warning fixes.
2009-05-17 11:50:48 +00:00