Forum

> > CS2D > Scripts > Explosion snake
Forums overviewCS2D overview Scripts overviewLog in to reply

English Explosion snake

6 replies
To the start Previous 1 Next To the start

old Explosion snake

Mora
User Off Offline

Quote
Hello all
I need script like this,or it have on this site:
when i press F3 then will explosion snake to pointer.
i cant make screenshots sorry.
i make one with paint

old Re: Explosion snake

Rainoth
Moderator Off Offline

Quote
Oh. I thought it was going to crawl like a snake so I was about to give up but it's just a line

Luckily, I did something like that before and I still have it somewhere.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("serveraction","boom")
function boom(id,b)
	if b==2 then
		for i=1,4 do
			timer(500*i,"parse","explosion "..player(id,"x")+math.floor(3*i*math.cos(unitangle(player(id,"rot")))*32) .." "..player(id,"y")+math.floor(3*i*math.sin(unitangle(player(id,"rot")))*32) .." 64 35 "..id)
		end
	end
end

function unitangle(rot)
	if rot<-90 then rot=rot+360 end
	local angle=math.rad(math.abs(rot+90))-math.pi
	return angle
end

I got unitangle function from user EngiN33R when I was learning how to make no-clip. You should thank him for that function.
EDIT : Mind that you have to wield Machete to start the snake when you attack. You can modify everything in timer that has numbers to suit your needs. Higher loop will mean more explosions.
edited 1×, last 07.09.13 12:15:55 pm

old Re: Explosion snake

Mora
User Off Offline

Quote
Oh,it would be very cool
Edit: i need it with F3 but not with attack
please edit it =O im n**b in scripts
Thanks you

old Re: Explosion snake

Rainoth
Moderator Off Offline

Quote
Is it really that hard ? If you can't make anything so simple like change hook to suit your needs, you're going to have a hard time. Eventually you'll have to make everything yourself and you won't be able to ... At least try to understand what people write for you..

old Re: Explosion snake

Mora
User Off Offline

Quote
Oh I will try now
Edit: yaayy! you are god! @user Rainoth: .You help all times! you best people on this world! Thanks
edited 1×, last 07.09.13 12:36:17 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview