improvement

master
zmv7 2022-04-16 00:31:18 +05:00 committed by GitHub
parent 48c40cd005
commit a8c405e625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,7 @@ local rocket = {
collisionbox = {-0.25,-0.25,-0.25,0.25,0.25,0.25},
--selectionbox = {-0.25,-0.25,-0.25,0.25,0.25,0.25},
collide_with_objects = false,
automatic_face_movement_dir = 270
}
rocket.on_step = function(self, dtime)
self.timer = self.timer + dtime
@ -79,7 +80,7 @@ rocket.on_step = function(self, dtime)
local prop = obj:get_properties()
if not prop then goto nodes end
if obj:is_player() or prop.collide_with_objects then
tnt.boom(pos,{radius=rocket_raduis})
tnt.boom(pos,{radius=rocket_radius})
self.object:remove()
end
end