Code: Select all
unit.attack_parameters = {
type = "beam",
source_direction_count = 32,
source_offset = { 999, 999 },
range = 5 * uscdat.range,
cooldown = uscdat.cooldown / 0.4,
cooldown_deviation = 0.05,
warmup = 0,
damage_modifier = 0.01,
ammo_type = {
category = "laser",
action = {
type = "direct",
action_delivery = {
type = "beam",
beam = "laser-beam", --string.format("archon-lightning-%02d", level),
max_length = 24,
duration = 30,
source_offset = { 0, 0 }
}
}
},
animation = A.archon_attack(),
range_mode = "center-to-center"
}
As you can see, the laser beam starts at exact center of the archon, despite having source offset of {999, 999}, Changing the value also doesn't do anything. That code snippet is on file protoss-redux_0.0.1/prototypes/entity/unit/archon.lua from my attached mods.zip file