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 2160 161 162 Next To the start

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

Mami Tomoe
User Off Offline

Quote
It would be so amazing if there was a hook for when a player opens and closes their chat.

cs2d lua hook chattoggle(p, state)

It'll allow for many cool chat modifications such as skins or even the ability to disable the chat key completely if a return value will also be accepted.

Furthermore there are many cases where knowing if someone's chat is open could benefit in custom game modes.

Such as, but not limited to:
Allowing players to know that someone is typing a message and isn't AFK.

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

Mami Tomoe
User Off Offline

Quote
cs2d lua hook team should have an additional parameter signalling why the team change has occurred.

1
2
3
4
5
state = 0 // Client requested
state = 1 // Server requested (command like cs2d:makespec)
state = 2 // Server requested (cs2d:mp_autoteambalance)
state = 3 // Server requested (turning zombies to survivors or favourite team or whatever else can happen)
...

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

Rattle189
User Off Offline

Quote
Option to clamp the cursor to the CS2D window. It can get annoying using a multi-monitor setup.

Maybe an env_door that can either be animated or works similarly as a cs2d entity func_dynwall, at least I wish there was a way to set an open and close sound effect that you can define.
edited 1×, last 26.12.21 01:54:31 pm

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

Mami Tomoe
User Off Offline

Quote
Please allow for cs2d cmd hudtxtalphafade, cs2d cmd hudtxtcolorfade and cs2d cmd hudtxtmove to be used without delay.

Similarly to how images have regular functions and tween functions, when the time given is 0, it should happen within the same frame, rather than the next frame.

For backwards compatibility, you can also allow for -1 for no delay, but honestly this could arguably be considered a bug.

-----

cs2d lua hook tick hook
Called every frame.
Additionally, mark the cs2d lua hook always hook as deprecated.

cs2d lua hook player_mouse hook
Will be called every time a player moves their mouse, some limitations may be applied (such as only calling this every 5/10 frames with the updated values (if anything changed)).
Will be useful for GUI based scripts (avoid calling the cs2d lua cmd player function on an cs2d lua hook always hook to get the mouse positions).
There could be two versions for this hook, one for on map position and the other for on screen position.
Or, give all values within the same hook.
edited 1×, last 26.02.22 05:56:32 pm

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

Kolia_rus
Security Supporter Off Offline

Quote
Make Copy & Paste commands work like they supposed to do. As for now, when I do Ctrl+V, it removes the whole text content and then pastes what it should. This is too annoying, I never saw this in any other software. And copying something (e.g. server IP from the servers list) sometimes just cleans the clipboard, I did not find any regularity in this so most likely it happens randomly.

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

Mami Tomoe
User Off Offline

Quote
user Kolia_rus has written
I did not find any regularity in this so most likely it happens randomly.

Fairly certain that copying server data (such as IP or IP+name) will only work every odd time.
The first time would work, the second wouldn't, the third will, ...
To the start Previous 1 2160 161 162 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview