Forum

> > CS2D > General > Exploding snowball
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Exploding snowball

5 replies
To the start Previous 1 Next To the start

old closed Exploding snowball

Nilfmir
User Off Offline

Quote
Hello everyone, I want to make script for exploding snowball but I don't know how (not a scripter) :< So please make that script for me or just explain how to do this please First answer will get a cookie

old Re: Exploding snowball

RAVENOUS
BANNED Off Offline

Quote
LilCoder has written
I made that once, super grenades

Here the code is:

1
2
3
4
5
6
7
8
9
10
11
function explosion(x, y, size, damage)
	parse("explosion "..x.." "..y.." "..size.." "..damage)
end


addhook("projectile","my_projectile")
function my_projectile(id,weapon,x,y)
if(weapon == 75) then  --snowball
            explosion(x,y,300, 300) -- size + damage = 300
end
end

old Re: Exploding snowball

Vectarrio
User Off Offline

Quote
cookie

I think it is no working. I tryed to do smth with snowball as projectile(hook). It is not a projectile for lua in CS2D

old Re: Exploding snowball

RAVENOUS
BANNED Off Offline

Quote
Vectar666 has written
cookie

I think it is no working. I tryed to do smth with snowball as projectile(hook). It is not a projectile for lua in CS2D


Snowball is a projectile, no projectiles are bullets of a gun, like the AK-47, I think.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview