{"id":594,"date":"2010-03-09T20:05:46","date_gmt":"2010-03-09T20:05:46","guid":{"rendered":"http:\/\/positech.co.uk\/cliffsblog\/?p=594"},"modified":"2010-03-09T20:05:46","modified_gmt":"2010-03-09T20:05:46","slug":"stay-close-fuschia-leader","status":"publish","type":"post","link":"https:\/\/www.positech.co.uk\/cliffsblog\/2010\/03\/09\/stay-close-fuschia-leader\/","title":{"rendered":"&#8220;Stay Close, fuschia leader&#8221;"},"content":{"rendered":"<p>Ok, so new orders are something people often campaign for, and I like the idea of a &#8216;stay in attack formation&#8221; style order for fighters. So today, I went to implement that, and opened an entire canning-factory full of nematodes. I ended up re-writing the AI a bit so there is a definite concept of a fighter squadron (which I&#8217;d got by without, until now). The code gets involved, because each squadron needs a leader it can follow, and that leader needs to be re-elected in the case of the leader getting blown up, its engines shot down, caught in a tractor beam or limpet-mined. I need to test all of that works&#8230; Also I need code to assign slots in a general formation to each fighter, so they don&#8217;t bunch up too much, and look l33t when flying long distances,<\/p>\n<p>I also needed to handle combinations of orders like &#8216;stick together&#8217; and &#8216;formation&#8217;. I think they *do* need to work together, so you can have a fighter squadron sitting in formation at the rear, set to attack effectively only when their parent ship is destroyed, at which point they will then still stick together.<\/p>\n<p>Of course, the big question is &#8220;is it best for the fighters to always stick together?&#8221; I suspect not, I suspect it depends if you want a bunch of general purpose dogfighters, or a coherent strike force. I like to think it&#8217;s a fine balanced decision, but only real life game testing and the eyes of a thousand GSB experts will tell. Here is a video showing how it&#8217;s looking right now:<\/p>\n<p><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"480\" height=\"385\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/IFvu43spSGA&amp;hl=en_GB&amp;fs=1&amp;\" \/><param name=\"allowfullscreen\" value=\"true\" \/><embed type=\"application\/x-shockwave-flash\" width=\"480\" height=\"385\" src=\"http:\/\/www.youtube.com\/v\/IFvu43spSGA&amp;hl=en_GB&amp;fs=1&amp;\" allowscriptaccess=\"always\" allowfullscreen=\"true\"><\/embed><\/object><\/p>\n<p>I should probably add some suitable &#8216;stay in formation perkins!&#8217; comms  chatter too&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ok, so new orders are something people often campaign for, and I like the idea of a &#8216;stay in attack formation&#8221; style order for fighters. So today, I went to implement that, and opened an entire canning-factory full of nematodes. I ended up re-writing the AI a bit so there is a definite concept of<\/p>\n<p class=\"text-right\"><span class=\"screen-reader-text\">Continue Reading&#8230; &#8220;Stay Close, fuschia leader&#8221;<\/span><a class=\"btn btn-secondary continue-reading\" href=\"https:\/\/www.positech.co.uk\/cliffsblog\/2010\/03\/09\/stay-close-fuschia-leader\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,105],"tags":[],"class_list":["post-594","post","type-post","status-publish","format-standard","hentry","category-game-design","category-gratuitous-space-battles"],"_links":{"self":[{"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/posts\/594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/comments?post=594"}],"version-history":[{"count":1,"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/posts\/594\/revisions"}],"predecessor-version":[{"id":595,"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/posts\/594\/revisions\/595"}],"wp:attachment":[{"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/media?parent=594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/categories?post=594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/tags?post=594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}