1
0
Fork 0

Remove custom damage particles

objects
Wuzzy 2019-10-03 12:03:36 +02:00
parent d9424ad82e
commit 8b9ac5c6a6
7 changed files with 1 additions and 13 deletions

View File

@ -420,13 +420,7 @@ local damage_effect = function(self, damage)
pos.y = pos.y + (self.collisionbox[5] - self.collisionbox[2]) * .5
local texture
-- do we have a single blood texture or multiple?
if type(self.blood_texture) == "table" then
texture = self.blood_texture[random(1, #self.blood_texture)]
else
texture = self.blood_texture
end
local texture = "mobs_blood.png"
-- full heart damage (one particle for each 2 HP damage)
if amount_large > 0 then
effect(pos, amount_large, texture, 2, 2, 1.75, 0, nil, true)
@ -3182,7 +3176,6 @@ minetest.register_entity(name, {
group_attack = def.group_attack or false,
passive = def.passive or false,
knock_back = def.knock_back ~= false,
blood_texture = def.blood_texture or "mobs_blood.png",
shoot_offset = def.shoot_offset or 0,
floats = def.floats or 1, -- floats in water by default
replace_rate = def.replace_rate,

View File

@ -123,8 +123,6 @@ functions needed for the mob to work properly which contains the following:
e.g. {"player", "mobs_animal:chicken"}.
'runaway_from' contains a table with mob names to run away from, add
"player" to list to runaway from player also.
'blood_texture' has the texture name to use for droplets e.g.
"mobs_blood.png", or table {"blood1.png", "blood2.png"}
'pathfinding' set to 1 for mobs to use pathfinder feature to locate
player, set to 2 so they can build/break also (only
works with dogfight attack and when 'mobs_griefing'

View File

@ -66,7 +66,6 @@ local slime_big = {
textures = {{"mobs_mc_slime.png"}},
visual = "mesh",
mesh = "mobs_mc_slime.b3d",
blood_texture ="mobs_mc_slime_blood.png",
makes_footstep_sound = true,
sounds = {
jump = "green_slime_jump",
@ -165,7 +164,6 @@ local magma_cube_big = {
textures = {{ "mobs_mc_magmacube.png" }},
visual = "mesh",
mesh = "mobs_mc_magmacube.b3d",
blood_texture = "mobs_mc_magmacube_blood.png",
makes_footstep_sound = true,
sounds = {
jump = "mobs_mc_magma_cube_big",

View File

@ -51,7 +51,6 @@ mobs:register_mob("mobs_mc:squid", {
view_range = 16,
runaway = true,
fear_height = 4,
blood_texture = "mobs_mc_squid_blood.png",
})
-- TODO: Behaviour: squirt

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 B