Forum
CS2D General Ideas for CS2D - READ THE FIRST POST (OP)!Map editor should let you search for existing entities too.
edited 1×, last 09.11.21 05:02:25 pm
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.
Noone is talking about essay, but at least have the ability to write a longer sentence, which in this case is impossible.
1
2
3
4
5
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) ...
io.popenon Windows, that the command prompt won't flash on the screen.
It's really annoying! Please change this if you can.
Maybe an env_door that can either be animated or works similarly as a 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
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.
-----
tick hook
Called every frame.
Additionally, mark the always hook as deprecated.
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 player function on an 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
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, ...