summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-07-09 08:57:37 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-07-09 08:57:37 +0100
commite4ca054be36a90ce0df813145210891b66442413 (patch)
treebe8f0dd3bf4506c5d46f194191c42f2e25d3a0c1
parent7b02fef7a5ff3542153cb0a03f5457560274693e (diff)
if no tnt add entity damage/effects/sound
-rw-r--r--api.lua9
-rw-r--r--sounds/license.txt5
2 files changed, 10 insertions, 4 deletions
diff --git a/api.lua b/api.lua
index a42b515..b61a703 100644
--- a/api.lua
+++ b/api.lua
@@ -1,9 +1,9 @@
--- Mobs Api (8th July 2017)
+-- Mobs Api (9th July 2017)
mobs = {}
mobs.mod = "redo"
-mobs.version = "20170708"
+mobs.version = "20170709"
-- Intllib
@@ -1694,14 +1694,17 @@ local do_states = function(self, dtime)
self.object:remove()
- if minetest.get_modpath("tnt") then
+ if minetest.get_modpath("tnt") and tnt and tnt.boom then
tnt.boom(pos, {
radius = radius,
damage_radius = damage_radius,
+ sound = self.sounds.explode,
})
else
+ mob_sound(self, self.sounds.explode)
entity_physics(pos, damage_radius)
+ effect(pos, 32, "tnt_smoke.png", radius * 3, radius * 5, radius, 1, 0)
end
return
diff --git a/sounds/license.txt b/sounds/license.txt
index e055c47..3b160fe 100644
--- a/sounds/license.txt
+++ b/sounds/license.txt
@@ -1,4 +1,7 @@
Creative Commons sounds from Freesound.org
mobs_swing.ogg by qubodup
-mobs_spell.ogg by littletobotsoundfactory
+ - http://freesound.org/people/qubodup/sounds/60012/
+
+mobs_spell.ogg by littlerobotsoundfactory
+ - http://freesound.org/people/LittleRobotSoundFactory/sounds/270396/