Skip to content

Commit

Permalink
Added the start of an attache object which will be used to provide vi…
Browse files Browse the repository at this point in the history
…rtual damage areas for beam attacks.
  • Loading branch information
rkettering committed Apr 29, 2016
1 parent 1fea322 commit 6653dc5
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions data/objects/effects/experimental/damage_beam_attache.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
id: "damage_beam_attache",
is_strict: true,
zorder: "@include data/zorder.cfg:in_front_of_everything",
always_active: true,
solid_dimensions: [],

prototype: ["hittable"],
editor_info: {
category: " ",
},

properties: {
taxonomy: "'neutral'",
attack_damage: "int :: if(higher_difficulty, 2, 1)",
team: "string :: 'evil'",


beam_angle: "decimal :: 60.0",
attack_diameter: "decimal :: 40.0",
attack_radius: "decimal :: lib.math.round( attack_diameter / 2 )",

cartesian_multiplier: "{ x: decimal, y: decimal } :: { x: cos(beam_angle), y: sin(beam_angle) }",

hitbox_animation: "map :: {
id: 'image',
image: 'effects/particles.png',
x: 0,
y: 0,
w: 20,
h: 20,
//attack_area: 'all',
body_area: 'all',
attack_area: [-attack_radius, -attack_radius, attack_radius, attack_radius, 'solid'],
}",


},

on_create: "[set(animation, hitbox_animation)]",

on_process: "set(animation, hitbox_animation)",

}

0 comments on commit 6653dc5

Please sign in to comment.