{"id":833,"date":"2023-02-13T13:59:08","date_gmt":"2023-02-13T18:59:08","guid":{"rendered":"https:\/\/chronocrash.com\/obor\/wiki\/?p=833"},"modified":"2024-01-13T10:26:34","modified_gmt":"2024-01-13T15:26:34","slug":"hit-effects-flash","status":"publish","type":"post","link":"https:\/\/chronocrash.com\/obor\/wiki\/hit-effects-flash\/","title":{"rendered":"Hit Effects (Flash)"},"content":{"rendered":"\n<p>Hit effects are sounds and graphical effects typically played in response to in game hits to add audio graphical appeal. OpenBOR has a suite of native hit flash effects to give your projects a personal touch.<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">Documentation in progress.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Flash Adjustments<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Position and Layer<\/h3>\n\n\n\n<p>As OpenBOR games normally include Z axis movement, you&#8217;ll want to make sure the flash spawns appear in a way that looks best for your game. By default, OpenBOR positions flash entities at a collision&#8217;s point of contact. The flash entity&#8217;s drawing layer is then adjusted to overlay on the attacker or target (whichever is closer to player&#8217;s point of view). Modify this behavior using the properties below. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Flash Z Source<\/h4>\n\n\n\n<p>This group of properties determines where OpenBOR will get the initial Z position for spawning flash entities.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>global_config_flash_z_source<\/code> (default 0) &#8211; Models.txt property. Initial Z source value for all native flash spawns.<\/li>\n\n\n\n<li><code>attack.effect.hit.flash.z.source<\/code> (default 0) &#8211; Attack box property. Adjusts flash Z source for the attack body.<\/li>\n\n\n\n<li><code>bbox.effect.hit.flash.z.source<\/code> (default 0) &#8211; Body box property. Adjusts flash Z source for the body box.<\/li>\n<\/ul>\n\n\n\n<p>OpenBOR will apply the total of all properties and use it to determine the Z position as follows:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Flash Z Source<\/th><th>Flash Z Position<\/th><\/tr><\/thead><tbody><tr><td>&lt;= -255<\/td><td>Lowest <a href=\"https:\/\/chronocrash.com\/obor\/wiki\/axis\/\" data-type=\"post\" data-id=\"59\">Z Axis<\/a> position between attacker and target.<\/td><\/tr><tr><td>&gt; -255 and &lt; 0<\/td><td>Attacker&#8217;s <a href=\"https:\/\/chronocrash.com\/obor\/wiki\/axis\/\" data-type=\"post\" data-id=\"59\">Z Axis<\/a> position.<\/td><\/tr><tr><td>0<\/td><td>Exact point of collision.<\/td><\/tr><tr><td>&gt; 0 and &lt; 255<\/td><td>Target&#8217;s <a href=\"https:\/\/chronocrash.com\/obor\/wiki\/axis\/\" data-type=\"post\" data-id=\"59\">Z Axis<\/a> position.<\/td><\/tr><tr><td>&gt;= 255<\/td><td>Highest <a href=\"https:\/\/chronocrash.com\/obor\/wiki\/axis\/\" data-type=\"post\" data-id=\"59\">Z Axis<\/a> position between attacker and target.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Note that for scripted hits, missing attacker or target entities both default to point of collision, which itself defaults to 0.<\/p>\n\n\n\n<p><strong>Tip:<\/strong> This system is designed so you can prioritize the global, attack, or body box properties on a case by case basis. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Flash Layer Source<\/h4>\n\n\n\n<p>Flash layer automatically sets the initial setlayer property of flash model. This allows it to appear overlaid (or behind) consistently regardless of its actual Z position. Flash layer includes a source adjustment similar to Z Source, and a static adjustment.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>global_config_flash_layer_source<\/code> (Default 255) &#8211; Models.txt property. Initial Flash Layer source value for all native flash spawns.<\/li>\n\n\n\n<li><code>attack.effect.hit.flash.layer.source<\/code> (Default 0) &#8211; Attack box property. Adjusts Flash Layer source for the attack body.<\/li>\n\n\n\n<li><code>bbox.effect.hit.flash.layer.source<\/code> (Default 0) &#8211; Body box property. Adjusts Flash Layer source for the body box.<\/li>\n<\/ul>\n\n\n\n<p>OpenBOR determines the drawing layer using total Flash Layer value as follows:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Flash Layer<\/th><th>Initial Layer Value<\/th><\/tr><\/thead><tbody><tr><td>&lt;= -255<\/td><td>Lowest <a href=\"https:\/\/chronocrash.com\/obor\/wiki\/axis\/\" data-type=\"post\" data-id=\"59\">Z Axis<\/a> position between attacker and target.<\/td><\/tr><tr><td>&gt; -255 and &lt; 0<\/td><td>Attacker&#8217;s <a href=\"https:\/\/chronocrash.com\/obor\/wiki\/axis\/\" data-type=\"post\" data-id=\"59\">Z Axis<\/a> position.<\/td><\/tr><tr><td>0<\/td><td>Exact point of collision.<\/td><\/tr><tr><td>&gt; 0 and &lt; 255<\/td><td>Target&#8217;s <a href=\"https:\/\/chronocrash.com\/obor\/wiki\/axis\/\" data-type=\"post\" data-id=\"59\">Z Axis<\/a> position.<\/td><\/tr><tr><td>&gt;= 255<\/td><td>Highest <a href=\"https:\/\/chronocrash.com\/obor\/wiki\/axis\/\" data-type=\"post\" data-id=\"59\">Z Axis<\/a> position between attacker and target.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Flash Layer Adjustment<\/h4>\n\n\n\n<p>Flash layer adjustment properties are added as an arbitrary adjustment after other calculations. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>global_config_flash_layer_adjust<\/code> (Default 1) &#8211; Models.txt property. Initial Flash Layer adjustment for all native flash spawns.<\/li>\n\n\n\n<li><code>attack.effect.hit.flash.layer.adjust<\/code> (Default 0) &#8211; Attack box property. Adjusts Flash Layer adjustment for the attack body.<\/li>\n\n\n\n<li><code>bbox.effect.hit.flash.layer.adjust<\/code> (Default 0) &#8211; Body box property. Adjusts Flash Layer adjustment for the body box.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Hit flash and sound effect adjustment.<\/p>\n","protected":false},"author":1,"featured_media":857,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[36,30,254,17,328],"tags":[412,409,406,413,410,407,411,408,405],"class_list":["post-833","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-audio","category-game-mechanics","category-global-configuration","category-graphics","category-openbor","tag-attack-effect-hit-flash-layer-adjust","tag-attack-effect-hit-flash-layer-source","tag-attack-effect-hit-flash-z-source","tag-bbox-effect-hit-flash-layer-adjust","tag-bbox-effect-hit-flash-layer-source","tag-bbox-effect-hit-flash-z-source","tag-obor_global_config_flash_layer_adjust","tag-global_config_flash_layer_source","tag-global_config_flash_z_source"],"revision_note":"","jetpack_featured_media_url":"https:\/\/i0.wp.com\/chronocrash.com\/obor\/wiki\/wp-content\/uploads\/2023\/02\/hit_flsah_example_0.png?fit=420%2C428&ssl=1&wsr","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/chronocrash.com\/obor\/wiki\/wp-json\/wp\/v2\/posts\/833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chronocrash.com\/obor\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chronocrash.com\/obor\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chronocrash.com\/obor\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chronocrash.com\/obor\/wiki\/wp-json\/wp\/v2\/comments?post=833"}],"version-history":[{"count":5,"href":"https:\/\/chronocrash.com\/obor\/wiki\/wp-json\/wp\/v2\/posts\/833\/revisions"}],"predecessor-version":[{"id":1395,"href":"https:\/\/chronocrash.com\/obor\/wiki\/wp-json\/wp\/v2\/posts\/833\/revisions\/1395"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chronocrash.com\/obor\/wiki\/wp-json\/wp\/v2\/media\/857"}],"wp:attachment":[{"href":"https:\/\/chronocrash.com\/obor\/wiki\/wp-json\/wp\/v2\/media?parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chronocrash.com\/obor\/wiki\/wp-json\/wp\/v2\/categories?post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chronocrash.com\/obor\/wiki\/wp-json\/wp\/v2\/tags?post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}