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
Goober5000
6e4021888d
add apostrophes to contractions, lol
2009-04-10 07:49:12 +00:00
Goober5000
09d116f667
prevent form-on-wing goals from overriding everything else
...
this should fix the AI bug that revision 2170 applied to all wings (not just starting wings)
this should also fix the bug where Alpha wing couldn't be issued orders via sexp, even in retail
2008-11-24 00:01:00 +00:00
Goober5000
0ae4939981
re-fix WMC's bug to be compatible with expected behavior
2008-09-14 19:29:07 +00:00
WMCoolmon
fd7cbf5750
- Fixed bug involving too many goals being assigned to a ship from wing orders
2008-08-30 10:37:51 +00:00
karajorma
7452c98564
Allow priorities higher than 89 for orders in FRED. Clean up unused parameters from several AI methods.
2008-05-26 13:29:53 +00:00
WMCoolmon
6bdf192fec
Scripting:
...
- Add On Mission Start, On Mission End hooks; swap Warpin and Warpout to Warp In and Warp Out
- Safer handle helper structs
- Improved math, eg matrix interpolation and vector multiply/divide
- Filesystem read AND write support
- Initial scripting orders support
- Better waypoints support
- Assorted requested scripting functions
bmpman:
- Safer bm_get_filename
cfile:
- Support for RW, rather than just R or W, file modes.
model:
- Safer texture_info struct. Taylor, I know we talked about this, but I realized that it was just a lot better for what it does and it shouldn't be too much trouble to replace with the new system (operations tend to be much more concise and clear). Let me know if any unexpected difficulties arise.
2008-05-25 22:52:05 +00:00
WMCoolmon
7e7d77c8d7
*Drumroll* The official scripting system commit to the stable branch!
2008-03-15 08:56:43 +00:00
Goober5000
3c3416fa3b
the great big duplicate model removal commit
2007-02-20 04:20:38 +00:00
taylor
717fd6a71e
add back special "var" setting for flag_def_list and convert some of the lists to use it (more on the way)
2007-02-12 00:24:33 +00:00
Goober5000
ee6ed23e3e
prevent the AI from falling into the black hole of disarming a turretless ship
2007-02-10 04:49:23 +00:00
taylor
319d5c86f8
add some needed wing leader checks to prevent Assert()'s and out-of-bounds problems when the leader is dead/dying (Mantis bug #1134 )
2006-11-15 00:33:16 +00:00
Goober5000
1cb738f6da
--prevent the ai from "forgetting" that it's attacking a wing (fix for Mantis #1131 )
...
--move AI_CHASE_WING goal check so that it will properly short-circuit when appropriate (discussed in the same bug)
2006-11-06 03:38:32 +00:00
taylor
f09c7e2d03
fix things that strict compiling balked at (from compiling with -ansi and -pedantic)
2006-09-08 06:14:44 +00:00
taylor
c85e077369
make sure FORM_ON_WING goal is valid since it works for ships other than player now
2006-06-01 04:47:23 +00:00
Goober5000
baa5097bca
fix compiler warning
...
--Goober5000
2006-05-31 02:08:22 +00:00
Goober5000
1188449341
removed small redundancy
...
--Goober5000
2006-05-29 19:14:30 +00:00
Goober5000
4448ef1c47
fix for Mantis #755 , plus make the missionlog #defines uniform
...
--Goober5000
2006-05-20 02:03:01 +00:00
Goober5000
7e41877b7b
proper capitalization according to Volition
2006-04-20 06:32:30 +00:00
taylor
065924508b
the previous changes should prevent these things from happening, but drop in some more Assert()'s anyway
2006-03-25 22:38:15 +00:00
taylor
01d9f454ee
minor cleanup
...
address numerous out-of-bounds issues
add some better error checking and Assert()'s around
2006-03-25 10:38:44 +00:00
Goober5000
7efe44ef55
fixed several more things in the new ignore code
...
--Goober5000
2006-02-20 07:59:26 +00:00
Goober5000
c27ccf94c4
added ai-ignore-new which hopefully should fix the ignore bug
...
--Goober5000
2006-02-20 02:13:08 +00:00