2022-11-28 14:46:55 -06:00
|
|
|
--[[
|
|
|
|
X Bows. Adds bow and arrows with API.
|
2024-01-04 17:11:46 -06:00
|
|
|
Copyright (C) 2024 SaKeL
|
2022-11-28 14:46:55 -06:00
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to juraj.vajda@gmail.com
|
|
|
|
--]]
|
|
|
|
|
2022-10-20 08:13:35 -05:00
|
|
|
XBows:register_particle_effect('arrow', {
|
|
|
|
amount = 1,
|
|
|
|
time = 0.1,
|
2022-10-24 15:31:23 -05:00
|
|
|
minexptime = 0.5,
|
|
|
|
maxexptime = 0.5,
|
2022-10-20 08:13:35 -05:00
|
|
|
minsize = 2,
|
|
|
|
maxsize = 2,
|
|
|
|
texture = 'x_bows_arrow_particle.png',
|
|
|
|
animation = {
|
|
|
|
type = 'vertical_frames',
|
|
|
|
aspect_w = 8,
|
|
|
|
aspect_h = 8,
|
|
|
|
length = 1,
|
|
|
|
},
|
2022-10-24 15:31:23 -05:00
|
|
|
glow = 1,
|
2022-11-03 12:06:43 -05:00
|
|
|
minvel = { x = 0, y = -0.1, z = 0 },
|
|
|
|
maxvel = { x = 0, y = -0.1, z = 0 },
|
|
|
|
minacc = { x = 0, y = -0.1, z = 0 },
|
|
|
|
maxacc = { x = 0, y = -0.1, z = 0 }
|
2022-10-20 08:13:35 -05:00
|
|
|
})
|
|
|
|
|
|
|
|
XBows:register_particle_effect('arrow_crit', {
|
2022-10-24 15:31:23 -05:00
|
|
|
amount = 1,
|
2022-10-20 08:13:35 -05:00
|
|
|
time = 0.1,
|
|
|
|
minexptime = 0.5,
|
|
|
|
maxexptime = 0.5,
|
|
|
|
minsize = 2,
|
|
|
|
maxsize = 2,
|
|
|
|
texture = 'x_bows_arrow_particle.png^[colorize:#B22222:127',
|
|
|
|
animation = {
|
|
|
|
type = 'vertical_frames',
|
|
|
|
aspect_w = 8,
|
|
|
|
aspect_h = 8,
|
|
|
|
length = 1,
|
|
|
|
},
|
2022-10-24 15:31:23 -05:00
|
|
|
glow = 1,
|
2022-11-03 12:06:43 -05:00
|
|
|
minvel = { x = 0, y = -0.1, z = 0 },
|
|
|
|
maxvel = { x = 0, y = -0.1, z = 0 },
|
|
|
|
minacc = { x = 0, y = -0.1, z = 0 },
|
|
|
|
maxacc = { x = 0, y = -0.1, z = 0 }
|
2022-10-20 08:13:35 -05:00
|
|
|
})
|
|
|
|
|
|
|
|
XBows:register_particle_effect('arrow_fast', {
|
2022-10-24 15:31:23 -05:00
|
|
|
amount = 1,
|
2022-10-20 08:13:35 -05:00
|
|
|
time = 0.1,
|
|
|
|
minexptime = 0.5,
|
|
|
|
maxexptime = 0.5,
|
|
|
|
minsize = 2,
|
|
|
|
maxsize = 2,
|
|
|
|
texture = 'x_bows_arrow_particle.png^[colorize:#0000FF:64',
|
|
|
|
animation = {
|
|
|
|
type = 'vertical_frames',
|
|
|
|
aspect_w = 8,
|
|
|
|
aspect_h = 8,
|
|
|
|
length = 1,
|
|
|
|
},
|
2022-10-24 15:31:23 -05:00
|
|
|
glow = 1,
|
2022-11-03 12:06:43 -05:00
|
|
|
minvel = { x = 0, y = -0.1, z = 0 },
|
|
|
|
maxvel = { x = 0, y = -0.1, z = 0 },
|
|
|
|
minacc = { x = 0, y = -0.1, z = 0 },
|
|
|
|
maxacc = { x = 0, y = -0.1, z = 0 }
|
2022-10-20 08:13:35 -05:00
|
|
|
})
|
|
|
|
|
|
|
|
XBows:register_particle_effect('bubble', {
|
|
|
|
amount = 1,
|
|
|
|
time = 1,
|
2022-11-03 12:06:43 -05:00
|
|
|
minvel = { x = 1, y = 1, z = 0 },
|
|
|
|
maxvel = { x = 1, y = 1, z = 0 },
|
|
|
|
minacc = { x = 1, y = 1, z = 1 },
|
|
|
|
maxacc = { x = 1, y = 1, z = 1 },
|
2022-10-20 08:13:35 -05:00
|
|
|
minexptime = 0.2,
|
|
|
|
maxexptime = 0.5,
|
|
|
|
minsize = 0.5,
|
|
|
|
maxsize = 1,
|
|
|
|
texture = 'x_bows_bubble.png'
|
|
|
|
})
|