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?

JONY
User Off Offline

Quote
DC has written
bad idea to allow the server to modify client binds...


When player joins server, which modifies clients' binds, this player becomes a warning "If you do not trust this server you should not join it... bla bla bla" and this player can either accept to proceed or reject the connection

old Re: What should be changed in lua?

MAX-russia
User Off Offline

Quote
You dont understand.

2 players in the map,1 of them is frozen and 2nd is your player.
You move 1 player.On press "G" that player that you moved is freez and then you move the player that was frozen.

old Re: What should be changed in lua?

DannyDeth
User Off Offline

Quote
Banaan has written
- add network support to the standard library. Preferably TCP/UDP and FTP, but HTTP and SMTP would be cool as well


I think you are on the right track, so often I have ended up having to write .dll's or .so's to add even basic networking capabilities to Lua, if one of their bright-spark software engineers would realise this, we would be able to do a lot more with the already wonderful language.

On-topic:
I would like to see an implementation of modifying weapon stats such as rate of fire, damage, weight, etc. This would enable people to create 'training scripts', where the guns do a little more damage, have a little higher rate of fire, maybe a little less heavy, etc so that the newbies can learn how to use perfect weapons and then slowly downgrade until they master weapons on the real scale.

old Re: What should be changed in lua?

SQ
Moderator Off Offline

Quote
DRoNe has written
new mode for image,
rotate + recoil with player

example - skins

There is no need to use dynamic images for that.

Would be enough of function:
1
2
3
ImageSkin("path" = null,[p])
Path = null leads to default skin.
P = player ID or all players
The function should use only 32*32 images. That's all.
This shouldn't be difficult to implement, though.

old Re: What should be changed in lua?

JONY
User Off Offline

Quote
DannyDeth has written
Banaan has written
- add network support to the standard library. Preferably TCP/UDP and FTP, but HTTP and SMTP would be cool as well


I think you are on the right track, so often I have ended up having to write .dll's or .so's to add even basic networking capabilities to Lua, if one of their bright-spark software engineers would realise this, we would be able to do a lot more with the already wonderful language.


For what kind of scripts would you use .dll's ?

old Re: What should be changed in lua?

DannyDeth
User Off Offline

Quote
I meant it as in adding networking capabilities to Lua itself. As in when I am writing a program and I add Lua to use as a scripting language I don't have to write dll/so's to add network capabilities, so Lua could network without using third-party libraries ( the dll's and so's ).

old Re: What should be changed in lua?

Banaan
User Off Offline

Quote
It's already possible to create custom weapons using your own sprites, sounds and cs2d cmd sethealth

Only thing you need to do is perform some tough calculations and create some kind of buy/spawn script for the weapons.

old Re: What should be changed in lua?

KimKat
GAME BANNED Off Offline

Quote
I'd want possibility to easiely create "virtual" physics, objects such as... pushables, barrels. In example, then you could create boulders blocking a path then player can push the boulder aside by moving it in the right direction(s) to clear the path.

Another thing I want changed is the Lua bot AI, the bot freezes when you do "luareset" in the console, especially annoying when you're working to test script with bots. A console command that "re-activates" the bots would be epic. Somewhat useful aswell, I just hate when they freeze and the console spits out some kind of error message. Would be great if there could be fixes done there.

old Re: What should be changed in lua?

EngiN33R
Moderator Off Offline

Quote
@KimKat, I'm sorry, maybe I got you wrong, but when there's an AI lua error, it freezes the bots with bot_freeze, you can write bot_freeze 0 to unfreeze them.

old Re: What should be changed in lua?

KimKat
GAME BANNED Off Offline

Quote
EngiN33R has written
@KimKat, I'm sorry, maybe I got you wrong, but when there's an AI lua error, it freezes the bots with bot_freeze, you can write bot_freeze 0 to unfreeze them.
Yea my bad, I just realised... forget the AI bot part.
To the start Previous 1 2 3 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview