-
Notifications
You must be signed in to change notification settings - Fork 11
/
projectiles.lua
108 lines (104 loc) · 2.34 KB
/
projectiles.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
--require the config file for damage scalar
require("config.config")
local dual_laser = {
type = "projectile",
name = "laser-dual",
flags = {"not-on-map"},
acceleration = 0.01,
action =
{
type = "direct",
action_delivery =
{
type = "instant",
target_effects =
{
{
type = "create-entity",
entity_name = "laser-bubble"
},
{
type = "damage",
damage = { amount = 30*DAMAGE_SCALAR, type = "laser"}
}
}
}
},
light = {intensity = 0.7, size = 20},
animation =
{
filename = "__robotarmy__/graphics/entity/laser/dual-laser.png",
tint = {r=1.0, g=0.0, b=0.0},
frame_count = 1,
width = 24,
height = 33,
priority = "high",
blend_mode = "additive"
},
speed = 0.3
}
local droid_rocket = {
type = "projectile",
name = "droid-explosive-rocket",
flags = {"not-on-map"},
acceleration = 0.035,
action =
{
type = "direct",
action_delivery =
{
type = "instant",
target_effects =
{
{
type = "create-entity",
entity_name = "explosion"
},
{
type = "damage",
damage = {amount = 275*DAMAGE_SCALAR, type = "explosion"}
},
{
type = "create-entity",
entity_name = "small-scorchmark",
check_buildability = true
}
}
}
},
light = {intensity = 0.5, size = 4},
animation =
{
filename = "__base__/graphics/entity/rocket/rocket.png",
frame_count = 8,
line_length = 8,
width = 9,
height = 35,
shift = {0, 0},
priority = "high"
},
shadow =
{
filename = "__base__/graphics/entity/rocket/rocket-shadow.png",
frame_count = 1,
width = 7,
height = 24,
priority = "high",
shift = {0, 0}
},
smoke =
{
{
name = "smoke-fast",
deviation = {0.15, 0.15},
frequency = 1,
position = {0, -1},
slow_down_factor = 1,
starting_frame = 3,
starting_frame_deviation = 5,
starting_frame_speed = 0,
starting_frame_speed_deviation = 5
}
}
}
data:extend({dual_laser, droid_rocket})