Forum

> > CS2D > Scripts > What should be changed in lua?
Forums overviewCS2D overview Scripts overviewLog in to reply

English What should be changed in lua?

41 replies
Page
To the start Previous 1 2 3 Next To the start

Poll Poll

What command should be added in lua scripting for Cs2D?

Only registered users are allowed to vote
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 votes cast

old Re: What should be changed in lua?

MAX-russia
User Off Offline

Quote
I well vote Add more weapons , actins and effects if i can!I dont think that add weapons mod can be in lua but ther is opportunity to make it your self

old Re: What should be changed in lua?

Scaleopi
User Off Offline

Quote
@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.

old Re: What should be changed in lua?

oxytamine
User Off Offline

Quote
Ipoleacs has written
@Mephiles
Ah,yeah,you are the dude

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

But then I lol'd.

old Re: What should be changed in lua?

JONY
User Off Offline

Quote
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

old Re: What should be changed in lua?

Banaan
User Off Offline

Quote
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.
edited 1×, last 16.01.11 09:27:31 am

old Re: What should be changed in lua?

Yasday
User Off Offline

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

old Re: What should be changed in lua?

oxytamine
User Off Offline

Quote
Yasday has written
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.

old Re: What should be changed in lua?

DC
Admin Off Offline

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

old Re: What should be changed in lua?

Infinite Rain
Reviewer Off Offline

Quote
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

old Re: What should be changed in lua?

Banaan
User Off Offline

Quote
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?
To the start Previous 1 2 3 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview