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

3,165 replies
Goto Page
To the start Previous 1 2 ... 157 158 159 Next To the start
12.06.20 09:22:14 am
Up
MikuAuahDark
User
Offline Off
Is it possible to add prompt when the USGN verification failed instead of just being stuck?
file cs2d LuaJIT for Dedicated Server (12) JIT POWER! | Know your Lua errors! | Part of LÖVE development team since 11.3
24.06.20 06:16:19 pm
Up
Mami Tomoe
User
Offline Off
For the tween functions, add an optional parameter that will take in a function and will call it once the tween had stopped moving with the following values:

tweenstate:

0 - Tween completed - the animation is done
1 - Tween cancelled - when the round restarts, the image gets freed or the respective function is used to reset the image (For example:
tween_pos = imagepos
).
2 - Tween abrupted - when another tween is called and resets the animation


Or you could do this with a hook (
tweenhook
) as well, though less efficient.
In that case also add a tweenstate for starting the tween.

Or do both!
fish
24.06.20 11:01:39 pm
Up
Gaios
Security Supporter
Offline Off
@user Mami Tomoe: You can save
os.clock * 1000 + tweenTimer
and then check timer, to get info if a image is animating or not.
28.06.20 06:17:54 pm
Up
TobyInChina
User
Offline Off
add a function to change masterserver ip in setting.
CS2D Chinese Station(CS2DCN) Founder。Chinese language translation submitter!As you see,We are the second largest player group of CS2D! | Our Discord
28.06.20 06:18:56 pm
Up
Mami Tomoe
User
Offline Off
user Gaios has written:
@user Mami Tomoe: You can save
os.clock * 1000 + tweenTimer
and then check timer, to get info if a image is animating or not.


Not reliable.
fish
28.06.20 07:53:37 pm
Up
Feedison
User
Offline Off
AUG is too powerful. Can you nerf this weapon pls? I cant play normally with the AUG players, they always destroying me (my aim is pretty good).
28.06.20 08:27:41 pm
Up
mrc
User
Offline Off
Just decrease damage, use 22 for regular shot and 24 for scoped, use the same values for SG552. I rebalanced weapons in my server and they are great, much better than default.
17.08.20 01:08:17 pm
Up
Mami Tomoe
User
Offline Off
When you follow a friend through the USGN friend list, once you join the server the spectated player should be the friend (if possible).
fish
19.08.20 02:11:47 am
Up
TobyInChina
User
Offline Off
user Mami Tomoe has written:
When you follow a friend through the USGN friend list, once you join the server the spectated player should be the friend (if possible).

Maybe can add a function :
follow a friend by Steam , if click "follow a friend",they can join your friend server.
CS2D Chinese Station(CS2DCN) Founder。Chinese language translation submitter!As you see,We are the second largest player group of CS2D! | Our Discord
19.08.20 09:37:38 am
Up
LiME1516
User
Offline Off
Block bad words in the server name.
S.T.A.L.K.E.R. RP - https://discord.gg/wQUEKSB
22.11.20 01:00:06 am
Up
Mami Tomoe
User
Offline Off
(removed previous post)

A new feature for spectating (similar to the fog button toggle).

When enabled, and the spectated player:
> Uses a scope; you will see the scope.
> Gets flash banged; you will be blinded.

When disabled (default), and the spectated player:
> Uses a scope; you will not see the scope.
> Gets flash banged; you will not be blinded.

And more if you find more ideal things to add, also switching the mode while flash banged will remove the effect from the spectator.


EDIT:
Caption parameter for cs2d lua hook kill
That way custom kills (weapon = 250) can also, be managed.


EDIT:
The ability to set a NPC's team, so it will either only attack CT's or T's.
edited 5×, last 05.01.21 05:33:53 pm
fish
15.01.21 02:12:22 am
Up
mrc
User
Offline Off
make sv_stopsound work with sv_soundpos
22.01.21 12:52:58 pm
Up
Mami Tomoe
User
Offline Off
cs2d cmd customkill should accept assists.

Killer - Weapon - Victim - Assistors

Example 1:
parse('customkill "1" "pp" "2" "3" "4" "5"')


Example 2:
parse('customkill "1" "pp" "2,3,4,5"')
fish
24.01.21 05:47:26 pm
Up
Gaios
Security Supporter
Offline Off
Hook: cs2d lua hook itemspawn - that is executed on item spawn: by map, map-item spawn (x) seconds, trigger, item drop, spawnprojectile, (...)
Hook: cs2d lua hook itemremove - the opposite of spawn, after hook cs2d lua hook collect, (...)
Hook: cs2d lua hook objectspawn - similar to itemspawn
Hook: cs2d lua hook objectremove - similar to itemremove

=========================================================================

player(0, 'mouse')
command to get mouse x,y positions of all players in a single API call. Also same for player's mouse, mousemap, map position, tile map position...

It could do performance boost imho, but user SQ told me that returning array could be even slower.

Eg. array of:
Code:
1
2
3
4
5
{
    { id = 1, x = 0, y = 0 },
    { id = 2, x = 0, y = 0 },
    { id = 32, x = 0, y = 0 },
}
edited 3×, last 25.01.21 11:04:41 am
01.02.21 10:07:35 am
Up
Mami Tomoe
User
Offline Off
cs2d lua hook disconnect hook, called after the player already left (and cannot be used using functions like cs2d lua cmd player.
Gives the disconnected player's ID.
fish
01.02.21 06:44:40 pm
Up
DC
Admin
Offline Off
@user Gaios: Not 100% sure but I think most of these hooks would be quite redundant to existing stuff.
itemremove for instance is covered by cs2d lua hook itemfadeout and cs2d lua hook collect. I think the only other way to get rid of items is to remove them manually with commands (you don't need a hook then because you know what you're doing) or round restarts (which remove everything anyway).

@user Mami Tomoe: what do you need that for? cs2d lua hook leave should basically be exactly that. Only with the advantage that you still can access the player data. The data is however removed instantly afterwards in the very same frame. So if you intend to do cleanup or things alike, cs2d lua hook leave is the right hook for you.

If you however want to do cleanup - or other things - WITHOUT the removed player being listed (in calls like cs2d lua cmd player(0, "table")), you could use a cs2d lua cmd timer with a time of 0. It should be executed at the end of the same frame when the player data is gone.

I didn't test that though. Maybe it doesn't work like that.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
01.02.21 07:20:23 pm
Up
Mami Tomoe
User
Offline Off
@user DC: I'm aware of the timer way of doing it, but I do not "trust" timers.

I need it to delete player data from the ID.

Such as:

player_data[id] = nil


But for my case, if the player exists, the script may try to load instead of remove the player data.
(Example: player data was deleted, but a function requests data right after, because the player exists.
The function that will return the data, checks if the player has data, if it doesn't it will check if the player exists, and assume the player is joining, and return the data, but then, the player already left and the data was loaded, causing issues.)
tl;dr: It would be great to have it without using timers.
fish
01.02.21 08:26:14 pm
Up
Masea
Super User
Offline Off
user Mami Tomoe has written:
I need it to delete player data from the ID.

Such as:

player_data[id] = nil
Why not do it inside a cs2d lua hook leave hook as user DC said? Did it many times just like many others, so far no game-breaking issues, or not even minor ones if that matters. It is safe to say a player who has left the server shouldn't be triggering anything anyway.
edited 1×, last 01.02.21 09:58:08 pm
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast II Mod (28)
01.02.21 11:00:01 pm
Up
Mami Tomoe
User
Offline Off
@user Masea: Efficiency, I do not use the
player(p, 'exists')
function call, I'd rather load and delete players using hooks and that's how I know if they exist.

My problem comes when a player leaves, they may trigger other hooks (such as cs2d lua hook drop) and that causes various problems with my method.

Anyways, I'd rather have a proper "delete player" hook, cs2d lua hook disconnect would be perfect for that.
fish
02.02.21 11:38:48 am
Up
Masea
Super User
Offline Off
@user Mami Tomoe: Then, under the cs2d lua hook drop hook, check whether
player_data[id]
exists or not. Or if you want to take it one step further, do use metatables and check if the player exists of the specific data whenever the data table is accessed. Thinking about it now, that'd be simply brilliant.
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast II Mod (28)
To the start Previous 1 2 ... 157 158 159 Next To the start