Commit Graph

536 Commits

Author SHA1 Message Date
Steve 9f239085dc Only print message when mission is in progress (don't spam the console). 2016-06-02 09:49:49 +01:00
Steve 54920dc9b3 Flee immediately when surrendering. 2016-06-02 09:49:28 +01:00
Steve 4ef44ed636 Use campaignFinished variable in battle, to prevent script crashes. 2016-06-01 09:55:28 +01:00
Steve 0cd73db62e Added Waypoint challenge type. 2016-06-01 09:32:10 +01:00
Steve 1474ecf7ca Control trophy alerts from the main loop. 2016-05-31 09:37:46 +01:00
Steve 2b7641b809 Shortern text width, so text doesn't overflow. 2016-05-31 09:16:42 +01:00
Steve c8b6ddd978 Move components offscreen to begin with, so the engine effects don't jump. 2016-05-31 09:13:17 +01:00
Steve 5d5c19a62d Allow campaign to be ended with script. 2016-05-31 09:12:14 +01:00
Steve 8533f7969f "Reset" a fighter by simply spawning another in it's place. 2016-05-30 11:59:31 +01:00
Steve 35b36754e6 Added Torelli destruction. 2016-05-30 11:58:16 +01:00
Steve b723d42dd4 Allow script to immediately terminate mission. 2016-05-29 09:36:37 +01:00
Steve 6d8f9f575e Allow some missions have to unlimited enemies (unwinnable epics). 2016-05-29 09:36:10 +01:00
Steve 1757df1340 Prevent ALL_OBJECTIVES_COMPLETE from firing more than once. 2016-05-28 11:40:56 +01:00
Steve 4cd0c36b73 Revenge trophy requires player to kill the enemy that killed them last. 2016-05-26 18:17:46 +01:00
Steve 4e36f0731f Check surrender chance earlier in ai call. 2016-05-25 12:26:25 +01:00
Steve 197e630fee Add Surrender challenge type. 2016-05-25 12:25:13 +01:00
Steve 997574dbf3 3 second leeway for killing a surrendering target. 2016-05-25 09:43:39 +01:00
Steve b8a9608b10 When changing something's side, make it a mission target if no longer aligned with player. 2016-05-25 09:43:15 +01:00
Steve b36b35834d Move away from targets that you're not allowed to kill, but are still aggressive. 2016-05-25 08:20:53 +01:00
Steve fcb4d815df Misc. code clean up. 2016-05-25 07:57:13 +01:00
Steve 0088dfdee3 Added AIF_SURRENDERING, to better handle surrendering targets and prevent race conditions. 2016-05-25 07:56:48 +01:00
Steve c9536ae938 Reset epic kill streak when switching fighters. 2016-05-24 16:49:14 +01:00
Steve 66263396d9 Added REVENGE trophy. 2016-05-24 16:16:34 +01:00
Steve 9ecdd106dc Only award PANDORAN trophy at end of successful mission. 2016-05-24 11:46:20 +01:00
Steve 300d4ab867 Don't update surrender condition if killed by non-player side. 2016-05-24 09:11:07 +01:00
Steve b2e22b31b9 Reassign linked list pointers after memset (title screen crash). 2016-05-24 09:10:36 +01:00
Steve 4092ae6a10 Increased surrender chance. 2016-05-24 09:09:58 +01:00
Steve dee2d4eecb Set current value = target value when auto completing conditions (hud is inconsistent). 2016-05-23 09:18:52 +01:00
Steve 108a41310c Disable capital ship itself, when gun and engines are destroyed (not just components). 2016-05-23 09:18:10 +01:00
Steve 2a725471c7 If at edge of battle area when fleeing, turn around. 2016-05-22 16:50:11 +01:00
Steve 9af331c64f Memset battle, to avoid stats being added up twice. 2016-05-22 14:18:41 +01:00
Steve e2744cd4d5 Script to call is "ENEMIES_SURRENDERED %d". 2016-05-22 12:17:01 +01:00
Steve b4761e43a9 Don't check other functions if you've already found one to fire. 2016-05-22 12:09:02 +01:00
Steve cda791cfe8 Manual mission complete bug fix. 2016-05-22 12:08:48 +01:00
Steve 41aff3ee3c Added ability for enemy fighters to surrender, if AIF_SURRENDERS is set. 2016-05-22 12:08:19 +01:00
Steve 946afe4a02 Removed INTERVAL script checking - unused. 2016-05-20 10:54:09 +01:00
Steve 7e7b8c5454 Moved max suspicion reaction to scripts in missions. 2016-05-20 10:51:35 +01:00
Steve fba7fc1f54 Misc. clean up. 2016-05-20 09:53:06 +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 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