English What should be changed in lua?

41 replies
Goto 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
Up
Infinite Rain
Reviewer
Offline Off
What should be added in lua?
New commands, hooks, AI?

If you want to give idea post it here.
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
15.01.11 08:09:35 pm
Up
J4x
User
Offline Off
I think that more commands to customize weapons would be awesome.
15.01.11 09:10:04 pm
Up
Ipoleacs
User
Offline Off
Yeah,more lua stuff for weapons..or even better:adding new weapons with lua like in Carnage Contest.
15.01.11 09:18:00 pm
Up
MAX-russia
User
Offline Off
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
15.01.11 09:20:21 pm
Up
Infinite Rain
Reviewer
Offline Off
But how about button hook this is cool doncha?
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
15.01.11 09:21:59 pm
Up
oxytamine
User
Offline Off
You can't change LUA.
15.01.11 09:25:26 pm
Up
MAX-russia
User
Offline Off
Well ther is opportunity.If you well open lua files from the other games like css you can see other scripting.
15.01.11 09:27:49 pm
Up
oxytamine
User
Offline Off
Using translator tools is forbidden. Go away or speak english, I can't even understand what are you talking about.
15.01.11 09:42:02 pm
Up
SRAN
User
Offline Off
lua done in main menu is what i want
15.01.11 09:57:24 pm
Up
Ipoleacs
User
Offline Off
@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.
15.01.11 10:30:10 pm
Up
oxytamine
User
Offline Off
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.
15.01.11 10:40:30 pm
Up
JONY
User
Offline Off
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
15.01.11 11:12:47 pm
Up
Banaan
User
Offline Off
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
15.01.11 11:48:27 pm
Up
Yasday
User
Offline Off
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.
16.01.11 12:05:28 am
Up
oxytamine
User
Offline Off
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.
16.01.11 12:18:45 am
Up
DC
Admin
Offline Off
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.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
16.01.11 10:39:41 am
Up
Infinite Rain
Reviewer
Offline Off
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
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
16.01.11 11:54:44 am
Up
Banaan
User
Offline Off
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?
16.01.11 12:49:31 pm
Up
DC
Admin
Offline Off
bad idea to allow the server to modify client binds...
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
16.01.11 01:13:25 pm
Up
Infinite Rain
Reviewer
Offline Off
DC! How about buttons?
Bad idea?
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
To the start Previous 1 2 3 Next To the start