Commit Graph

289 Commits

Author SHA1 Message Date
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
Steve 28b830a197 Invoke script when objective is complete. 2015-11-30 12:41:27 +00:00
Steve 999c0eedb3 Add MOVE_TO_PLAYER flag if fighter is an ally not hasn't got FOLLOWS flag set. 2015-11-30 12:41:11 +00:00
Steve 79608069af Missile boats will fire a little more often. 2015-11-30 11:30:11 +00:00
Steve e5906d5f5f Added new AI flags. 2015-11-30 11:29:56 +00:00
Steve 9c532352f5 Allow for star systems to fall to Pandorans, once story missions are complete. 2015-11-30 09:33:43 +00:00
Steve f1f962aeae Complete conditions when CompleteMission() is called. 2015-11-29 16:50:06 +00:00
Steve d3b0755f8b Scatter bug fix for entities. 2015-11-29 16:30:59 +00:00
Steve eb894f9703 Bug fix for activateEntities. Implemented EF_STATIC. 2015-11-29 13:23:27 +00:00
Steve 026e1991e5 Added EF_STATIC, to prevent entities from moving. 2015-11-29 13:23:01 +00:00
Steve ff8bf560e0 Also use GroupName as objective trigger. 2015-11-29 12:57:27 +00:00
Steve 2e5207f9c3 Ignore disabled fighters when looking for a target. 2015-11-29 12:56:38 +00:00
Steve 146bd1ef45 Made name option for fighters. 2015-11-29 12:56:15 +00:00
Steve a4dc4f3e05 Display rebels as red on radar. 2015-11-29 12:56:00 +00:00
Steve 76eb50d92c Added radio sound. 2015-11-29 12:55:36 +00:00
Steve eeaccec327 Update script function calls. 2015-11-29 12:55:15 +00:00
Steve 46337a1f16 Removed challenges from main campaign. 2015-11-29 08:44:34 +00:00
Steve 542209c24c Added ECM effect. 2015-11-29 08:34:25 +00:00
Steve 008e2aac8c Set message box time automatically. Added WAIT_MSG_BOX command. 2015-11-28 17:00:54 +00:00
Steve d231be1bd2 Bug fix for ECM usage. 2015-11-28 15:30:41 +00:00
Steve 886084f60f Don't let AI fire missiles at point-blank range. 2015-11-28 15:30:07 +00:00
Steve 403684b0dd Don't allow waypoints to be triggers if there are outstanding objectives. 2015-11-28 15:07:12 +00:00
Steve e13243d926 NULL pointer check on scripts. 2015-11-28 15:04:11 +00:00
Steve 4b537a3bee Allow entites to be create in deactivated state. 2015-11-28 14:34:38 +00:00
Steve 31eee4a86f NULL pointer fix. 2015-11-28 14:34:19 +00:00
Steve 1816bf406c Allow activation of entity groups. 2015-11-28 14:33:58 +00:00
Steve 633f6d646e Set tow rope attach distance to same as separation distance. Fire script when attached. 2015-11-28 14:33:40 +00:00
Steve dec3538956 Added AIF_MOVES_TO_PLAYER flag. 2015-11-28 14:33:05 +00:00
Steve 9de6d6c737 Removed triggers, and replaced with script system. Added message box. 2015-11-28 10:11:20 +00:00
Steve 8b669448e8 Only show target escaped target for targets that aren't disabled. 2015-11-27 06:37:08 +00:00
Steve ae17d9b422 Longer action timeout when towing to extraction point. 2015-11-27 06:36:48 +00:00
Steve 3ef305686f Allow AI controlled tug to collect disabled fighters, and take them to the extraction point. 2015-11-26 22:48:22 +00:00
Steve d8783cc557 When avoiding enemies, ignore disabled ones. 2015-11-26 21:53:54 +00:00
Steve bd1f5f2bfc Increased size of star system collision zone. 2015-11-26 17:41:58 +00:00
Steve a278f3554b Only play GUI sound when mouse hovers over a button. 2015-11-26 17:41:43 +00:00
Steve b63e2d66fe Swapped radar / weapon select buttons. 2015-11-26 17:41:25 +00:00
Steve d444b0ab68 Simplified mission loading (merged fighterGroup in to fighters, etc.) 2015-11-26 17:41:05 +00:00
Steve 5c20693933 Allow for radar range to be cycled. 2015-11-26 10:54:40 +00:00
Steve 10b85b9fd5 Updated keyboard controls. 2015-11-26 09:53:49 +00:00
Steve 416b50d7eb Added setMouse function. 2015-11-26 08:17:16 +00:00
Steve 2bbe6a1e97 Warp mouse to center of screen, to prevent scrolling after dismissing dialog. 2015-11-26 08:16:54 +00:00
Steve cd0463c92f Updates to widget-mouse interactions. 2015-11-26 08:16:29 +00:00
Steve 5aa3daf342 Moved platform specific code to src/plat 2015-11-24 22:46:52 +00:00
Steve e76cbaedda Stats control update. 2015-11-24 22:33:25 +00:00
Niels Nesse d4b1cda08d Build system improvements for windows
- Add EXE extension correctly
- Detect windows with _WIN32 macro and retire UNIX macro
2015-11-24 01:12:23 -08:00
Steve d62d8e74ba Further code changes for mouse support. 2015-11-24 07:16:48 +00:00
Steve 374ca825ce Code clean up. 2015-11-24 07:16:12 +00:00
Steve 95e26f3e7b Start of mouse control integration. 2015-11-23 14:52:11 +00:00
Steve b8409765d3 Debug statement fix. 2015-11-23 10:14:42 +00:00
Steve 666a88e669 Allow cycling of targets. 2015-11-23 10:14:28 +00:00
Niels Nesse b98c2e6b49 Adding win32 makefile 2015-11-23 00:46:50 -08:00
Steve 6f52dc9783 Further tweaks to target outline. 2015-11-22 17:49:38 +00:00
Steve 444ffaeffa Double health / shield values of all craft. 2015-11-22 16:57:53 +00:00
Steve 84e0b88d00 Texture cache fix. 2015-11-22 16:52:27 +00:00
Steve b6616c23de Expand size of mission target square. 2015-11-22 16:52:11 +00:00
Steve 048d3b17e0 Shield hit effect optimisation. 2015-11-22 16:51:11 +00:00
Steve 587ea29abb Determine logic rate from FPS, not the other way around..! 2015-11-22 13:19:35 +00:00
Steve 223231fb76 AI updates. 2015-11-22 13:06:19 +00:00
Steve bb841db134 Bug fix for following dead player. Increase evasion radius. 2015-11-22 11:42:28 +00:00
Steve de3cd3bb5a Mission target bug fix. 2015-11-22 11:42:04 +00:00
Steve ccaf3d08fc Increased separation distance, to eliminate bunching. 2015-11-22 11:41:47 +00:00
Steve 3b7d8ff940 Allow player start position to be set. 2015-11-22 11:41:28 +00:00
Steve f304e8ca5b Allow AI to fire rockets. 2015-11-22 08:17:29 +00:00
Steve bbd61bf8ba Play missile hit sound effect. 2015-11-22 08:17:16 +00:00
Steve 597f6f5cb7 Removed missiles types. Now only homing missiles, and rockets for bombers. 2015-11-21 23:45:22 +00:00
Steve 94e0259953 Added defensive AI flags - only attack sometimes. 2015-11-21 23:27:43 +00:00
Steve f273862c19 Prevent player from firing when mission is complete / failed. 2015-11-21 18:54:45 +00:00
Steve 669ce654f2 AI updates for retreating fighters. 2015-11-21 17:37:23 +00:00
Steve 5ffc0e4be4 Don't damage immortal fighters. 2015-11-21 17:36:55 +00:00
Steve 693d563f27 Make player immortal upon mission completion / failure. 2015-11-21 17:36:42 +00:00
Steve a82f8b6f2c Renamed FLEE flags to RETREAT. 2015-11-21 17:32:39 +00:00
Steve 0b9a6f8b1f Misc. bug fixes. 2015-11-20 22:52:48 +00:00
Steve b44f208f6c Complete mission if player escapes. 2015-11-20 22:52:35 +00:00
Steve 197a9fc799 Allow entities to be created inactive. 2015-11-20 22:52:17 +00:00
Steve 4db432f845 Allow player to retreat from missions. 2015-11-20 22:51:44 +00:00
Steve 25ab01bc0d Typo fix. 2015-11-20 22:47:08 +00:00
Steve c61b591f75 Epic battle bug fixes. 2015-11-19 12:44:56 +00:00
Steve 32885b2111 Tweaked AI, to help balance Epic battles. 2015-11-19 08:30:45 +00:00
Steve 5fda0b1ad8 Further AI tweaks. Allowed AI to select laser cannons. 2015-11-18 18:38:29 +00:00
Steve 881464282d Allowed Darts to randomly possess lasers. 2015-11-18 18:38:00 +00:00
Steve a43a6b1706 Reduced sound distance. 2015-11-18 18:37:37 +00:00
Steve ede89eefd1 Shield damage effect updates. Laser will cause shield to disable for 10 seconds. 2015-11-18 16:04:12 +00:00
Steve 044aedeb58 Don't blink low shield bar - confusing when recharging. 2015-11-18 16:02:35 +00:00