Please and thank you
Forum
CS2D Scripts Machete ExplosionsMachete Explosions
2 replies 1
Please and thank you
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addhook([[attack]],[[attacker]]) function attacker(id) 	local wpn = player(id,"weapontype") 	if wpn == 69 then 		local x,y,rot = player(id,"x"),player(id,"y"),player(id,"rot) 		x = x + math.sin(math.rad(rot)) * 100 		y = y - math.cos(math.rad(rot)) * 100 		parse([[explosion ]]..x..[[ ]]..y..[[ 10 100000 ]]..id) 	end end
This is a normal explosion when you attack with machete.
You can't check where the cursor is, so you can't make an explosion there.
From a shape?
edited 1×, last 04.01.11 03:25:02 am
Well thanks anyway really appreciate this!
1