- Closes #5
This commit is contained in:
Leslie Krause 2020-05-03 12:04:00 -04:00
parent 5dbaf3e6ab
commit 1fe7676bcc
1 changed files with 3 additions and 3 deletions

View File

@ -1258,7 +1258,7 @@ mobs.register_projectile = function ( name, def )
self.trail_effect.vel_x = -sin( yaw + self.trail_effect.angle ) * self.trail_effect.speed self.trail_effect.vel_x = -sin( yaw + self.trail_effect.angle ) * self.trail_effect.speed
self.trail_effect.vel_z = cos( yaw + self.trail_effect.angle ) * self.trail_effect.speed self.trail_effect.vel_z = cos( yaw + self.trail_effect.angle ) * self.trail_effect.speed
minetest.sound_play( self.sounds.launch, { object = self.object, gain = 1, max_hear_distance = 16 } ) minetest.sound_play( self.sounds.launch, { object = self.object, gain = 1 } )
end, end,
on_activate = function( self, staticdata, dtime_s ) on_activate = function( self, staticdata, dtime_s )
@ -1296,7 +1296,7 @@ mobs.register_projectile = function ( name, def )
end end
if move_result.is_swimming and not self.is_swimming then if move_result.is_swimming and not self.is_swimming then
minetest.sound_play( self.sounds.submerge, { object = self.object, gain = 1, max_hear_distance = 16 } ) minetest.sound_play( self.sounds.submerge, { object = self.object, gain = 1 } )
if not self.can_submerge then if not self.can_submerge then
self.object:remove( ) self.object:remove( )
end end
@ -1313,7 +1313,7 @@ mobs.register_projectile = function ( name, def )
self:on_impact_nodes( pos, old_vel, move_result.collisions ) self:on_impact_nodes( pos, old_vel, move_result.collisions )
end end
minetest.sound_play( self.sounds.impact, { object = self.object, gain = 1, max_hear_distance = 16 } ) minetest.sound_play( self.sounds.impact, { object = self.object, gain = 1 } )
self.object:remove( ) self.object:remove( )
end end
end end