Commit Graph

1119 Commits

Author SHA1 Message Date
Allanis
11a96c9b00 [Add] Implemented volatility damage. 2013-12-21 00:45:14 +00:00
Allanis
4771db7276 [Change] Abort hyperspaceing if autonav is aborted during sequence. 2013-12-18 13:53:17 +00:00
Allanis
fe6f5b27ef [Change] Gave afterburn it's own keybind (for joysticks). 2013-12-17 20:12:28 +00:00
Allanis
76b4e35210 [Fix] Check if plural or singular in autonav message. 2013-12-17 11:50:53 +00:00
Allanis
571b801a49 [Add] Added faction metatable to Lua API. 2013-12-16 23:43:31 +00:00
Allanis
751bbbefe8 [Fix] misn.accept() not clearing missions at mission computer. 2013-12-15 17:35:27 +00:00
Allanis
389a7b5746 [Change] Some corrections for rendering weapons with delta time. 2013-12-15 17:30:50 +00:00
Allanis
e8257c2555 [Add] Just a minor comment. 2013-12-15 01:18:12 +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
a782a3c60e [Fix] A few more general fixes. 2013-12-14 23:21:23 +00:00
Allanis
b09adfb92c [Fix] Ton more fixes. F*CK YOU XML! 2013-12-14 23:11:27 +00:00
Allanis
fbdb944f88 [Dunno] A ton of new systems/planets. Added final mission for starting campaign. Fixed a ton of stuff. 2013-12-14 21:30:58 +00:00
Allanis
b9f97f321b [Add] Implemented pilot memory tables. 2013-12-14 15:09:34 +00:00
Allanis
980282f655 [Add] Implementing auto navigation. 2013-12-14 14:58:31 +00:00
Allanis
5cfecb8f81 [Fix] Oops. Accidently gave autonav flag same values as player creation. 2013-12-14 00:46:33 +00:00
Allanis
f26cf7e4e1 [Change] Useing memset for pilot initialization. Also making a start on auto navigation stuff. 2013-12-14 00:45:01 +00:00
Allanis
72781329cb [Add] Actually load the diff library in mission Lua. 2013-12-14 00:11:11 +00:00
Allanis
3ddc034344 [Change] Reduced calls to xmlCleanupParser(), only one for all the loading now. 2013-12-13 03:38:50 +00:00
Allanis
da3cb1dff7 [Fix] Fixed new player inheriting last loaded players faction standings. 2013-12-12 23:22:42 +00:00
Allanis
313e3a7488 [Fix] Fixed diffs getting wiped when loading and some cleanup on planet landing. 2013-12-12 23:14:10 +00:00
Allanis
a2d313a08c [Fix] Fixed pausing game while player is hyperspacing. 2013-12-12 00:44:42 +00:00
Allanis
e4b5f54119 [Add] Check and report failed hunks. 2013-12-12 00:30:51 +00:00
Allanis
27292f1770 [Add] Some commentary so noone else makes the same mistake. 2013-12-11 23:11:22 +00:00
Allanis
4ff23aefc8 [Fix] Fixed diffs not saving correctly. 2013-12-11 23:09:50 +00:00
Allanis
769880c7ac [Remove] Some useless debugs. 2013-12-11 22:59:12 +00:00
Allanis
9a31850ce7 [Add] Actually chance system faction on planet addition/removal. 2013-12-11 22:57:48 +00:00
Allanis
8b1b6e2af0 [Add] Implemented fleet addition and removal! 2013-12-11 22:19:06 +00:00
Allanis
80c45c3067 [Add] Added propper unidiff cleanup. 2013-12-11 20:27:07 +00:00
Allanis
fdd5e930f5 [Add] First release of unidiff - Save changes to the universe in a diff format. 2013-12-10 22:51:00 +00:00
Allanis
b7ddccd309 [Fix] Fixed segmentation fault when system only has one planet with no factions. 2013-12-09 22:18:23 +00:00
Allanis
25660ff7d1 [Change] Everything now conforms to last nights cleanups. 2013-12-09 00:48:32 +00:00
Allanis
5a42e63e4a [Change] Major rewrite of space.c. Let's pray we don't have a ton of bugs. 2013-12-07 22:16:01 +00:00
Allanis
da4b261de7 [Change] Stop firing before starting to jump into hyperspace. 2013-12-06 20:59:24 +00:00
Allanis
4176b20749 [Add] Allow missions to interact with music subsystem. 2013-12-06 20:52:35 +00:00
Allanis
153f99553f [Fix] Some more fine tuning on missions. 2013-12-05 00:40:48 +00:00
Allanis
ad12c52cd0 [Add] Fourth mission in tutorial campaign. Also fixed a few bugs preventing campaign form working. 2013-12-04 22:04:05 +00:00
Allanis
fc1215e4ad [Fix] Fixed a few sound issues that have been around for some time. 2013-12-01 23:42:18 +00:00
Allanis
2f2143742a [Change] Let's also grey out secondary weapon when we are out of ammo. 2013-11-30 22:10:05 +00:00
Allanis
11bbd0854f [Change] Secondary weapon greys out when you can't use it again. 2013-11-29 20:55:41 +00:00
Allanis
66c0ef8d9f [Add] noidle state. 2013-11-28 02:46:45 +00:00
Allanis
8716d14016 [Add] Let's catch SIGTRAP too. 2013-11-26 19:32:27 +00:00
Allanis
58ee934426 [Change] Use SIGTRAP instead of assert for blowing up on errors. 2013-11-26 19:27:34 +00:00
Allanis
2a69789a24 [Add] Automagically give backtraces in DEBUG mode. 2013-11-26 18:23:50 +00:00
Allanis
39c7a4ecd5 [Fix?] Finally think I fixed it. The dialogue was being called when the weapons were being updated (hook on death) and the main_loop was being handled before the loop was destroyed. So another iteration of weapon_update was being run in the middle of the first one, causing a double weapon_destroy to be triggered. Moving the main_loop() in secondary_loop to the top so that the loop condition is run right after the event handling will solve this as an iteration won't be run in between dialogues. 2013-11-26 16:03:17 +00:00
Allanis
96587aac90 [Fix?] I think this might do it? 2013-11-26 15:55:42 +00:00
Allanis
03f20c5a25 [Fix?] Need second check to avoid segfault.. 2013-11-26 15:51:34 +00:00
Allanis
c8fe8e8eb8 [Fix?] Continue in switch case doesn't behave as I thought it did..... 2013-11-26 15:49:34 +00:00
Allanis
29f58fe1e4 [Fix?] FFS! Trying to delete a weapon that doesn't even exist! 2013-11-26 15:43:28 +00:00
Allanis
3fc6514861 [Fix] Bug in weapon system timers. 2013-11-26 15:36:27 +00:00
Allanis
01243e12e3 [Add] Lua logic for traders. 2013-11-26 15:07:41 +00:00
Allanis
6c4983120d [Fix] Segfault when having active missions. 2013-11-25 15:51:24 +00:00
Allanis
05b1d19e55 [Add] Added explosions, only being used on deaths right now. 2013-11-24 21:56:40 +00:00
Allanis
4e054e3cf4 Merge branch 'master' of github.com:Allanis/Lephisto 2013-11-23 22:44:02 +00:00
Allanis
b172453841 [Fix] Slight bug with loading mission variables. 2013-11-23 22:43:31 +00:00
Allanis
f626ac2ac6 [Fix] 32 bit compiler warnings. 2013-11-23 14:18:01 +00:00
Allanis
b831e311e6 [Change] Disable sound and music if fail to initiailize. [Add] Warn if SDL_Mixer version differs. 2013-11-23 02:23:13 +00:00
Allanis
e5d50254d2 [Add] Spit out warning if SDL major/minor versions differ. 2013-11-23 01:50:30 +00:00
Allanis
4eca6815bc [Add] Cute feature, game doesn't pause with death menu. 2013-11-21 12:55:04 +00:00
Allanis
1edbf5b944 [Add] Pilot:setFaction() added to Lua API. 2013-11-20 23:07:42 +00:00
Allanis
4038b56ac6 [Change] misn.timerStart() now uses milliseconds. 2013-11-20 22:57:51 +00:00
Allanis
0c238662c2 [Add] player.getPilot() to Lua API. 2013-11-20 20:56:38 +00:00
Allanis
47a8efa9ee [Add] Pilot:alive() and Pilot:broadcast() to Lua API. 2013-11-19 21:51:04 +00:00
Allanis
7344f88916 [Change] Apparently you can't have two parameters in __add, so made add synonymous (same with __sub). 2013-11-19 21:26:57 +00:00
Allanis
67cd35faa5 [Add] Function to get the player, for usage in mission stuff. 2013-11-19 21:24:19 +00:00
Allanis
4af334e5e4 [Fix] Mission timers should save and load properly now. 2013-11-18 23:30:16 +00:00
Allanis
6ad8d75d2d [Add] Mission timers added. 2013-11-17 14:58:33 +00:00
Allanis
1becd0d68a [Change] When creating a new pilot with pilot.add(), pretend to enter from hyperspace if we have a large distance from planet. 2013-11-17 14:28:03 +00:00
Allanis
87771ab892 [Fix] Pilot boarding hooks fixed. 2013-11-17 05:56:36 +00:00
Allanis
5d17f0e31d [Add] Added Planet:pos() and Vec2:dist() plus much more. 2013-11-17 02:55:03 +00:00
Allanis
ef19939647 [Add] Pilots can now have up to four hooks at any given time. 2013-11-16 20:13:31 +00:00
Allanis
2489949d30 [Fix] Clear velocity when doing Pilot:warp() 2013-11-16 19:10:32 +00:00
Allanis
d2067f9274 [Add] Pilots now use metatables. [Change] Moved Lua pilot stuff into it's own file. 2013-11-16 05:20:55 +00:00
Allanis
2f0d0384c1 [Add] pilot.clear() and pilot.togglespawn() to Lua API. 2013-11-14 18:48:04 +00:00
Allanis
c5cab45910 [Add] First 2D vector support for lua. 2013-11-14 05:01:25 +00:00
Allanis
49c1bd5b4e [Change] Removed dependancy of the spawn_timer on SDL_GetTicks(). 2013-11-13 02:42:23 +00:00
Allanis
a42c21da4e [Add] Pilot "jump" hook. 2013-11-12 00:42:31 +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
9c2e35c472 [Add] pilot_getAmmo. 2013-11-09 00:23:57 +00:00
Allanis
e829e71347 [Change] Made ship_classFromString non-static. 2013-11-09 00:18:41 +00:00
Allanis
29ba80afba [Change] control_rate is now defined as a float. 2013-11-09 00:02:06 +00:00
Allanis
7bf8d63e00 [Add] Commodity land mission checks. 2013-11-07 23:10:01 +00:00
Allanis
4b64b1c185 [Add] Allow for faction logo's to be displayed. 2013-11-05 23:50:09 +00:00
Allanis
4b5f11ae28 [Add] Documented specail effects. 2013-11-01 19:27:18 +00:00
Allanis
9c9a7e07ca [Fix] Remove the outfit when you run out of ammo. 2013-10-30 21:50:44 +00:00
Allanis
18e4d9088c [Fix] Silly mistake in image array scrolling. 2013-10-29 20:44:34 +00:00
Allanis
9699b0ed10 [Add] Players shipyard now follows same style as noraml shipyard. 2013-10-28 14:53:05 +00:00
Allanis
3877884730 [Fix] Image arrays going out of sync. 2013-10-28 14:33:05 +00:00
Allanis
ca292cf791 [Add] Use image array for shipyard and made toolkit_getList apply to image array. 2013-10-27 16:00:23 +00:00
Allanis
ea6df25b0c [Change] outfit_getTech returns outfits instead of names. 2013-10-26 20:52:36 +01:00
Allanis
e955b58817 [Add] Significant inprovements to imageArray, including scrollwheel functionality. 2013-10-26 01:11:02 +01:00
Allanis
88c40143c2 [Add] Added image arrays to toolkit. 2013-10-25 01:51:23 +01:00
Allanis
3ffc858863 [Add] Documented Nebulae stuff. 2013-10-24 00:34:08 +01:00
Allanis
435be644cf [Fix] Few corrections in documentation. 2013-10-22 18:54:30 +01:00
Allanis
6764a1c424 [Add] Documented Player. 2013-10-22 18:42:17 +01:00
Allanis
2533dd816f [Add] Documented opengl stuff. 2013-10-22 18:29:07 +01:00
Allanis
3347a8b7cc [Add] Documented outfits. 2013-10-21 22:38:11 +01:00
Allanis
8d6160244d [Add] Documented menus. 2013-10-20 19:54:23 +01:00
Allanis
e70bfacdcd [Add] Documented weapons. [Fix] Input dialogues. 2013-10-20 18:24:03 +01:00
Allanis
d4b945aca7 [Add] Documented glColour. 2013-10-20 17:43:46 +01:00
Allanis
8fa9b389b1 [Add] Documentation for fonts. 2013-10-19 23:14:06 +01:00
Allanis
93fd1eef4d [Add] Player can abort hyperspaec jump sequence. 2013-10-15 23:38:49 +01:00
Allanis
2fdeecaefa [Fix] NAV computer should always be green when in hyperspace mode. 2013-10-15 00:44:21 +01:00
Allanis
a3f791e52f [Change] Tweaked fleet adding a little so it seems more natural. 2013-10-15 00:31:55 +01:00
Allanis
8198a2db77 [Add] Documentation for lfile.c 2013-10-12 18:33:55 +01:00
Allanis
673b83ea6a [Add] More doxygen along with some slight code cleaup. 2013-10-11 23:02:39 +01:00
Allanis
833283add0 [Add] Documentation for random number generations. 2013-10-10 20:34:58 +01:00
Allanis
8feb19e20c [Add] Pilots sort of start as landed. 2013-10-09 22:16:28 +01:00
Allanis
c2d4f39a72 [Add] Ships now have human readable class strings instead of numbers. 2013-10-08 19:34:48 +01:00
Allanis
b748f0f18e [Change] Seperated dialogues from toolkit. 2013-10-05 18:38:40 +01:00
Allanis
898b44b29d [Fix] Should compile in non-debug mode again. 2013-10-04 17:30:21 +01:00
Allanis
0231017e57 [Fix] Some long time snprintf mistakes. 2013-10-04 17:03:48 +01:00
Allanis
652d9352ad [Add] Qtcreator project support for the IDE users of the world. 2013-10-04 16:34:34 +01:00
Allanis
69b05ae150 [Change] No point playing sound for entering hyperspace range when already jumping. 2013-10-04 01:36:52 +01:00
Allanis
89fd3509e9 [Add] OHHHHHH YEAAAAHHHHH!!! You can sell your ships now ladies! 2013-10-04 01:34:05 +01:00
Allanis
e2b8e738f5 [Add] Sanity check to spfx_add() 2013-10-04 01:08:53 +01:00
Allanis
4cac5ba5b2 [Add] Beam weapons require spfx and proper spfx usage. 2013-10-04 01:07:12 +01:00
Allanis
1177685e62 [Fix] Beam stops moving if enemy got destroyed. 2013-10-04 00:02:33 +01:00
Allanis
4340b8042c [Change] Tweaked beam aggro chance somewhat. 2013-10-03 01:17:11 +01:00
Allanis
0ae6b8cecd [Fix] Killed startup warning about missing 'turn' element on non-turret beams. 2013-10-03 01:15:08 +01:00
Allanis
566e96505f [Add] Display sound driver on init plox. 2013-10-03 01:11:08 +01:00
Allanis
2cade50bc9 [Fix] Possible race condition and improved sound_exit correctness. 2013-10-03 01:08:38 +01:00
Allanis
62f7986459 [Change] Make the start of beam not be so abrupt. 2013-10-03 01:01:39 +01:00
Allanis
5bf8a0b689 [Add] Sound should be fully positional now. 2013-10-02 01:17:01 +01:00
Allanis
cc34292293 [Add] Actively ask for doublebuffering. 2013-10-01 22:26:51 +01:00
Allanis
ebdfaad9a7 [Add] Improved sound system considerably, not used properly yet. 2013-10-01 22:12:39 +01:00
Allanis
810e4afb28 [Fix] Just a few lame typos. 2013-10-01 00:13:03 +01:00
Allanis
6dd9de9835 [Fix] Some obscure bugs like not being able to shoot secondary weapons right away. 2013-09-30 22:43:33 +01:00
Allanis
090bcb96c8 [Add] You can now cancel beams as secondary weapon instead of having to hold shift. 2013-09-30 22:34:46 +01:00
Allanis
4d8b462359 [Add] First round to bring more control to beam weapons. 2013-09-30 22:29:53 +01:00
Allanis
70d4987a00 [Add] starting to add sound for beam weapons. Sound system could do with an overhaul tbh. 2013-09-29 21:25:59 +01:00
Allanis
1a03c08672 [Add] Documented joystick.c 2013-09-29 01:29:43 +01:00
Allanis
8516b33391 [Add] Beam weapons now render properly. 2013-09-25 20:45:14 +01:00
Allanis
f2144b1053 [Change] Fewer explosions with beam weapons. 2013-09-24 23:31:44 +01:00
Allanis
55bb07c560 [Add] More improvements for beam turrets, they also use energy properly now.
[Add] New outfit: Ragnorak beam.
2013-09-24 22:22:41 +01:00
Allanis
5832239b74 [Change] Render spfx in reverse order. 2013-09-24 21:35:24 +01:00
Allanis
71ab2d863f [Add] Added outfit states and beam hit function. Also added compile option for clang. 2013-09-23 22:59:01 +01:00
Allanis
06ea30d96e [Add] Beam weapons now use delay and duration. 2013-09-23 21:04:56 +01:00
Allanis
7030d97402 [Change] Some cleaning up and more documentation of outfit.* 2013-09-23 20:58:55 +01:00
Allanis
f0336e14af [Change] Improved some of the shooting handling. 2013-09-23 20:28:12 +01:00
Allanis
81fd657540 [Add] Documented board.c 2013-09-22 16:24:33 +01:00
Allanis
4674fe7248 [Add] Documented faction.c 2013-09-22 16:07:44 +01:00
Allanis
2e444ff54b [Change] Split beam/bolt loading logic. 2013-09-21 21:30:51 +01:00
Allanis
5557963d1f [Change] Made outfit.h sexier. 2013-09-21 21:09:48 +01:00
Allanis
1ad17e0dae [Fix]? F*ck collisions!! I'll fix it tomorrow. kbai. 2013-09-20 23:36:28 +01:00
Allanis
b8a4d4fe37 [Fix] LineSprite is almost working flawlessly. 2013-09-20 23:11:38 +01:00
Allanis
8bf7a67af7 [Add] Some more beam support stuff. 2013-09-19 22:35:06 +01:00
Allanis
c969041367 [Add] Making room for some beam weapons. 2013-09-19 22:15:18 +01:00
Allanis
9f8b1be682 [Add] Some untested collision detection routines. 2013-09-15 22:34:11 +01:00