bullet changes
This commit is contained in:
parent
9bb1039505
commit
fac85fd257
4
init.lua
4
init.lua
@ -205,7 +205,7 @@ minetest.register_entity("vehicles:bullet", {
|
|||||||
on_activate = function(self)
|
on_activate = function(self)
|
||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
minetest.sound_play("shot",
|
minetest.sound_play("shot",
|
||||||
{gain = 0.2, max_hear_distance = 3, loop = false})
|
{gain = 0.4, max_hear_distance = 3, loop = false})
|
||||||
end,
|
end,
|
||||||
on_step = function(self, obj, pos)
|
on_step = function(self, obj, pos)
|
||||||
minetest.after(10, function()
|
minetest.after(10, function()
|
||||||
@ -218,7 +218,7 @@ minetest.register_entity("vehicles:bullet", {
|
|||||||
if obj:get_luaentity().name ~= "vehicles:bullet" and n ~= "vehicles:turret" and obj:get_luaentity().name ~= "__builtin:item" then
|
if obj:get_luaentity().name ~= "vehicles:bullet" and n ~= "vehicles:turret" and obj:get_luaentity().name ~= "__builtin:item" then
|
||||||
obj:punch(self.launcher, 1.0, {
|
obj:punch(self.launcher, 1.0, {
|
||||||
full_punch_interval=1.0,
|
full_punch_interval=1.0,
|
||||||
damage_groups={fleshy=0.5},
|
damage_groups={fleshy=1},
|
||||||
}, nil)
|
}, nil)
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user