Re-improved acid spray particles
This commit is contained in:
parent
40c16a1100
commit
f421a878a5
@ -7,8 +7,8 @@ local spray_particles = {
|
||||
max = {x = 0.35, y = 1.6, z = 0.1}
|
||||
},
|
||||
vel = {
|
||||
min = vector.new(-1,-1, 2),
|
||||
max = vector.new(1, 1, 20),
|
||||
min = vector.new(-4,-6, 30),
|
||||
max = vector.new(2, 6, 40),
|
||||
},
|
||||
minacc = {x=0, y=-2, z=10},
|
||||
minsize = 1,
|
||||
@ -31,8 +31,8 @@ local spray_particles = {
|
||||
collisiondetection = true,
|
||||
object_collision = true,
|
||||
collision_removal = true,
|
||||
minexptime = 0.4,
|
||||
maxexptime = 0.5,
|
||||
minexptime = 0.1,
|
||||
maxexptime = 0.2,
|
||||
}
|
||||
|
||||
|
||||
@ -62,9 +62,8 @@ skills.register_skill("fbrawl:acid_spray", {
|
||||
|
||||
-- modifying particles y direction according to the look vertical
|
||||
local vertical = self.player:get_look_vertical()
|
||||
local sensitivity = 10
|
||||
new_particles.vel.min.y = spray_particles.vel.min.y * vertical * sensitivity
|
||||
new_particles.vel.max.y = new_particles.vel.min.y - (spray_particles.vel.max.y - spray_particles.vel.min.y)
|
||||
new_particles.vel.min = vector.rotate_around_axis(new_particles.vel.min, vector.new(1,0,0), -vertical)
|
||||
new_particles.vel.max = vector.rotate_around_axis(new_particles.vel.max, vector.new(1,0,0), -vertical)
|
||||
|
||||
new_particles.attached = self.player
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user