Forum

> > CS2D > General > Exploding snowball
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Exploding snowball

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt geschlossen Exploding snowball

Nilfmir
User Off Offline

Zitieren
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

alt Re: Exploding snowball

RAVENOUS
BANNED Off Offline

Zitieren
LilCoder hat geschrieben
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

alt Re: Exploding snowball

Vectarrio
User Off Offline

Zitieren
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

alt Re: Exploding snowball

RAVENOUS
BANNED Off Offline

Zitieren
Vectar666 hat geschrieben
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht