Commit Graph
123 Commits
Author SHA1 Message Date
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
taylor f3f859d28e be sure to to reset ok_to_fire between weapon checks to make sure we don't count something by mistake 2006-06-01 04:40:41 +00:00
Goober5000 3d73663123 some cosmetic changes in preparation for bay arrival/departure code
--Goober5000
2006-05-31 03:05:43 +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
taylor f3f0bf9a8b minor safety check 2006-05-27 17:22:04 +00:00
Goober5000 4448ef1c47 fix for Mantis #755, plus make the missionlog #defines uniform
--Goober5000
2006-05-20 02:03:01 +00:00
taylor 61f1a81ed7 fix bug where anything that wasn't a ship was considered a non-goal 2006-05-13 07:01:17 +00:00
Goober5000 7e41877b7b proper capitalization according to Volition 2006-04-20 06:32:30 +00:00
taylor ab7f22e9d8 Grrr! That was still stupid. Just going to revert it to retail and work out that bug it was supposed to fix at a later time. 2006-04-14 21:13:31 +00:00
taylor 4fb6d6ba91 I might have blamed this on sleep, if it wasn't a bold faced lie. ;)
- another part of the turret untargetting target bug
2006-04-14 18:36:11 +00:00
taylor af8ee7a283 bah! forgot to add a blasted = on that check 2006-04-13 12:12:27 +00:00
karajorma fd2346e37e Changes to support the new Enable/Disable-Builtin-Messages SEXP 2006-04-05 16:14:04 +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
wmcoolmon d95d6165b5 New subobject animation stuff and Lua functions. 2006-03-24 07:38:36 +00:00
Goober5000 52809741c6 fix taylor's fix :p
--Goober5000
2006-03-21 02:50:59 +00:00
taylor a12024d715 fix target eval check for weapons so that friendly ships will stop shooting at friendly bombs 2006-03-21 00:08:18 +00:00
taylor b35e8870b2 change wording to ease Goober's ulcer. ;) 2006-03-20 06:25:19 +00:00
taylor 7233ba1db8 add ai_profiles flag to get rid of limit on minimum speed a docked ship can move
(not going to Int3() here from < 0.1 speed by default, a support ship actually hit it)
2006-03-20 06:19:04 +00:00
Goober5000 b52b6b1e00 spelling 2006-02-25 21:47:19 +00:00
Goober5000 c72eb31dd5 some tweaks to the ignore code 2006-02-25 19:03:39 +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
Goober5000 bb95da72a8 restore original ignore behavior and remove soon-to-be-obsolete ai-chase-any-except
--Goober5000
2006-02-19 22:00:10 +00:00
Goober5000 f665e3928b rearrange some turret code to be more like retail
--Goober5000
2006-02-19 07:20:43 +00:00
Goober5000 ef13357373 enabled modular tables for ai_profiles and added the default table to def_files
--Goober5000
2006-02-13 04:56:58 +00:00
Goober5000 a9642a2a86 more tweaks, plus clarification of checks for the existence of files
--Goober5000
2006-02-13 00:20:46 +00:00
Goober5000 738875f021 replace quick sort with insertion sort in many places
--Goober5000
2006-01-27 06:21:10 +00:00
taylor 92c2d3724f quick and ugly hack to get aigoal sorting working on Windows again (temporary, should be replaced by better and permanent sorting function) 2006-01-25 22:51:07 +00:00
taylor b4c50e32d7 another NaN/div-by-0 bug 2006-01-23 13:51:11 +00:00
taylor 18d6b377eb add fixes for capships that hit waypoints and just spin around
try and fix a big ship guard NaN error that is the result of an incredibly small forward speed value
2006-01-22 22:41:16 +00:00
taylor 4ed9dd0b2b more class type name fixage (maybe an AltName: line for objettypes.tbl in the future?)
if a ship has no class_type in ai_chase() then assume it's ok to chase, but log it in debug
  (uncomment Int3() here after this has been tested a little more)
2006-01-22 14:09:01 +00:00
taylor c39585a262 handle NULL ptr ref in debug message (needs to be reconsidered as to whether the function should actually return here or not) 2006-01-22 01:28:06 +00:00
taylor 0d515b98d4 long way to go for a simple div-by-0 fix 2006-01-21 02:43:23 +00:00
phreak 4e77c96a9a Make sure the rearm eta isn't recalcuated until the player docks again with a support ship 2006-01-17 03:48:25 +00:00
wmcoolmon abf75dd133 Various warning fixes, scripting globals fix; added "plr" and "slf" global variables for in-game hooks; various lua functions; GCC fixes for scripting. 2006-01-16 11:02:23 +00:00
wmcoolmon eba6d1dff9 Special shockwave and moving capship bugfix, (even more) scripting stuff, slight rearrangement of level management functions to facilitate scripting access. 2006-01-14 19:54:55 +00:00
Goober5000 4d5a477f71 übercommit of custom IFF stuff :) 2006-01-13 03:31:20 +00:00
wmcoolmon 82d4e2aa4e Somewhat better turret comments 2006-01-11 21:15:15 +00:00
taylor 9356140569 allow for an equals value in qsort() comparison function, will hopefully fix Enif station bug and not cause any new problems 2006-01-11 05:42:17 +00:00
phreak 0c663d84ee fix compile warnings. 2006-01-09 04:52:34 +00:00
wmcoolmon 07fb5808d6 turret-target-order SEXPs, ship thrusters 2006-01-06 04:18:55 +00:00
wmcoolmon 246cfcfa65 Codebase commit, most notably including objecttypes.tbl 2005-12-29 08:08:42 +00:00
taylor 335e3b5adf GCC knows that fix == int so it hates the utility functions here, for sanity sake just rename them to type specific to avoid rampant casting 2005-12-22 04:32:44 +00:00
taylor 4fd616b2c5 cleanup some debug log messages:
note that a nprintf() with "Warning" or "General" is basically the same thing as mprintf()
  make sure that OpenAL init failures always get to the debug log
2005-12-06 03:17:48 +00:00
taylor 9d5d9b20a7 add a couple of Assert()'s that it doesn't otherwise check for 2005-12-06 03:15:47 +00:00
wmcoolmon 15b30e3177 Final commit of codebase 2005-12-04 19:07:49 +00:00
Goober5000 28a7c73be0 bah, forgot a colon
--Goober5000
2005-11-24 09:08:44 +00:00
Goober5000 c3bfdce5f4 * cleaned up mission_do_departure
* fixed a hidden crash (array index being -1; would only
be triggered for ships w/o subspace drives under certain conditions)
  * removed finding a new fighterbay target because it might screw up missions
  * improved clarity, code flow, and readability :)
* added custom AI flag for disabling warpouts if navigation subsystem fails
--Goober5000
2005-11-24 08:46:11 +00:00