Update 6
parent
de8380fd7b
commit
6f4872283f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue