Files

> > CS2D > Lua Scripts > 3 ways to kill people with explosion
Files overviewCS2D overviewLua Scripts overview

English 3 ways to kill people with explosion >

14 comments2 kb, 632 Downloads

old 3 ways to kill people with explosion

JONY
User Off Offline

The easiest way to kill player with explosion is just:
1
parse("explosion x y size damage source_player")
, but we won't talk about it.

I made this script so that people will see how one can use recursion (http://en.wikipedia.org/wiki/Recursion) in lua.

1st way: say !go
This will make explosion in all walkable area relative to you (screenshot 1). It looks quite nice, but might make some lag.
ATTENTION: dont say "!go" twice, wait before the first one is finished.

2nd way: say !shoot
This is like a ball, which reflects from walls (sometimes it fails due to the structure of cs2d itself), but as this 'ball' goes it makes explosions on the way (screenshots 2-3)

3rd way: say !hunt
finds a random enemy and 'walks' to him making explosions on its way. There are 2 ways how the explosion finds path to the victim (see code). Screenshot 4.

P.S. the main purpose of this code is for people, who are not so good in lua/programming to see how things can be done.
Approved by GeoB99

Download Download

2 kb, 632 Downloads

Comments

14 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

buraxia3
User Off Offline

You're sadist! AWESOME LUA! TIME TO DIE!!!
I like it!

old

kalis
User Off Offline

this lua nice but make lag !

old

Alistaire
User Off Offline

You should add an explosion which follows you from a distance

Oh wait, that's what you want us to do eh
I like it!

old

Infinite Rain
Reviewer Off Offline

Nice! I will test it!
You genius
And Robotic Brains its not too hard t0 made
I like it!

old

killerboy1
User Off Offline

How can i stop the shoot?
I like it!

old

Robotic-Brain
User Off Offline

lol what the hell is that?

unbelievable

you must be a genius
I like it!

old

Reyhan
User Off Offline

WOW! I like this XD..
Genius
I like it!

old

Snake_Eater
User Off Offline

Omg the reflection thing is so brilliant so brilliant I dont get the reflection thing OMG SO BRILLIANT

Ps:Jony are you german?
I like it!

old

loldlold123
User Off Offline

OMG VERY COOL AWANSOMEEE
I like it!

old

boyzinthewoodz
User Off Offline

wow cool i wanna edit it bc i think on a public server its way to laggy :d
I like it!

old

Hunter162
User Off Offline

WOW awesome, i try it and i get 1000kills in a minute
I like it!

old

Marcell
Super User Off Offline

awesome! this is perfect
I like it!

old

oxytamine
User Off Offline

I haven't downloaded it yet, but it looks awesome.
I like it!

old

Vectarrio
User Off Offline

lol, I like it, and 3rd way is just like a LIVING explosion!
awesome!, 5/5
Recursion: see recursion.
I like it!
To the start Previous 1 Next To the start