Commit Graph

713 Commits

Author SHA1 Message Date
Steve fba7fc1f54 Misc. clean up. 2016-05-20 09:53:06 +01:00
Steve 6afbc40d6c Allow hasSuspicionLevel to be specified in mission file. 2016-05-20 09:52:45 +01:00
Steve e5092291d3 Don't check for team mates if the player is on the side of the Pandorans. 2016-05-20 09:52:23 +01:00
Steve c090942f81 Implemented updateEntitySide(). 2016-05-20 09:51:53 +01:00
Steve c17f1af851 Added AIF_ZAK_SUSPICIOUS. 2016-05-20 09:51:34 +01:00
Steve e45485cee8 Don't display messages if you're a Pandoran ship. 2016-05-19 16:52:47 +01:00
Steve e972bc0224 Clip suspicion % to 0. 2016-05-19 16:52:13 +01:00
Steve de2a29e4b6 Show suspicion % on HUD. 2016-05-19 10:54:25 +01:00
Steve ebf95cb631 Only raise suspicion level if the battle is in progress. 2016-05-19 09:31:37 +01:00
Steve 5a250e73d2 Also run ALL_OBJECTIVES_COMPLETE in doObjectives(). 2016-05-19 09:31:09 +01:00
Steve 5f6a4d1b16 Removed unneeded debugging. 2016-05-19 09:30:33 +01:00
Steve e98b354ce2 Allow script to run also with MS_COMPLETE status, to allow for ALL_OBJECTIVES_COMPLETE to work properly. 2016-05-19 09:30:15 +01:00
Steve 6f0e8ee397 Minimum width for trophy alert. 2016-05-19 08:53:14 +01:00
Steve e7cfa09f8a Lower suspicion a little more quickly when bullets land. 2016-05-19 08:52:57 +01:00
Steve c02c4686f3 Handle lowering suspicion level in main entity code. 2016-05-19 08:52:34 +01:00
Steve ee16c25a9b Fix for capital ship destruction triggers. 2016-05-19 08:52:11 +01:00
Steve e0fb778c10 SIDE_REBEL -> SIDE_TZAC 2016-05-18 12:23:42 +01:00
Steve 2c64f5f8c0 Debugging. 2016-05-18 09:51:16 +01:00
Steve 0b72d5c859 Reduced max suspicion level. 2016-05-18 09:49:11 +01:00
Steve 5999bc12d6 Clip suspicion level to 0 on HUD. 2016-05-18 09:48:56 +01:00
Steve 0b1045cadc Debugging. 2016-05-18 09:48:18 +01:00
Steve 01376bfbb5 Allow suspicion level to become negative. 2016-05-18 09:48:06 +01:00
Steve 8f438c4467 Deactivate jumpgate if Pandoran choose to attack the player. 2016-05-18 09:47:27 +01:00
Steve b55574a9e6 Start of Frequent Flyer trophy. 2016-05-17 19:02:58 +01:00
Steve 8bbe9f69e2 Removed unused TT_PLAYER_ESCAPED. 2016-05-17 16:04:03 +01:00
Steve dd407e2f1c Don't allow an objective to be failed and completed at the same time. 2016-05-17 15:55:18 +01:00
Steve 3593832a76 Activate / deactivate nodes as well as jumpgate. 2016-05-17 13:49:33 +01:00
Steve e7bfeef2cd Suspicion tweaks. 2016-05-17 13:49:21 +01:00
Steve 3778b2e22e Don't become suspicious if still in cool off period. 2016-05-17 13:47:36 +01:00
Steve 96f94dba14 Update the Player escape objective when using a jumpgate. 2016-05-17 13:47:04 +01:00
Steve 60d477b754 Don't become suspicious of the player immediately after combat ends. 2016-05-17 11:34:32 +01:00
Steve d3091caed5 Don't circle your destination if you're near it. 2016-05-17 11:34:08 +01:00
Steve 6794a3c268 Entities with SIDE_NONE don't count as enemies. 2016-05-17 11:32:48 +01:00
Steve 75c9a25a96 Halved maximum suspicion level. 2016-05-17 11:32:13 +01:00
Steve 45e95451bd Spawn Pandoran backup more quickly. 2016-05-17 11:31:59 +01:00
Steve f8590ce106 React quickly to retreat call (might be wandering for several more seconds). 2016-05-17 11:31:42 +01:00
Steve 8e8e0394fd Remove wander flag when retreating. 2016-05-17 11:17:54 +01:00
Steve 268a7165e7 Attempt to prevent the last speaker from becoming the chosen wingmate. 2016-05-16 17:04:49 +01:00
Steve 447fb22630 Suspicion rendering tweaks. 2016-05-16 17:04:32 +01:00
Steve 7471371b61 Raise suspicion levels if player fires guns or uses ECM when enemies are present. 2016-05-16 17:03:46 +01:00
Steve 2af1fa6476 Summon backup when player's cover is blown. 2016-05-16 17:03:02 +01:00
Steve c61f47ec33 NULL scriptJSON when destroying script. 2016-05-16 17:02:26 +01:00
Steve 13253ee1e8 Suspicion related updates. 2016-05-16 11:40:39 +01:00
Steve ceb7040ce8 Use MB_IMPORTANT. 2016-05-16 10:55:28 +01:00
Steve 059ba3c540 Measure Pandoran font properly. 2016-05-16 10:55:13 +01:00
Steve ee4e88668e Added suspicion level, for optional missions. 2016-05-16 10:54:46 +01:00
Steve fa04c4bd1b hasThreats counts for active and inactive enemy vessels. 2016-05-15 17:38:44 +01:00
Steve af55539daa Only speak if you're on the same side as the player..! 2016-05-15 17:28:31 +01:00
Steve 4aec10e614 Updated hasThreats logic. 2016-05-15 17:28:17 +01:00
Steve 89eb8d4a34 Allow script to change the side of an entity (for use during optional missions). 2016-05-15 14:02:35 +01:00
Steve 038a119965 Added isOptional and optional stats, to allow for optional mission tracking. 2016-05-15 13:53:19 +01:00
Steve 5722b19ec0 Optional Pandoran mission updates. 2016-05-15 11:59:37 +01:00
Steve 0116202471 Use type in Star System instead of isSol, to allow for special Pandoran missions. 2016-05-15 10:50:09 +01:00
Steve 7865a22072 Put Khosrau font into index 0, at 18 point size. Used exclusively for Pandoran missions. 2016-05-15 10:00:56 +01:00
Steve b6513dc1f7 Added type to message box, to allow for Pandoran messages, using different font. 2016-05-15 10:00:06 +01:00
Steve 50883125e1 Merge. 2016-05-15 08:19:26 +01:00
Steve 5d59f1f353 Allow screenshot key to be configured. 2016-04-23 17:46:47 +01:00
Steve d0aa4879eb Allow saving of screenshots by pressing F12. 2016-04-23 08:09:15 +01:00
Steve a5ed044fff Remove addedTo if no ents added and children have none. 2016-04-20 15:44:57 +01:00
Steve 7e752ccae4 Don't recurse into quads that haven't had anything added to them. 2016-04-20 13:53:25 +01:00
Steve 6d8856deae Don't exceed your own speed when following a leader. 2016-04-20 13:53:06 +01:00
Steve d4b791ed17 Tell fighters not to separate from EF_NON_SOLID objects. 2016-04-20 09:38:54 +01:00
Steve a3be44a000 Mine deployment fix. 2016-04-20 09:38:29 +01:00
Steve d871e48144 AIF_ASSASSIN check fix. 2016-04-19 12:50:27 +01:00
Steve c395ee25e5 Allow AIF_ASSASSIN flag to be set, to always attack a target. 2016-04-19 11:13:43 +01:00
Steve add135d62e Jumpgate state fix. 2016-04-19 11:13:20 +01:00
Steve 9f4be9a780 If a mission has hidden objectives, don't complete when all current ones are finished. 2016-04-18 10:54:59 +01:00
Steve 2723e084da Run script function when an enemy is disabled. 2016-04-18 10:54:28 +01:00
Steve c215dc75d3 Jumpgate state fix. 2016-04-17 11:52:48 +01:00
Steve 7c100f0c37 Added button to restore default controls. 2016-04-17 11:26:04 +01:00
Steve 474ede91af Drawing health bars over fighters. 2016-04-17 11:00:08 +01:00
Steve dde34beedb Tell retreating enemies to head for the jumpgate. 2016-04-17 09:11:49 +01:00
Steve c729d59c3a Script call to complete the mission now also completes all objectives. 2016-04-17 09:11:36 +01:00
Steve 9e6d34b914 Made size of mine explosion a little larger. 2016-04-16 16:48:48 +01:00
Steve ccd4160f0e Don't allow boost if you have 0 speed (when playing as a cannon, for example). 2016-04-16 16:48:30 +01:00
Steve 97a067cb34 Load default config first, and then overwrite with user config. 2016-04-16 15:50:23 +01:00
Steve 22ff6aeeb7 Only attach tow ropes to ET_FIGHTER types. 2016-04-16 14:04:32 +01:00
Steve 82acb9f96a Highlight OK button by default when pausing. 2016-04-16 11:07:26 +01:00
Steve 38eca9480d Allow for important messages to be created (such as maydays from capital ships). 2016-04-16 11:00:19 +01:00
Steve 344b2d27b8 Give AIF_TARGET_FOCUS fighters a low chance of targetting something else. 2016-04-16 10:59:42 +01:00
Steve f7c1aa6f1b Update conditions when capital ships are destroyed. 2016-04-16 08:59:14 +01:00
Steve b40936fd79 Always add ents to quadtree, to allow AI to see components. Shuffle around later. 2016-04-15 13:08:30 +01:00
Steve 5e58f09fcf Don't trash original string when working with flags. #funwithflags 2016-04-15 13:07:58 +01:00
Steve 87048e4c85 Apply all flags to capitals ship, except for EF_AI_LEADER. 2016-04-15 13:07:28 +01:00
Steve c3136ea3af Allow flags of spawned entities to be set. 2016-04-15 11:31:39 +01:00
Steve a49817ba2e Leader following AI bug fix. 2016-04-15 11:31:11 +01:00
Steve 915eec5cf0 Allow shadow mines to hunt player, or wander around if not near them. 2016-04-14 16:10:21 +01:00
Steve 7dea0c440e Aster doesn't have a planet, as it's a star system. 2016-04-14 16:09:41 +01:00
Steve 7eee4d3d8e Spawner updates. 2016-04-14 11:56:58 +01:00
Steve 9c8b7af0d6 Added Shadow Mine. 2016-04-14 11:56:42 +01:00
Steve d976c7d3c8 Don't fire missiles at things flagged with EF_NO_KILL. 2016-04-13 11:46:42 +01:00
Steve d2412c2dcb Restore speed of disabled entity when being towed. 2016-04-13 11:46:23 +01:00
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