I am done with a custom projecttile script.
The happy news is that the bullet even moves through walls.
So how can i detect the walls and bounce back or atleast prevent the bullet from moving futher when it meets a wall.
Here is the scrap:
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
addhook("attack","bbb")
function bbb(id)
local h = player(id,"x")
local j = player(id,"y")
		 img[id]=image("gfx/blabla.png",0,0,0)
			imagepos(img[id],h , j,90)
			tween_move(img[id],500,screenx[id],screeny[id])
			timer(700,"freeimage",img[id])
end
screenx and screeny are client data positions. (who cares anyway.. :/)
edited 1×, last 30.06.17 01:59:34 pm
Detect Wall.
1 
Offline
Ajmin