my first changes
This commit is contained in:
+1
-4
@@ -66,7 +66,7 @@ minetest.register_entity("portalgun:powerball",{
|
||||
initial_sprite_basepos = {x=0, y=0},
|
||||
is_visible = true,
|
||||
makes_footstep_sound = false,
|
||||
automatic_rotate = false,
|
||||
automatic_rotate = 0,
|
||||
portalgun=2,
|
||||
powerball=1,
|
||||
on_activate= function(self, staticdata)
|
||||
@@ -87,8 +87,6 @@ on_step= function(self, dtime)
|
||||
for i, ob in pairs(minetest.get_objects_inside_radius(pos, 2)) do
|
||||
if ob:is_player() or (ob:get_luaentity() and ob:get_luaentity().portalgun~=1 and ob:get_luaentity().wsc==nil and ob:get_luaentity().powerball~=1) then
|
||||
ob:set_hp(0)
|
||||
ob:punch(ob, {full_punch_interval=1.0,damage_groups={fleshy=9000}}, "default:bronze_pick", nil)
|
||||
|
||||
end
|
||||
end
|
||||
self.timer2=self.timer2+1
|
||||
@@ -101,7 +99,6 @@ on_step= function(self, dtime)
|
||||
if self.timer2>40 then
|
||||
minetest.sound_stop(self.sound)
|
||||
self.object:set_hp(0)
|
||||
self.object:punch(self.object, {full_punch_interval=1.0,damage_groups={fleshy=9000}}, "default:bronze_pick", nil)
|
||||
return self
|
||||
end
|
||||
local v=self.object:get_velocity()
|
||||
|
||||
Reference in New Issue
Block a user