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
16.01.11 01:22:48 pm
Up
JONY
User
Offline Off
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
16.01.11 02:37:36 pm
Up
Banaan
User
Offline Off
Still a bad idea.
16.01.11 02:53:16 pm
Up
DC
Admin
Offline Off
factis699 has written:
DC! How about buttons?
Bad idea?

yes. we already have menus. they have buttons. lol.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
16.01.11 03:23:14 pm
Up
Loooser
User
Offline Off
i would like to see a function fai_die for the bots script
IMG:http://i45.tinypic.com/saus1e.jpg
16.01.11 03:37:25 pm
Up
SRAN
User
Offline Off
idlike to make weapons like in cc
16.01.11 04:08:36 pm
Up
RyceR
User
Offline Off
function for weapon making! perfectly for my new paintball mod
IMG:http://img704.imageshack.us/img704/4043/userbargimp.png
16.01.11 05:35:29 pm
Up
MAX-russia
User
Offline Off
One of mods from half life decay.
Like: on press "G" change to 2nd frozen player. √
16.01.11 05:37:40 pm
Up
Vectarrio
User
Offline Off
MAX-russia has written:
One of mods from half life decay.
Like: on press "G" change to 2nd frozen player. √

lol, I can do script which does this!
16.01.11 06:07:44 pm
Up
MAX-russia
User
Offline Off
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.
16.01.11 06:29:13 pm
Up
Loooser
User
Offline Off
yes you can do that with a scipt
IMG:http://i45.tinypic.com/saus1e.jpg
16.01.11 06:31:15 pm
Up
DannyDeth
User
Offline Off
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.
16.01.11 08:43:08 pm
Up
DRoNe
User
Offline Off
new mode for image,
rotate + recoil with player

example - skins
IMG:http://img39.imageshack.us/img39/567/drnatimg.png
16.01.11 08:59:17 pm
Up
SQ
Moderator
Offline Off
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:
Code:
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.
17.01.11 07:42:03 am
Up
JONY
User
Offline Off
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 ?
17.01.11 08:24:38 am
Up
DannyDeth
User
Offline Off
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 ).
17.01.11 10:19:34 am
Up
Infinite Rain
Reviewer
Offline Off
I think about making weapons is goodest idea
(Becouse DC say that buttons is bad idea)
And add some effects for weapons
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
17.01.11 01:15:40 pm
Up
Banaan
User
Offline Off
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.
19.01.11 09:12:45 pm
Up
KimKat
GAME BANNED
Offline Off
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.
19.01.11 09:22:13 pm
Up
EngiN33R
Moderator
Offline Off
@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.
I code, therefore I exist. | Visit my blog for Lua tips and other interesting info
19.01.11 09:41:12 pm
Up
KimKat
GAME BANNED
Offline Off
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