Forum

> > CS2D > Scripts > What should be changed in lua?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch What should be changed in lua?

41 Antworten
Seite
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang

Umfrage Umfrage

What command should be added in lua scripting for Cs2D?

Nur registrierte Benutzer können abstimmen
Add new hook "Button"
4,26% (2)
Add more server actions
4,26% (2)
Add more effects
12,77% (6)
Add functions for renaming weapons
2,13% (1)
Add functions for creating weapons
63,83% (30)
Add new AI for bots
2,13% (1)
Add new hook "hour"
0,00% (0)
Nothing need to add everything OK
10,64% (5)
47 Stimmen abgegeben

alt Re: What should be changed in lua?

Scaleopi
User Off Offline

Zitieren
@Mephiles
Ah,yeah,you are the dude who wanted to play a song in the main menu. lol

Well,i think lua in main menu is pretty useless.The only usefull things you could do,would be stuff like playing a song or joining a random server or something like that,which is kind of already possible.

alt Re: What should be changed in lua?

oxytamine
User Off Offline

Zitieren
Ipoleacs hat geschrieben
@Mephiles
Ah,yeah,you are the dude

First I serious'd...
Ipoleacs hat geschrieben
who wanted to play a song in the main menu. lol

But then I lol'd.

alt Re: What should be changed in lua?

JONY
User Off Offline

Zitieren
ye ye, add new weapons, then change main menu, then change the physics of the game, then change...
Guys, if you change too much it's not gonna be cs2d anymore. It's fine the way it is now

alt Re: What should be changed in lua?

Banaan
User Off Offline

Zitieren
Nothing, actually. Oh wait I know some:

Stuff that could be changed in DC's implementation of Lua in CS2D:
- let the menu function return a menu ID and use this ID as identification rather than the menu title as it is now,
- add a 'return 1' to the vote hook

Stuff that could be changed in Lua itself:
- add the colon operator to tables, allowing stuff like t:insert(v) like it is possible with strings,
- add network support to the standard library. Preferably TCP/UDP and FTP, but HTTP and SMTP would be cool as well

Do I really need this? No.
1× editiert, zuletzt 16.01.11 09:27:31

alt Re: What should be changed in lua?

Yasday
User Off Offline

Zitieren
Don't really need any of those, but it would be nice if there was a function like getmousexy(id) to get the x and y of the player in pixels(not on the map, on the screen) and a function mouseclick(id) wich returns true if the player clicks left(even in a menu) and false if not. mouseclick(id) is better than attack(id) because attack(id) won't work in a menu.

alt Re: What should be changed in lua?

oxytamine
User Off Offline

Zitieren
Yasday hat geschrieben
Don't really need any of those, but it would be nice if there was a function like getmousesexy(id).

Slow fix. Everyone wants sexy mouse.

alt Re: What should be changed in lua?

DC
Admin Off Offline

Zitieren
the server is not aware of the mouse positions (and clicks) of clients. so this is not possible unless I send additional data which would highly increase the traffic for no real reason.

alt Re: What should be changed in lua?

Infinite Rain
Reviewer Off Offline

Zitieren
I think that need to be added new hook BUTTON
That will be useful for a lot of mods

Or autobind when player connect to the server but when player disconnect all keys (What be binded in servers)been unbinded
Soooooz bad enng

alt Re: What should be changed in lua?

Banaan
User Off Offline

Zitieren
binds are client side, lua is server side - you should keep that in mind. Furthermore, what would happen when the server decides to bind keys that the player has already assigned to other binds?
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht