Forum

> > CS2D > General > 'Help' How to Make Die Explosion
Forums overviewCS2D overviewGeneral overviewLog in to reply

English 'Help' How to Make Die Explosion

13 replies
To the start Previous 1 Next To the start

old Re: 'Help' How to Make Die Explosion

Admir
User Off Offline

Quote
Funny thread, Is this not Lua Scripting Help section?

Admin/mod comment

This is the CS2D section. So everything about cs2d, not only Lua. /TheKilledDeath

old Re: 'Help' How to Make Die Explosion

Kill_Meh
User Off Offline

Quote
Do you mean as a console command? If you are the owner of a server then type in console:
explosion <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.

old Re: 'Help' How to Make Die Explosion

Kiffer-Opa
User Off Offline

Quote
@Kill_Meh: Your definition has a mistake:

The arguments <source> and <player> are in real one argument: <source player>. Look here cs2d cmd 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"?

old Re: 'Help' How to Make Die Explosion

CmDark
User Off Offline

Quote
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 cs2d cmd 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..

old Re: 'Help' How to Make Die Explosion

GreatRit
COMMUNITY BANNED Off Offline

Quote
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?

old Re: 'Help' How to Make Die Explosion

TimeQuesT
User Off Offline

Quote
so you can make a death explosion
when someone die there will be an explosion that make 50 damage in a 70 radius
1
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

old Re: 'Help' How to Make Die Explosion

DC
Admin Off Offline

Quote
GreatRit has written
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.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview