Commit Graph

871 Commits

Author SHA1 Message Date
Steve 561f427c13 Engine effect bug fix. 2016-04-13 11:04:47 +01:00
Steve 2af802231a Load challenges in Challenge.c 2016-04-13 11:04:28 +01:00
Steve 5fa24f55f2 Added Survive challenge type. 2016-04-13 11:02:08 +01:00
Steve 9ad7f87ca9 Misc. tidy up. 2016-04-12 08:41:13 +01:00
Steve 8e6fcf81fa Using constants for save and config filenames. 2016-04-11 08:44:36 +01:00
Steve 78f125a4ec Added challenge icons. 2016-04-10 12:00:29 +01:00
Steve bcb634befb Player kill count bug fix. 2016-04-10 09:35:30 +01:00
Steve 61b3ede526 Wander takes priority over moving to leaders. Don't suddenly stop when close to leader during flocking. 2016-04-10 08:36:27 +01:00
Steve 4652d6c7e4 Lowered component health. 2016-04-10 08:23:59 +01:00
Steve 6c8349781c Use quadtree for drawing, now that quadtree bug is squashed (hopefully). 2016-04-09 18:13:59 +01:00
Steve bea850f755 Wander fixes. 2016-04-09 17:40:34 +01:00
Steve 90d157411a Quadtree fetch fix. 2016-04-09 17:39:24 +01:00
Steve cb6ad171a7 Jumpgates are neutral by default. 2016-04-09 15:48:00 +01:00
Steve c716f84884 Allow bullets to still hit immortal entities, but not inflict any real damage. 2016-04-09 13:23:54 +01:00
Steve a5676b9b49 Added EF_AI_IGNORE, to tell AI to ignore entities. 2016-04-09 13:23:10 +01:00
Steve 57e9d6d036 EF_NO_TARGET -> EF_NO_PLAYER_TARGET 2016-04-09 13:22:45 +01:00
Steve 554c3678df Made COMPONENTS more generic, not just for capital ships. 2016-04-09 13:22:20 +01:00
Steve e0adc2baee Show jumpgate and components as white on radar. 2016-04-09 13:21:40 +01:00
Steve 64b85f122e Added components to jumpgate, to allow it to be targetted. 2016-04-09 13:21:19 +01:00
Steve 648ea2e0a7 Further flocking tweaks. 2016-04-08 18:41:51 +01:00
Steve 4792c6d971 Added TEAM_PLAYER trophy. 2016-04-08 11:03:50 +01:00
Steve f983b7e2f2 Player / Leader following tweaks. 2016-04-08 10:58:22 +01:00
Steve 0abfb672d7 Don't attach rope if disabled. Speed is 0 if created disabled. 2016-04-07 12:40:14 +01:00
Steve 5e8b983f3e Update to showing objective numbers. 2016-04-07 12:39:53 +01:00
Steve 505fbb2547 Don't update target location, unless there are enemies nearby. 2016-04-06 16:49:47 +01:00
Steve f97e0bc299 Report number of civilians killed. 2016-04-06 12:56:48 +01:00
Steve 1afc9e65f0 Updated capital ship destruction. 2016-04-05 12:21:17 +01:00
Steve b26a5cecd5 Code tidy up. 2016-04-05 10:00:17 +01:00
Steve b02850d0fc Logging update. 2016-04-05 09:58:59 +01:00
Steve 0eaeaba386 Disabling trophies for now. Will activate in v0.7 or later. 2016-04-04 11:40:13 +01:00
Steve 5e1220b9a4 Merge branch 'develop' into trophies
Conflicts:
	src/battle/bullets.c
	src/battle/bullets.h
	src/battle/fighters.c
2016-04-04 11:30:27 +01:00
Steve c4d9fae84c Removed \n from logging. 2016-04-04 11:25:09 +01:00
Steve 29d873d28a Allow waypoints to be manually activated. Removed entId from Battle (redundant). 2016-04-04 11:23:32 +01:00
Steve 77da136e75 Time limit warning for challenges. 2016-04-03 14:04:56 +01:00
Steve 16a1e1b20a Challenge completion bug fix. 2016-04-03 14:04:31 +01:00
Steve 8537e5207f Entity drawing bug fix. 2016-04-03 08:37:45 +01:00
Steve e7190150bf Added killedBy, for easier stat counting. 2016-04-03 08:37:31 +01:00
Steve f9d02696fd Added mines destroyed stat. 2016-04-03 08:37:09 +01:00
Steve 86ed4678e2 Misc clean up. 2016-04-02 16:38:26 +01:00
Steve 4a1958319c Don't use quadtree for drawing. 2016-04-02 16:37:49 +01:00
Steve c555aeccbe Capital ship bug fixes. 2016-04-02 10:47:44 +01:00
Steve 67c7bc7d55 Misc. HUD updates. 2016-04-02 09:37:49 +01:00
Steve a64b41f851 Allow challenges to be completed even if the player is killed. 2016-04-02 09:37:39 +01:00
Steve 28eec0b8e0 Merge branch 'develop' into trophies
Conflicts:
	README.md
	src/defs.h
	src/galaxy/mission.c
	src/system/sound.c
2016-04-01 17:14:06 +01:00
Steve d329fbaf2f Only deploy mines if you're moving. 2016-04-01 17:02:56 +01:00
Steve cfc41a624b Exploded mines will push others aside. 2016-04-01 17:02:36 +01:00
Steve 26ed8dc322 Allow side to be set for entities (mostly applies to mines). 2016-04-01 14:21:11 +01:00
Steve a913dc613b Set width and height of entities in spawn functions. 2016-04-01 14:20:47 +01:00
Steve e2172a1789 Show mines on radar as white. 2016-04-01 14:20:03 +01:00
Steve 994c0b55dd Don't explode mine on owner. 2016-04-01 14:19:55 +01:00
Steve d178134a00 Allow AI to drop mines. 2016-04-01 14:19:03 +01:00
Steve 58fb3e911b Tell AI to avoid mines. 2016-04-01 11:40:09 +01:00
Steve e8f70072d5 Don't cause damage to immortal fighters. 2016-04-01 11:39:52 +01:00
Steve 3bf73b5d70 Updates to mines. 2016-04-01 10:49:41 +01:00
Steve daa8eff104 Mines have a short radar range. 2016-03-30 22:41:34 +01:00
Steve 3646a9326a Start of mines. 2016-03-30 07:22:58 +01:00
Steve 52691f7be5 Enable AI flags to focus on targets. 2016-03-29 22:45:46 +01:00
Steve 8705337e2a Show number of conditions on HUD, as well as objectives. 2016-03-29 07:19:39 +01:00
Steve e6ea4bff06 Reworked canAttack logic. 2016-03-29 07:09:26 +01:00
Steve c288fce12f Windows build fixes. 2016-03-28 18:26:02 +01:00
Steve f114ad7e7e Merge branch 'develop' into trophies 2016-03-28 16:09:24 +01:00
Steve 2168b72401 Allow -info to enable INFO level logging. 2016-03-28 16:07:47 +01:00
Steve ab8be196b5 Khepri now green and associated with rogue nation. 2016-03-28 11:47:11 +01:00
Steve 81f2dd1947 Stray revert compile fix. 2016-03-28 11:46:20 +01:00
Steve 45d9d2a00d Don't show mission target boxes around capital ship components. 2016-03-28 11:45:48 +01:00
Steve bd8e88b3ac Don't allow tugs to take ownership of something that is already owned. 2016-03-28 10:39:52 +01:00
Steve c7bdeb195c Allow capital ship to be disabled. 2016-03-28 10:39:25 +01:00
Steve 47f7f5671a Added trophy graphics. 2016-03-27 11:32:38 +01:00
Steve 147f2afae4 Merge branch 'trophies' of ssh://github.com/stephenjsweeney/tbftss into trophies
Conflicts:
	locale/tbftss.pot
	src/battle/battle.c
	src/battle/battle.h
	src/galaxy/mission.c
2016-03-27 11:25:50 +01:00
Steve e278374490 Merge from develop. 2016-03-27 11:21:23 +01:00
Steve c00c134b70 Allow access to all missions when using -debug. 2016-03-27 11:08:44 +01:00
Steve aadb4f6949 Make shield splinter effects more visible. 2016-03-27 08:56:09 +01:00
Steve 06f7867013 Use CONTROL_NEXT_FIGHTER / CONTROL_PREV_FIGHTER to select fighters during epic missions. 2016-03-27 08:55:58 +01:00
Steve d33bcf9414 In epic battles, spawned in entities (such as swarmers) don't count towards the epicLimit. 2016-03-27 08:55:25 +01:00
Steve ca043f171c Only initially add active entities to quadtree. 2016-03-26 18:15:52 +00:00
Steve 175b7e5ca0 Moved entity loading code out of mission.c, and into appropriate c files. 2016-03-17 08:11:52 +00:00
Steve 73a3c0c78a Fixed shield splinter effect. 2016-03-16 21:54:08 +00:00
Steve 1b43e4908c Added ability to hide objective numbers. 2016-03-16 19:24:41 +00:00
Steve 4ef796bf92 Added id to objective, to allow script to function in non-English languages. 2016-03-16 06:54:34 +00:00
Steve 30fa446006 Allow script to activate spawners. 2016-03-16 06:53:49 +00:00
Steve 0332e2fe20 Fixed time script bug. 2016-03-16 06:53:30 +00:00
Steve 604526611a Increased flock leading distance. 2016-03-16 06:53:20 +00:00
Steve 09e676d713 Added simple die, to prevent swarmers spreading debris everywhere. 2016-03-16 06:53:07 +00:00
Sweeney 1938c6714c Merge remote-tracking branch 'origin/develop' into trophies
# Conflicts:
#	data/challenges/10.json
#	locale/tbftss.pot
#	src/battle/battle.c
#	src/battle/battle.h
#	src/battle/script.h
#	src/galaxy/mission.c
2016-03-15 12:19:32 +00:00
Steve 13344ddc06 Made many attributes optional. 2016-03-14 17:55:34 +00:00
Steve 1fbf31e56c Don't check spawners if player is dead. 2016-03-14 17:55:09 +00:00
Steve 634d914bd9 Jumpgate initial state fix. 2016-03-14 11:28:19 +00:00
Steve 4e8b85b6a1 Removed script-based spawner. Redundant. 2016-03-14 11:28:01 +00:00
Steve edc18579ec Added support for spawners. 2016-03-14 11:12:22 +00:00
Steve 35e23e8450 Added large explosions, for capital ships. 2016-03-14 08:30:19 +00:00
Steve 35b5e4a1c6 Misc cleanup. 2016-03-13 10:52:12 +00:00
Steve 7b0c70005f Lookup updates. 2016-03-13 10:52:02 +00:00
Steve b37a268169 Added capital ships to challenge killLimit check. 2016-03-13 10:51:48 +00:00
Steve 160f65a15b Added EF_NO_KILL_INC to prevent kill count increment. 2016-03-13 10:50:32 +00:00
Steve 675d051011 Tidied headers. 2016-03-12 18:29:22 +00:00
Steve f5b3933a87 Merge branch 'develop' into trophies
Conflicts:
	src/battle/battle.c
2016-03-12 18:28:43 +00:00
Steve 0a69dd0e5e Merge from develop. 2016-03-12 18:22:48 +00:00
Steve a5509b5bcd Logging updates. 2016-03-12 15:12:52 +00:00
Steve 71b0a00689 Use EF_DISABLED for jumpgates, rather than systemPower. 2016-03-12 12:35:05 +00:00
Steve bdced9c00f Use aiActionTime, instead of thinkTime, to allow waypoint to continue to spin. 2016-03-12 12:11:56 +00:00
Steve e9c43f3d60 Flocking tweak. 2016-03-12 12:11:30 +00:00
Steve ed6b0ae376 Don't point to jumpgate on HUD if it's inactive. 2016-03-12 12:10:14 +00:00
Steve ae6e2ede09 Control waypoints from script. 2016-03-12 12:09:42 +00:00
Steve 4f27b40d97 Added rescue challenges 2016-03-11 23:45:47 +00:00
Steve 3bd78dbd20 Spawn fighters offscreen or off map. 2016-03-11 23:45:12 +00:00
Steve c66b734e7e Added interval-based script events. 2016-03-11 23:43:50 +00:00
Steve 553178128f InitStars during start up (lost during memory leak fixes). 2016-03-11 07:22:23 +00:00
Steve 7ba4dcf26c Memory leak fixes. 2016-03-10 22:47:33 +00:00
Steve da97818259 Trophy-related prototyping fixes. 2016-03-10 18:02:19 +00:00
Steve e8d63df494 Merge remote-tracking branch 'origin/develop' into trophies
# Conflicts:
#	src/battle/battle.c
#	src/challenges/challengeHome.c
2016-03-10 12:04:04 +00:00
Steve 25b641c8d4 MIsc. clean up. 2016-03-10 11:58:10 +00:00
Steve 108dfa44d7 Allow tugs with AIF_UNLIMITED_RANGE to find targets anywhere. 2016-03-10 11:57:05 +00:00
Steve 3a0618b150 Rope cutting bug fix. 2016-03-10 11:56:38 +00:00
Steve 812f69b02e Drawn effects bug fix. 2016-03-10 11:56:27 +00:00
Steve ebfea2b5c4 Unlock next challenge mission is previous has been passed. 2016-03-09 23:25:54 +00:00
Steve 0bcc69ee69 Move planet a little faster. 2016-03-09 23:25:27 +00:00
Steve 1a4b5c679c Don't attach rope to vessel with rope already attached. 2016-03-09 23:25:12 +00:00
Steve 7789d3ab64 Remove rope flags when rope is detached. 2016-03-09 23:22:32 +00:00
Steve c9bde77bca Spin jumpgate portal a little faster. 2016-03-09 23:21:51 +00:00
Steve 8017719239 Allow fighters to be added to mission in disabled state. 2016-03-09 23:21:28 +00:00
Steve 46503f4fe7 Mark craft as stolen if they are moved to jumpgate by a vessel not on your side. 2016-03-09 23:20:50 +00:00
Steve 16c8f81389 Play sound effects for control config widgets. 2016-03-09 23:19:10 +00:00
Steve bb892c1efe Added new HUD icons. 2016-03-09 23:18:40 +00:00
Steve 25101c0f1d Now automatically checking trophies based on star system name. 2016-03-09 15:54:25 +00:00
Steve ba5260104a Check trophies at start of galactic map. 2016-03-09 15:53:56 +00:00
Steve 93dd00c785 Prototyping stats trophies. 2016-03-09 12:31:33 +00:00
Steve f867e793bd Trophy prototyping. 2016-03-09 11:51:26 +00:00
Steve fb584735c6 Jumpgate updates. 2016-03-08 19:00:56 +00:00
Steve 7118c10648 Draw jumpgate portal in jumpgate.c. Use systemPower instead of ALIVE_SLEEPING to determine status. 2016-03-08 14:28:11 +00:00
Steve 22b5267ffd Initially add all entities to quadtree, to avoid the popping effect. 2016-03-08 07:12:06 +00:00
Steve 99013a4e99 Allow jumpgate to be put into "sleep" state: effectively inactive. 2016-03-08 06:55:41 +00:00
Steve a74ff87a46 Added portal effect to jumpgate. 2016-03-07 22:50:41 +00:00
Steve ecdf9998d0 Don't select options widget. 2016-03-07 19:04:12 +00:00
Steve 798135eadf Don't allow rogue files to crash game at startup. 2016-03-07 19:03:55 +00:00
Steve bc1c5d09a8 Replaced extraction point with jumpgate. 2016-03-07 17:12:21 +00:00
Steve bd715286a1 Allows show killed message during a challenge battle. 2016-03-07 12:31:43 +00:00
Steve 6ef07a65e2 Craft marked as EF_AI_TARGET will be attacked even if they are dodging and avoiding combat. 2016-03-07 12:31:22 +00:00
Steve 16591691b5 Allow challenges to be ended via the script. 2016-03-07 12:30:20 +00:00
Steve 4a52bb1fce Added item collection challenges. 2016-03-07 12:29:23 +00:00
Steve 244e5d6dd9 Merge from Master. 2016-03-06 19:07:43 +00:00
Steve e04ad44a1a Eliminate all objective bug fix. 2016-03-06 17:27:23 +00:00
Steve 5764e0a4b2 Capital ships destroyed / lost triggers. 2016-03-06 17:14:13 +00:00
Steve 497977c665 Don't add capital ship components to quadtree until they've been positioned. 2016-03-06 17:13:57 +00:00
Steve 721ca3e110 Trophy updates. 2016-03-06 17:13:34 +00:00
Steve fff301e3e2 Allow shrinking of array. 2016-03-06 09:48:29 +00:00
Steve c14b687209 Screenshot save path update. 2016-03-06 09:48:09 +00:00
Steve 922b39c0ea Challenge #8, defend extraction point. Added flag to allow AI to sometimes ignore extraction point. 2016-03-06 09:47:44 +00:00
Steve e28390a496 Added array resize function (not using realloc because it doesn't zero the new array). 2016-03-05 23:56:21 +00:00
Steve ac59559d90 Clear input when pressing Escape. 2016-03-05 15:35:09 +00:00
Steve 09a89e692b Added time up status for finishing a challenge already partly passed. 2016-03-05 15:34:37 +00:00
Steve f55a4e57c8 Pressing ESCAPE blocks when awaiting widget input. 2016-03-05 13:49:07 +00:00
Steve d2a234839b Integrated mouse control mappings. 2016-03-05 13:21:17 +00:00
Steve 6dfb51e8b0 Allow keys and mouse buttons to be selected in options. 2016-03-05 12:35:19 +00:00
Steve acd53f6b97 Further custom control integration. 2016-03-05 08:42:35 +00:00
Steve 7979b175a2 Waypoint challenge updates. 2016-03-04 22:59:16 +00:00
Steve 599c4fc338 Merge fixes. 2016-03-04 22:11:13 +00:00
Steve 159d36017b Centralizing getFileLocation() to make file loading more transparent. 2016-03-04 14:29:50 +00:00
Steve d2acbefc6d Prevent modal dialog from being dismissed immediately. 2016-03-04 14:14:45 +00:00
Steve 95cb35d5a1 Added getJSONValue to aid with optional JSON data. 2016-03-04 14:14:04 +00:00
Steve b6012a2e21 Merged config branch. 2016-03-03 18:03:07 +00:00
Steve c8dd06dcdc Added AUTO option for music. Reorganised music for easier scanning. 2016-03-03 16:16:12 +00:00
Steve 122bb53a66 Challenge time bugfix. 2016-03-03 14:19:29 +00:00
Steve 4f6721cba4 Added 5th challenge mission. 2016-03-03 11:31:32 +00:00
Steve ed9b02a917 Disabled entities now become secondary targets. 2016-03-03 11:31:18 +00:00
Steve d5d5169078 Accuracy for rockets and missiles, not just shots. 2016-03-03 09:12:08 +00:00
Steve 2ca26b1ea0 Divide by zero check. 2016-03-03 07:47:33 +00:00
Steve 263a6cc5b5 Removed unneeded abs on hashcode. 2016-03-03 07:47:18 +00:00
Steve d980e412f2 Draw circle performance update. Removed drawFilledCircle (unused). 2016-03-03 07:47:03 +00:00
Steve 11d5ed635f Challenge processing fixes. 2016-03-03 07:44:04 +00:00
Steve cb34b3b9b6 Maximum of 3 challenges per challenge mission. 2016-03-02 23:20:37 +00:00
Steve 05185950e4 Auto select first challenge when coming from title. 2016-03-02 22:24:59 +00:00
Steve 2c71b16e17 Show and apply challenge restrictions. 2016-03-02 22:19:26 +00:00
Steve f9880354db i18n updates. 2016-03-02 07:14:38 +00:00
Steve 35a2277114 Display challenge information. 2016-03-02 06:58:03 +00:00
Steve 0c31b2204c Refactored challenge data, for display on Challenge Home. 2016-03-02 06:46:13 +00:00
Steve e5c5315e62 Print stats when in debug mode at end of challenge. 2016-03-01 07:21:31 +00:00
Steve c95b56728f Using getFileLocation. 2016-02-29 21:52:30 +00:00
Steve 55bb0d1e36 Challenge home music. 2016-02-29 21:51:49 +00:00
Steve e5e96f8e81 GPL notices. 2016-02-29 16:05:49 +00:00
Steve 1c270888aa Removed mouse warping. Is too jarring. 2016-02-29 16:05:35 +00:00
Steve 9d846fd137 Randomize planet and background in Challenge Home. 2016-02-29 16:00:32 +00:00
Steve 25d68b27fb Stats display bug fix. 2016-02-29 15:55:21 +00:00
Steve 8242dbf037 Use getFileLocation for loading files (install is broken on Linux). 2016-02-29 14:43:24 +00:00
Steve d869c22f36 Allow random planet and backgrounds for missions, using "AUTO" in mission definition. 2016-02-29 14:42:46 +00:00
Steve adb86d9f14 Show planet in background. 2016-02-29 12:09:36 +00:00
Steve 1808ec8fbc Use function pointer array for init steps. 2016-02-29 11:38:31 +00:00
Steve 10cc12bd70 i18n updates. 2016-02-29 10:47:41 +00:00
Steve 9b6abf764a Percent complete stats updates. 2016-02-29 10:47:10 +00:00
Steve bf7d6dc921 Added menu to challenges screen. 2016-02-29 09:54:03 +00:00
Steve 0e159402e9 Show stats button on title screen. 2016-02-29 09:35:39 +00:00
Steve 281dd4d7d2 Show number of challenges completed, lock challenges that can't be played yet. 2016-02-29 09:23:41 +00:00
Steve 83523f868a Use battle sound (distance) instead of normal sound. 2016-02-29 09:23:14 +00:00
Steve 211df6d8ec i18n updates. 2016-02-28 13:45:17 +00:00
Steve ad7a1eefda Challenge integration updates. 2016-02-28 13:02:57 +00:00
Steve a1703d5066 vSync is now always on. 2016-02-28 10:00:17 +00:00
Steve 44c7e78606 Further i18n integration updates. 2016-02-28 09:59:33 +00:00
Steve 58e7b9b8ea i18n updates. Not optimised. That will come later. 2016-02-27 19:16:17 +00:00
Steve 821e7ac872 Start of i18n support. 2016-02-27 18:13:05 +00:00
Steve 660bb57bb0 Further challenge updates. 2016-02-27 18:12:18 +00:00
Steve f153383f9e Challenge mission graphics. 2016-02-27 18:08:43 +00:00
Steve 2e5b45064a Challenges integration. 2016-02-27 16:16:21 +00:00
Steve ef6e65a51c Slow player down when mission is complete. 2016-02-27 16:15:41 +00:00
Steve 4df206d6b2 Show time on HUD when in challenge mission. 2016-02-27 16:15:30 +00:00
Steve 69e45f4e3f Clear input when transitioning. 2016-02-27 16:14:48 +00:00
Steve 2c33041344 Load data from files found in directory, rather than using a text file. 2016-02-27 16:14:14 +00:00
Steve 266088f764 Start of restoring challenges. 2016-02-27 12:14:29 +00:00
Steve 57d8c867e1 v0.6. Start of i18n. 2016-02-27 12:14:05 +00:00
Steve d79325a0b3 Only select one mission. 2016-02-27 08:08:32 +00:00
Steve 1f5af02441 Fixed for point effects not showing. 2016-02-25 16:43:26 +00:00
Steve 6b25cc3c8b Clip camera using star systems. 2016-02-25 16:00:42 +00:00
Steve b5bafa1b1e Windows save path bug fix. 2016-02-25 12:27:08 +00:00
Steve 3f100a0848 Init effects on title screen, to prevent crash. 2016-02-25 12:26:54 +00:00
Steve 84889d8391 Windows build fixes. 2016-02-25 11:46:39 +00:00
Steve 19630696c5 Prevented AI craft for jittering when close to leader. 2016-02-25 10:55:15 +00:00
Steve e79d331599 Added ALL_OBJECTIVES_COMPLETE script command. 2016-02-25 10:52:01 +00:00
Steve 239845a279 Array resize bug fixes. 2016-02-24 23:12:13 +00:00
Sweeney 56540a56ac Start of bullet, debris, and effect performance updates. Dynamic array sizing. 2016-02-24 15:02:51 +00:00
Steve ae3b5c4c1a Create tbfss save folder in Windows with current username. 2016-02-24 07:17:53 +00:00
Steve 913184d877 Removed INF. They don't exist after 2616. 2016-02-24 07:16:23 +00:00
Steve e4b2bba230 Leader following tweaks: will now face and move in the general direction of leader once in range. 2016-02-24 07:13:48 +00:00
Steve a2a1ec0613 Modal message box updates. 2016-02-23 22:20:07 +00:00
Steve 368e9dc592 Start of modal dialog display. 2016-02-23 07:19:31 +00:00
Steve 8afc9a757b Updated avoidance. 2016-02-22 21:46:46 +00:00
Steve bde4dd84f5 Removed redundant calls. 2016-02-22 21:45:02 +00:00
Steve 66fa5ede35 Display loading progress for initial load. 2016-02-22 17:28:23 +00:00
Steve a7f9585a9a Moved prepareScene / presentScene into main loop. 2016-02-22 17:27:36 +00:00
Steve 66874a1720 Adjusted brake amount of missiles, to prevent them circling opponents. 2016-02-22 16:32:38 +00:00
Steve d529a83bfa Set window title with full game name. 2016-02-22 12:47:41 +00:00
Steve 0c88500690 Start of avoidance code for capital ships. 2016-02-22 12:47:30 +00:00
Steve 4128868692 Dynamically allocate number of files in list. 2016-02-21 17:24:21 +00:00
Steve fd56b75a6a Press 6 to complete mission in debug mode. 2016-02-21 16:55:29 +00:00
Steve 03712285c4 Campaign flow bug fixes. 2016-02-21 16:55:11 +00:00
Steve cedbed4dc8 Updated copyright dates. 2016-02-21 15:50:27 +00:00
Steve dcef433d4d Randomly scale planet. 2016-02-21 13:47:10 +00:00
Steve 862d73dbc2 Quadrant fix. 2016-02-21 13:46:58 +00:00
Steve 9ced1e75c8 Removed unneeded addCandidate function. 2016-02-21 09:41:32 +00:00
Steve 4d3b2f10a1 Remove entities from quadtree at start of loop. 2016-02-21 09:41:00 +00:00
Steve a554c0ef00 Tidied headers. 2016-02-21 08:54:23 +00:00
Steve f402c8e7b9 Updated battle area restrictions, to fit quadtree changes. 2016-02-21 08:54:14 +00:00
Steve 1e24844d9b Resize fetch list dynamically. 2016-02-21 08:28:22 +00:00
Steve b004dd95ab Resize quadtree entity capacity as needed. 2016-02-21 08:13:17 +00:00
Steve 6b1e62dd38 Start of replacing grid with quadtree. 2016-02-21 07:48:22 +00:00
Steve 7337460853 Text render bug fix. 2016-02-20 15:04:26 +00:00
Steve 5bf486ede6 Display all available weapons on HUD. 2016-02-20 15:04:15 +00:00
Steve da71c1d647 Added ECM, mag bolt hit, and power down sounds. 2016-02-20 14:19:59 +00:00
Steve 757b942174 Added hud icons for armour, shield, ecm, and boost. 2016-02-15 16:59:47 +00:00
Steve db8678d64b Don't use key repeat. 2016-02-15 15:24:27 +00:00
Steve 26aa3b3bb1 Play denied sound when attempting to boost / use ecm when depleted. 2016-02-15 15:24:19 +00:00
Steve 7656957dd6 Fixed ECM halo effect. 2016-02-15 15:23:51 +00:00
Steve de3dde7211 Allow widgets to be selected by pressing Return, as well as Space. 2016-02-15 14:08:13 +00:00
Steve b99dd3a4e4 Added jump effects (sound and graphics). 2016-02-14 18:13:15 +00:00
Steve b5fc0aacbd Added disabled pulse effect to entities. 2016-02-14 16:34:11 +00:00
Steve 54b92ad137 Added message for when a star system falls to the Pandorans (campaign-related, unavoidable). 2016-02-14 11:53:03 +00:00
Steve 909cdd76f3 Now drawing stars after planet. Increased size of brightest stars by one pixel. 2016-02-14 11:08:03 +00:00
Steve 17c55ec080 Now scrolling the galactic map by clicking and dragging. 2016-02-14 11:07:15 +00:00
Steve 855abe77cb Prevent replaying of previously complete campaign missions. 2016-02-13 16:59:18 +00:00
Steve 60a398408a Updated random planet placement. 2016-02-13 16:59:00 +00:00
Steve b6e128231d Scroll planet in background more slowly. 2016-02-13 16:53:56 +00:00
Steve a5f73cc3fc Renamed "textureName" to simply "texture". 2016-02-13 14:31:45 +00:00
Steve 8cd74e999d Increase filename length of music. 2016-01-28 17:03:23 +00:00
Steve 58e91e83c0 Don't instantly kill the player during an epic mission. 2016-01-28 17:03:13 +00:00
Steve e31f39d3a9 Replaced "Dummy" missions with manual complete flag. 2016-01-25 15:09:14 +00:00
Steve a251459413 Added "unwinnable" mission flag, to automatically continue the game when the player is defeated. 2016-01-25 14:58:07 +00:00
Steve 672fd01282 Eliminate all tweaks. 2016-01-24 09:50:31 +00:00
Steve a73a44fd55 Notify captial ships, etc. when new opponents arrive, to allow them to respond faster. 2016-01-24 09:49:50 +00:00
Steve 501ef1aff7 Draw cap guns after components. 2016-01-21 17:08:56 +00:00
Steve cc4ac782a9 Allow selected widget to be activated by pressing space. 2016-01-03 13:53:41 +00:00
Steve 1115309331 Attempt to complete eliminate all objective immediately, if no enemies are remaining. 2015-12-31 11:31:36 +00:00
Steve fb8063b581 Get initial enemy count at start of mission. 2015-12-31 11:25:19 +00:00
Steve 05db32f04a Bug fix for wandering ships. 2015-12-30 18:44:48 +00:00
Steve f9ee8017df Logging. 2015-12-30 18:44:00 +00:00
Steve b095705dd0 When activating a captial ship, also activate its components. 2015-12-30 18:43:47 +00:00
Steve 4652787b65 Shorten time between message box displays. 2015-12-30 18:43:20 +00:00
Steve 277092cdbc Using arrow to indicate more weapons available on HUD. 2015-12-28 13:44:57 +00:00
Steve 38e4564aae Display total available guns on HUD. 2015-12-27 21:16:57 +00:00
Steve 568abb25f4 lookForLeader() added to main doAI function. 2015-12-27 18:18:50 +00:00
Steve 7f055102bf Split space craft into separate lists. 2015-12-26 21:08:53 +00:00
Steve e2b7576f89 Allow AI to wander. 2015-12-24 21:42:26 +00:00
Steve e2ffe9ba84 Added ability to specify death type of fighters (e.g. supply ships shouldn't spin). 2015-12-24 12:12:23 +00:00
Steve 5075adc0b4 Bug fix for engine position. 2015-12-24 11:54:01 +00:00
Steve 01ec3ceb7b Stats bug fixes. 2015-12-23 19:22:31 +00:00
Steve c3785bcfce Allow the player to select and fire rockets, when using a bomber. 2015-12-23 16:25:25 +00:00
Steve 1f03b81cca Misc. updates. 2015-12-22 17:58:53 +00:00
Steve edc6127109 Fix for AI attacking secondary targets. 2015-12-22 17:58:37 +00:00
Steve 48f08a3fb0 Allowed locations to be activated by scripts. Added eliminate all objective type. 2015-12-22 17:58:18 +00:00
Steve 1884c8371e Added Locations for use with mission scripting. 2015-12-22 12:42:04 +00:00
Steve 15d7faf386 Bug fix for escaping entities. 2015-12-21 16:03:30 +00:00
Steve 3dbd8e72f7 Missions now unlock depending on number of other missions completed (and previous mission, where applicable). 2015-12-21 14:19:21 +00:00
Steve e83e078873 Bug fix for epic battle spawning. 2015-12-20 16:41:46 +00:00
Steve a50e1685a3 Allow epic battle player select by mouse. 2015-12-20 16:41:29 +00:00
Steve 05b42f21ce AI evasion updates. 2015-12-20 16:13:49 +00:00
Steve 9be0cdab6c Expire texts, based on age in cache. 2015-12-20 16:13:35 +00:00
Steve 1849a20831 AI fighers will now attempt to avoid combat if they take too much damage in a short space of time. 2015-12-20 15:13:41 +00:00
Steve 817c5c22ee Decreased warning range for battle area bounds. 2015-12-20 14:32:21 +00:00
Steve d8eb896456 Enable debug mode by passing -debug. 2015-12-20 12:25:20 +00:00
Steve bc8ef3b0bc Memory leak fix. 2015-12-20 11:58:35 +00:00
Steve af04c5a7ef Automatically load missions from star system misson dir (data/mission/xxx) 2015-12-20 11:58:21 +00:00
Steve 1c81be3168 Stats for capital ships. 2015-12-19 16:15:57 +00:00
Steve 164b35a8c0 AI should only move to leader on same side. 2015-12-19 12:30:17 +00:00
Steve bd5f1c3b49 Don't execute scripts or message boxes if the player is dead. 2015-12-19 08:56:52 +00:00
Steve 01286b042b Limit text cache size. 2015-12-18 17:09:23 +00:00
Steve 01894d5150 Activate objectives by name, not number. 2015-12-18 14:28:44 +00:00
Steve 2d37460944 Generate cap ship component names from parent name. 2015-12-18 12:02:45 +00:00
Steve cfc0ed7cc8 AI can now follow leaders. 2015-12-18 12:02:01 +00:00
Steve b5dfab1bd5 Added debug keys. 2015-12-18 10:12:37 +00:00
Steve 7325bbe506 INF Corvette updates. 2015-12-18 08:26:21 +00:00
Steve 48d54af42e Use float for draw angle, instead of int. 2015-12-17 23:14:25 +00:00
Steve 2e2bd9d882 Debris updates. 2015-12-16 22:40:26 +00:00
Steve 33373457b2 Error when no capital ship found. 2015-12-16 22:40:14 +00:00
Steve 7701fc0336 Combined guns bug fix. 2015-12-14 14:05:02 +00:00
Steve 691068a634 Shield smash bug fix. 2015-12-14 14:04:48 +00:00
Steve 310637b4eb Merged from v0.41. 2015-12-14 11:41:43 +00:00
Steve c4dfb823ef Code clean up. 2015-12-14 08:15:41 +00:00
Steve 2012f87b39 Randomize debris for fighters. Added Rebel AI thresholds. 2015-12-13 17:56:16 +00:00
Steve 8e1fdf559a Scatter debris more quickly. 2015-12-13 17:55:10 +00:00
Steve 260ada68c8 Capital ships: scatter debris when components destroyed. Run scripts upon certain events. 2015-12-13 17:54:57 +00:00
Steve 743786efb8 Added debris. 2015-12-13 14:50:54 +00:00
Steve 99eb742d34 HUD distance calculation bug fix. 2015-12-12 18:24:41 +00:00
Steve 4fbdcd0af6 Allow flags in missions to be added to existing entity flags, or replace them completely. 2015-12-12 18:24:23 +00:00
Steve 6b06b2a431 Increased corvette engine health. Allowed guns to fire missiles. Cap ships will also hunt down AI targets. 2015-12-12 17:12:25 +00:00
Steve 247c9f79e3 Created capital ship engine effect. 2015-12-12 15:11:40 +00:00
Steve fb524386fa drawBullets() bug fix. 2015-12-11 19:06:16 +00:00
Steve 3ab78a070a Updated HUD distance display. 2015-12-10 14:25:22 +00:00
Steve 05f58e0971 Added SECONDARY_TARGET flag. 2015-12-10 12:40:23 +00:00
Steve 51452925f9 Death of guns does not affect cap ship health. 2015-12-10 11:47:18 +00:00
Steve a5f8be0586 EF_STATIC now means entity will never move (not even rotate). 2015-12-10 11:46:57 +00:00
Steve da692862b9 Include cap ships in force counts. 2015-12-10 11:11:32 +00:00
Steve 09d93f9163 Treat capital ship engines differently from components. Will cause vessel to stop moving when they are all destroyed. Don't contribute to ship health. 2015-12-10 11:11:04 +00:00
Steve 4358d5b698 Misc. fixes. 2015-12-10 10:16:44 +00:00
Steve deafab786e Separate gun AI. 2015-12-10 10:16:27 +00:00
Steve 833043ba7d Bullets don't hit their own entity groups (mainly for capital ships). 2015-12-10 10:16:16 +00:00
Steve 1b1a4ca792 Shift dead entities out of main list instead of freeing, to counter dangling pointers. 2015-12-10 10:15:27 +00:00
Steve a541cf1976 Allow mod to handle floats. 2015-12-10 10:05:00 +00:00
Steve 54ebea7c43 Further capital ship tweaks. 2015-12-10 10:04:22 +00:00
Steve c8eecdd316 Further capital ship tweaks. 2015-12-09 07:25:24 +00:00
Steve 91822f1ca3 Further capital ship code updates. Added long range fire flag for cannons. 2015-12-08 22:42:31 +00:00
Steve 767920478c Clear entire grid at start of frame (removing individuals is buggy right now). 2015-12-08 06:44:53 +00:00
Steve 22afef45c7 Reduce cap ship health when component is destroyed. 2015-12-08 06:43:03 +00:00
Steve 6441f926e2 Various tweaks and refactoring to accomodate capital ships. 2015-12-07 19:19:41 +00:00
Steve 6084251e9f Start of capital ships. 2015-12-07 19:19:14 +00:00
Steve 7c99ccc845 Prevent buffer overflow when reading script. 2015-12-06 15:03:59 +00:00
Steve 28a4cda6fd Set size of message box, based on amount of text. 2015-12-06 15:03:44 +00:00
Steve d6982e80ca Created common.h to aid with cross compiling. 2015-12-05 08:15:58 +00:00
Steve b3628c17b5 Decrease scroll zone. 2015-12-03 22:50:53 +00:00
Steve 2bca049973 Misc. clean up. 2015-12-03 16:53:29 +00:00
Steve 9825e39f4f Install path bug fixes. 2015-12-03 08:43:26 +00:00
Steve 65b62091d1 Allow for file location to be determined automatically. 2015-12-02 23:20:19 +00:00
Steve a15efc4ea9 Enable running of scripts when enemies are killed. 2015-12-02 07:24:26 +00:00
Steve 26c4bd4aea Allow AI Flags to be set in mission data. 2015-12-02 07:24:12 +00:00
Steve b3c2313235 Target range fix. 2015-12-02 07:23:56 +00:00