Dateien

> > CS2D > Lua Scripts > Yet another simple class
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Yet another simple class >

16 Kommentare2 kb, 475 Downloads

alt Yet another simple class

Kisses
User Off Offline

I wrote this script out of boredom. It's very simple class script aimed for beginners. Very well commented.


Example of usage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
dofile("sys/lua/wrapper.lua")
dofile("sys/lua/yasc.lua")

yasc.add("Assault", function(id)
	setmaxhealth(id, 75)
	sethealth(id, 75)
	equip(id, 54)
	equip(id, 30)
	setweapon(id, 30)
	speedmod(id, 5)
end)

yasc.add("Engineer", function(id)
	equip(id, 74)
	equip(id, 24)
	setweapon(id, 24)
	speedmod(id, 0)
end)

yasc.add("Defender", function(id)
	setmaxhealth(id, 150)
	sethealth(id, 150)
	equip(id, 40)
	setweapon(id, 40)
	speedmod(id, -5)
end)
Zugelassen von Sparty

Download Download

2 kb, 475 Downloads

Kommentare

16 Kommentare
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Talented Doge
User Off Offline

god defender only 150 hp @_@
Ich mag es!

alt

AlcatrazZ
BANNED Off Offline

not bad
Ich mag es!

alt suck

redown123
User Off Offline

that to me suckwhen im use that script no class!

alt

BcY
Reviewer Off Offline

oh.really great
Ich mag es!

alt

Avo
User Off Offline

I don't need it, too, but nice comments for newbies.
Ich mag es!

alt

Infinite Rain
Reviewer Off Offline

Nice! Hardcoded script lol.
Very nice for beginners
Ich mag es!

alt

FrozerBlue
User Off Offline

okay i download and see

alt

Mechanolith
User Off Offline

It doesn't change anything by downloading or not.
You got a preview on the description.

alt

omg
User Off Offline

frozer, u obviously dont know much about coding
also, uve been registered for 1 day. i hardly think u deserve to critique much
Ich mag es!

alt

FrozerBlue
User Off Offline

classes.lua :S you see you lua/samples file

Stolen

alt

omg
User Off Offline

oh i like the main script; adding classes is very easy
Ich mag es!

alt

Kisses
User Off Offline

@user omg:
Only the example script uses some of its functions like setmaxhealth() and equip(). I find it more stylish than using parse("setmaxhealth " .. id .. " 75").
1× editiert, zuletzt 14.06.12 18:28:34

alt

omg
User Off Offline

why do u use dofile("sys/lua/wrapper.lua")?
Ich mag es!
Zum Anfang Vorherige 1 Nächste Zum Anfang