{"id":1613,"date":"2014-11-21T21:49:00","date_gmt":"2014-11-21T21:49:00","guid":{"rendered":"http:\/\/www.spellcasterstudios.com\/?p=1613"},"modified":"2014-11-14T19:01:15","modified_gmt":"2014-11-14T19:01:15","slug":"indoor-behaviors","status":"publish","type":"post","link":"https:\/\/www.spellcasterstudios.com\/?p=1613","title":{"rendered":"Indoor behaviors"},"content":{"rendered":"<p>Been working on the indoor behaviors\u2026 They\u2019re slightly different than the outdoor behaviors, because they have to be constrained to the some indoor area\/room.<\/p>\n<p><a href=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2014\/11\/screen307.jpg\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" title=\"screen307\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"screen307\" src=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2014\/11\/screen307_thumb.jpg\" width=\"830\" height=\"482\" \/><\/a><\/p>\n<p>Some stuff is going horribly wrong, although I can\u2019t pinpoint it\u2026 For example, a lot of times, the enemies will run outside, instead of finding cover inside the base\u2026<\/p>\n<p>I think the problem is that I\u2019m looking at the minimum distance that has no line of sight towards the aggressor, instead of looking at the path length; this means that sometimes is \u201ccloser\u201d to go outside than around the next door, because I just account for linear distance.<\/p>\n<p>The reason I\u2019m doing this is so I don\u2019t have to compute the path for all the \u201cprobe points\u201d, but I don\u2019t know if that\u2019s possible at all to avoid. I could check LOS from the enemy to the probe, but that would skip some potentially good points (namely most of them, if the player was in a straight line with the enemy).<\/p>\n<p>I\u2019ll have to check the performance hit\u2026<\/p>\n<p><em>Now listening to \u201cZero Order\u201d by \u201cRe:aktor\u201d<\/em><\/p>\n<p><em>Link of the Day: Well, I\u2019ve been playing WoW again, so I\u2019ve spent too much time on sites such as this: <a title=\"http:\/\/www.icy-veins.com\/\" href=\"http:\/\/www.icy-veins.com\/\">http:\/\/www.icy-veins.com\/<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Been working on the indoor behaviors\u2026 They\u2019re slightly different than the outdoor behaviors, because they have to be constrained to the some indoor area\/room. Some stuff is going horribly wrong, although I can\u2019t pinpoint it\u2026 For example, a lot of times, the enemies will run outside, instead of finding cover inside the base\u2026 I think [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,147,8],"tags":[23],"class_list":["post-1613","post","type-post","status-publish","format-standard","hentry","category-development","category-chrome-hunter","category-technology","tag-ai"],"_links":{"self":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/1613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1613"}],"version-history":[{"count":1,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/1613\/revisions"}],"predecessor-version":[{"id":1614,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/1613\/revisions\/1614"}],"wp:attachment":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}