Forum
CS2D General Exploding snowballExploding snowball
5 replies 1
LilCoder has written
I made that once, super grenades
Here the code is:
Here the code is:
1
2
3
4
5
6
7
8
9
10
11
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
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
//edit:
It works! Thanks
edited 1×, last 03.10.09 04:14:57 pm
Vectar666 has written
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
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.
1