Forum

> > CS2D > Scripts > Machete Explosions
Forums overviewCS2D overview Scripts overviewLog in to reply

English Machete Explosions

2 replies
To the start Previous 1 Next To the start

old Machete Explosions

iCe4147
User Off Offline

Quote
In most RP servers I have seen many with those machete slashes that causes explosions and made me interested in it. I would like to ask for a script that does this EXCEPT the explosions form the shape of a "SLASH" instead of a simple explosion, IF it is possible could the explosions occur where the cursor points?

Please and thank you

old Re: Machete Explosions

Yasday
User Off Offline

Quote
1
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview