master
_Zaizen_ 2020-08-06 23:10:22 +02:00
parent de8380fd7b
commit 6f4872283f
1 changed files with 22 additions and 0 deletions

View File

@ -24,6 +24,17 @@ quake.explode = function(self)
quake.shoot(self.p_name, obj, (damage/5), false)
end
end
elseif obj:get_luaentity() then
local entity = obj:get_luaentity()
if entity.initial_properties ~= nil then
if entity.initial_properties.is_bullet or entity.initial_properties.is_grenade then
--distrugge sia il proiettile con cui collide che se stesso
entity:_destroy()
self:_destroy()
return
end
end
end
end
@ -54,6 +65,17 @@ quake.grenade_explode = function(self)
quake.shoot(self.p_name, obj, damage, false)
end
elseif obj:get_luaentity() then
local entity = obj:get_luaentity()
if entity.initial_properties ~= nil then
if entity.initial_properties.is_bullet or entity.initial_properties.is_grenade then
--distrugge sia il proiettile con cui collide che se stesso
entity:_destroy()
self:_destroy()
return
end
end
end
end