Forum

> > CS2D > General > Ideas for CS2D - READ THE FIRST POST (OP)!
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Ideas for CS2D - READ THE FIRST POST (OP)!

3,231 replies
Page
To the start Previous 1 284 85 86161 162 Next To the start

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

DC
Admin Off Offline

Quote
@user gamus: Lua scripts are running on the server only. So if you would want to cancel attacking dynamically using Lua scripts it would have to work like this:
• Client: Send attack request to server, wait for response.
• Server: Receive and process request, execute Lua scripts and send corresponding response depending on Lua return value.
• Client: Receive the response and either show attack FX or not.

That works in theory but it would mean that every single attack would have a delay of at least a few milliseconds (and much more when you have a bad ping). This would feel extremely strange and unresponsive.

So with the current system it's impossible to do that in a way that feels good. Sorry.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Starkkz
Moderator Off Offline

Quote
Lua commands:

1
imageparent(what_image, to_what_image)
Parenting images to other images would make their position local to the image they were parented to (useful in case that you don't want to send a overhead of UDP messages to move 300 images at once?).

Also
1
imagetext(what_image, x_offset, y_offset, rotation_offset, text, r, g, b, a)
To be able to display a text which would be parented to a image aswell, so you won't be running out of hud text slots especially if you're running scripts from different sources in the same Lua state.

x_offset, y_offset, rotation_offset should only act as offset values according to the position/rotation of the original image.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

GeoB99
Moderator Off Offline

Quote
You should consider adding "Copy Input", "Paste Input" and the rest of these that I did not mention in my reply on the CS2D Console for Linux systems. I have to deal with "Clear Input" button only on console, so miserable.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Black Wolf
User Off Offline

Quote
user GeoB99 has written
Whenever you are equipped with Stealth Suit, the bots can't see/attack you unless you start shooting at them or doing too much footsteps. Same as for the Smoke Grenade, when I am hidden in a smoke the bots can't see you as long you don't shot at them or going out from the smoke.

Not good idea tho, will be way too easy to hide

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Apache uwu
User Off Offline

Quote
@user sayori: I don't think it would be better if every server was like that. You're changing a major function in the game. And what if there is a button next to a pile a weapons? Trigger the button or pick up a weapon?

@topic: Has a mouse click hook been asked already? It'd be nice for custom menus, because using the attack hook only works when the player is alive, and the serveraction buttons aren't as accessible as the mouse buttons.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Nekomata
User Off Offline

Quote
A separate value save in userstats.dat for the amount of other scores players have achieved in the map. Like bombdefuse, plant, flag, domination, etc. Yes, one can simply get the values of those with something such as this:
1
print('Other Score: '..tonumber(player(id, "score"))-tonumber(player(id, "frags")))
Except there is a score bugs which makes the amount of other scores the user had irretrievable and therefore if you had to patch the score, it would just be this formula:
1
(frags*2)-deaths
instead of
1
(frags*2)+otherScore-deaths
Which ofcourse, patches the score but the player loses all the other score he got.
Therefore, adding a new return hook value and a save of otherscores would solve this problem with something like this:
1
print('Other Score: '..tonumber(player(id, "otherscore")))


A bug like this occurs on major servers. I had to patch over 50 erroneous bugged scores of users like this. Except ofcourse, without their otherscores.
To the start Previous 1 284 85 86161 162 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview