Revert modifiche arma

master
Marco 2020-04-10 17:20:48 +02:00
parent 51a7ad6294
commit 70d54373b6
1 changed files with 7 additions and 7 deletions

View File

@ -68,29 +68,29 @@ minetest.register_node("quake:railgun", {
function get_pointed_thing(head_pos, dir, dist)
local p1 = head_pos
local p1 = vector.add(head_pos, vector.divide(dir,4))
local p2 = vector.add(head_pos, vector.multiply(dir, dist))
local ray = minetest.raycast(p1, p2, true, true)
minetest.add_particlespawner({
amount = 50,
time = 0.2,
amount = 20,
time = 0.3,
minpos = p1,
maxpos = p1,
minvel = vector.multiply(dir,500),
maxvel = vector.multiply(dir,500),
minvel = vector.multiply(dir,120),
maxvel = vector.multiply(dir,120),
minexptime = 0.2,
maxexptime = 0.2,
size = 2,
collisiondetection = false,
vertical = false,
texture = "trickerytown.png"
texture = "quake_railgun_trail.png"
})
local i = 0
local target = ray:next() --the player's head
local target2 = ray:next()
if target2 ~= nil then
local target3 = ray:next()
if target3 ~= nil and target3 ~= target then