
I wanna know how to make explosion that ignore all walls, obstacles, with radius i set and it's hurt?
1
parse("explosion_i_don't_care_about_fckng_wallZ "..id.." 1000 1000")

I hope it's that possible to do :<
thank you so much

parse("explosion_i_don't_care_about_fckng_wallZ "..id.." 1000 1000")
oldstate = game("mp_curtailedexplosions") parse("mp_curtailedexplosions 0") parse("explosion 300 300 500 50") parse("mp_curtailedexplosions "..oldstate)
function void_explosion(owner, x, y, radius, damage, ignore_walls) 	if (ignore_walls) then 		parse("explosion "..x.." "..y.." "..radius.." 0 0"); 		local l_list = player(0, "table"); 		for _,id in pairs(l_list) do 			if (id ~= owner) then --do not damage owner 				local l_distance = math.sqrt(int_square(x - player(id, "x")) + int_square(y - player(id, "y"))); 				l_distance = math.floor(l_distance); 				 				if (l_distance <= radius) then 					local l_damage = math.floor(damage - (l_distance / radius) * damage); 					if (player(id, "health") - l_damage <= 0) then 						parse("customkill "..owner.." \"explosion\" "..id); 					else 						parse("sethealth "..id.." "..player(id, "health") - l_damage); 					end 				end 			end 		end 	else 		parse("explosion "..x.." "..y.." "..radius.." "..damage.." "..owner); 	end end function int_square(factor) 	return factor * factor; end