Commit Graph

115 Commits

Author SHA1 Message Date
Allanis
ac04faacea [Change] Removed all non dt timers from stuff that should be dt based. 2014-04-15 21:08:45 +01:00
Allanis
40aa774ff7 [Fix] Properly fixed the valgrind issues without causing more. 2014-03-10 16:48:42 +00:00
Allanis
cc3955c445 [Fix] Should remove the majority of Valgrind errors. 2014-03-10 16:20:56 +00:00
Allanis
0817a156b9 [Fix] Avoid possible usage of uninitialized data. 2014-03-10 15:01:07 +00:00
Allanis
3540ba0724 [Add] Gave AI customizable bribe messages. 2014-02-01 22:09:49 +00:00
Allanis
37d61803d7 [Add] Added math lib to basic llua. 2014-01-25 19:29:42 +00:00
Allanis
63e2bb55b0 [Add] Implemented bribing. 2014-01-24 21:57:01 +00:00
Allanis
84b20c9bd3 [Fix] Fixed ai.relvel(). Also introduced dot product function. 2014-01-22 17:31:36 +00:00
Allanis
19292edd68 [Change] Improved AI's secondary weapon handling. 2014-01-22 15:26:42 +00:00
Allanis
5518f0c390 [Change] AI now takes into account relative velocities. 2014-01-06 19:49:43 +00:00
Allanis
5a0f5ff145 [Fix] Corrected selecting hyperspace in map not updating window. 2014-01-06 18:56:24 +00:00
Allanis
239f42bb85 [Remove] Removed the disgusting TYPE_PTR from ai. 2014-01-05 21:32:25 +00:00
Allanis
dc3bf1292c [Add] Added escort control ai Lua bindings. 2013-12-31 06:08:01 +00:00
Allanis
3a87ce36ff [Fix] Fixed some escort ai issues, also allowed for fighters to return to ship. 2013-12-31 04:28:05 +00:00
Allanis
b26a1ca968 [Fix] Fixed god damn ai! 2013-12-31 03:07:05 +00:00
Allanis
febcfdbbb5 [Remove] Eradicated some useless target parameters. 2013-12-29 22:46:12 +00:00
Allanis
8b0fbb8772 [Change] Moving to target on pilot structure. 2013-12-29 22:13:28 +00:00
Allanis
75e438a98f [Fix] Fixed segfaults with new ai system. 2013-12-28 22:50:48 +00:00
Allanis
7db6ad52f9 [Add] Allow for passing parameters to pilot ai on creation. 2013-12-28 16:49:56 +00:00
Allanis
66028742b5 [Add] ai.shipclass() also added a but more documentation to ai. 2013-12-15 01:16:52 +00:00
Allanis
8ef7082c84 [Add] Gave AI some memory. 2013-12-15 00:30:50 +00:00
Allanis
b9f97f321b [Add] Implemented pilot memory tables. 2013-12-14 15:09:34 +00:00
Allanis
25660ff7d1 [Change] Everything now conforms to last nights cleanups. 2013-12-09 00:48:32 +00:00
Allanis
da4b261de7 [Change] Stop firing before starting to jump into hyperspace. 2013-12-06 20:59:24 +00:00
Allanis
3fc6514861 [Fix] Bug in weapon system timers. 2013-11-26 15:36:27 +00:00
Allanis
67cd35faa5 [Add] Function to get the player, for usage in mission stuff. 2013-11-19 21:24:19 +00:00
Allanis
5a87b2da77 [Change] MAJOR AI rehaul, split all the lua stuff into generic templates.
[Add] Bomber attack routines.
[Fix] Bug with AI forgetting about you if another enemy attacks.
2013-11-10 05:03:59 +00:00
Allanis
0d569ecc54 [Add] Improved ai.secondary to actually take ammo into account. 2013-11-09 05:49:03 +00:00
Allanis
29ba80afba [Change] control_rate is now defined as a float. 2013-11-09 00:02:06 +00:00
Allanis
673b83ea6a [Add] More doxygen along with some slight code cleaup. 2013-10-11 23:02:39 +01:00
Allanis
ca4c910ec8 [Add] Preliminary doxygen support. 2013-08-31 14:19:36 +01:00
Allanis
de91ebd91f [Fix] Bug concerning not being able to shoot seeker weapons. 2013-08-30 17:54:02 +01:00
Allanis
01b3f2f77b [Change] AI now use more weapon types and uses them more wisely.
[Add] Draktharr gets mace rockets.
2013-08-28 15:08:22 +01:00
Allanis
5ddb5fff94 [Fix] Bug introduced by assert in WARN/ERR change. 2013-08-22 18:22:18 +01:00
Allanis
aade673567 [Fix] Segfault when popping a task without a next task. 2013-08-15 13:36:25 +01:00
Allanis
719bb753a2 [Change] Improved enemy and turret ai, they hit a lot now!
-- also improved the global attack() ai.
2013-08-14 16:48:32 +01:00
Allanis
d4fe47f184 [Fix] ai.brake. 2013-08-14 10:50:50 +01:00
Allanis
284823ce25 [Add] Minor sanity checks. 2013-08-12 09:26:59 +01:00
Allanis
b9c1f021b2 [Change] ai.exists() is more lenient with bad parameters. ;) 2013-08-10 18:04:39 +01:00
Allanis
e10841653d [Fix] Improved sanity on some AI functions. 2013-08-10 16:11:54 +01:00
Allanis
562ba56aab [Change] ai.exists() should return false if pilot is dead. 2013-08-10 12:42:23 +01:00
Allanis
82b210e6cc [Change] Sanitized the pilot_get* a bit. 2013-08-03 15:45:56 +01:00
Allanis
2d1040b703 [Fix] Stupid me, last commit I was checking for a prefix instead of suffix. :/ 2013-07-11 16:01:55 +01:00
Allanis
4c1ee89ffb [Add] Fancy new "cloud" generator. This needs some heavy tweaking/cleanup. 2013-07-10 22:58:31 +01:00
Allanis
b8bafb4700 [Add] More planet functions for ai: ai.getrndplanet() and ai.getlandplanet(). 2013-07-10 19:30:58 +01:00
Allanis
2ec09b0ee3 [Add] ai.haslockon() to check for locked on missiles. 2013-07-10 18:04:36 +01:00
Allanis
a580cdeed3 [Change] ai.dist() now accepts pilot id's as parameter. 2013-07-07 19:11:14 +01:00
Allanis
71fdcffd07 [Add] Ai now calculates optimal distance when shooting. 2013-07-06 16:28:00 +01:00
Allanis
19e3e818a4 [Change] Renamed pilots and mpilots to pilot_nstack and pilot_mstack. 2013-07-04 13:33:38 +01:00
Allanis
05fe285d87 [Change] Now load the basic lua stuff. 2013-06-30 17:17:09 +01:00