Forum
CS2D General 'Help' How to Make Die Explosion'Help' How to Make Die Explosion
13 replies 1
Admin/mod comment
This is the CS2D section. So everything about cs2d, not only Lua. /TheKilledDeathexplosion <x> <y> <size> <damage> <source> <player>
(or type in chat with the /)
<x> is <---> coordinate
<y> is | coordinate
<size> how big do you want the sprite to be.
<damage> how big you want the damage to be.
<source> ...
<player> What player set it off. Example: If you are server then you should be 1 or if you are second person to join a server then you are 2.
Did you even attempt to make it?
Maybe we can help you a little, by helping us.
The arguments <source> and <player> are in real one argument: <source player>. Look here explosion. Yeah, it's a weird crazy dumb and nasty bug of CS2D which doesn't show arguments with more than one word correctly.
<source player> can be 0 for "no player". This means, if the explosion kills, no player gets score for this kill.
BoosterxD: What excactly do you want to know? What is a "Die Explosion"?
Kiffer-Opa has written
@Kill_Meh: Your definition has a mistake:
The arguments <source> and <player> are in real one argument: <source player>. Look here explosion. Yeah, it's a weird crazy dumb and nasty bug of CS2D which doesn't show arguments with more than one word correctly.
<source player> can be 0 for "no player". This means, if the explosion kills, no player gets score for this kill.
BoosterxD: What excactly do you want to know? What is a "Die Explosion"?
The arguments <source> and <player> are in real one argument: <source player>. Look here explosion. Yeah, it's a weird crazy dumb and nasty bug of CS2D which doesn't show arguments with more than one word correctly.
<source player> can be 0 for "no player". This means, if the explosion kills, no player gets score for this kill.
BoosterxD: What excactly do you want to know? What is a "Die Explosion"?
I think he means A 1Hit Ko explosion..
always use the online help command reference at www.cs2d.com for more detailed descriptions of commands!
explosion
to make someone explode when he dies you have to use Lua scripting and the die-hook. see sys/lua/info.txt for details.
Quote
Info
Create an explosion somewhere at the map (as server only)
Create an explosion somewhere at the map (as server only)
You can also do it if you know RCon
DC has written
errm yes ... of course you can. you can execute EVERY CS2D command with rcon.
I think he is referring to the "as server only" which I guess excludes rcon?
when someone die there will be an explosion that make 50 damage in a 70 radius
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook ("die","dien") function dien(id) x = player(id,"x"); y = player(id,"y"); size = 70; damage = 50; parse ("explosion "..x.." "..y.." "..size.." "..damage.." "..id) end
GreatRit has written
I think he is referring to the "as server only" which I guess excludes rcon?
DC has written
errm yes ... of course you can. you can execute EVERY CS2D command with rcon.
I think he is referring to the "as server only" which I guess excludes rcon?
rcon = let the server execute your command. so it's like you beeing the server. so it's right
@Schinken:
you don't have to get x and y of the dead guy with commands. instead you can use the coordinates which are passed to the function (see sys/lua/info.txt). these coordinates are the coordinates where that guy died.
1