1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
addhook("projectile","a") function a(id,wpn,x,y) 	if (wpn == 54) then 		local team = player(id,"team") 			x = player(id,"tilex") 			y = player(id,"tiley") 					parse ("spawnobject 11 "..(x-2).." "..(y-2).." 0 0 "..team.." "..id) 					parse ("spawnobject 1 "..(x-1).." "..(y-2).." 0 0 "..team.." "..id) 					parse ("spawnobject 1 "..(x).." "..(y-2).." 0 0 "..team.." "..id) 					parse ("spawnobject 1 "..(x+1).." "..(y-2).." 0 0 "..team.." "..id) 					parse ("spawnobject 11 "..(x+2).." "..(y-2).." 0 0 "..team.." "..id) 					parse ("spawnobject 1 "..(x+2).." "..(y-1).." 0 0 "..team.." "..id) 					parse ("spawnobject 1 "..(x+2).." "..(y).." 0 0 "..team.." "..id) 					parse ("spawnobject 1 "..(x+2).." "..(y+1).." 0 0 "..team.." "..id) 					parse ("spawnobject 11 "..(x+2).." "..(y+2).." 0 0 "..team.." "..id) 					parse ("spawnobject 1 "..(x+1).." "..(y+2).." 0 0 "..team.." "..id) 					parse ("spawnobject 1 "..(x).." "..(y+2).." 0 0 "..team.." "..id) 					parse ("spawnobject 1 "..(x-1).." "..(y+2).." 0 0 "..team.." "..id) 					parse ("spawnobject 11 "..(x-2).." "..(y+2).." 0 0 "..team.." "..id) 					parse ("spawnobject 1 "..(x-2).." "..(y+1).." 0 0 "..team.." "..id) 					parse ("spawnobject 1 "..(x-2).." "..(y).." 0 0 "..team.." "..id) 					parse ("spawnobject 1 "..(x-2).." "..(y-1).." 0 0 "..team.." "..id) 				parse ("spawnobject 6 "..(x-1).." "..(y-1).." 0 0 "..team.." "..id) 				parse ("spawnobject 6 "..(x).." "..(y-1).." 0 0 "..team.." "..id) 				parse ("spawnobject 6 "..(x+1).." "..(y-1).." 0 0 "..team.." "..id) 				parse ("spawnobject 6 "..(x+1).." "..(y).." 0 0 "..team.." "..id) 				parse ("spawnobject 6 "..(x+1).." "..(y+1).." 0 0 "..team.." "..id) 				parse ("spawnobject 6 "..(x).." "..(y+1).." 0 0 "..team.." "..id) 				parse ("spawnobject 6 "..(x-1).." "..(y+1).." 0 0 "..team.." "..id) 				parse ("spawnobject 6 "..(x-1).." "..(y).." 0 0 "..team.." "..id) 		end			 	end
When I throw the flare the base will appear not on my player position
if the first one is too long you can give me an example with this one
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
addhook("projectile","a") function a(id,wpn,x,y) 	if (wpn == 54) then 		local team = player(id,"team") 				parse ("spawnobject 11 "..((x-16)/32).." "..((y-16)/32).." 0 0 "..team.." "..id) 				parse ("spawnobject 11 "..((x-16)/31).." "..((y-16)/33).." 0 0 "..team.." "..id) 				parse ("spawnobject 11 "..((x-16)/33).." "..((y-16)/31).." 0 0 "..team.." "..id) 				parse ("spawnobject 11 "..((x-16)/30).." "..((y-16)/34).." 0 0 "..team.." "..id) 				parse ("spawnobject 11 "..((x-16)/34).." "..((y-16)/30).." 0 0 "..team.." "..id) 		end 	end
edited 3×, last 18.11.20 01:06:49 pm