bullet changes

master
D00Med 2016-11-28 17:03:55 +10:00
parent 9bb1039505
commit fac85fd257
1 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ minetest.register_entity("vehicles:bullet", {
on_activate = function(self)
local pos = self.object:getpos()
minetest.sound_play("shot",
{gain = 0.2, max_hear_distance = 3, loop = false})
{gain = 0.4, max_hear_distance = 3, loop = false})
end,
on_step = function(self, obj, pos)
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
obj:punch(self.launcher, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=0.5},
damage_groups={fleshy=1},
}, nil)
self.object:remove()
end