English serveraction vs addbind/key

2 replies
Goto Page
To the start Previous 1 Next To the start
30.04.22 03:52:50 pm
Up
mrc
User
Offline Off
Which one cause less network traffic?
CS2DBR @ Comunidade Brasileira de CS2D | https://cs2d.com.br
30.04.22 04:33:27 pm
Up
UrNightmare
User
Offline Off
I think cs2d lua hook serveraction does since its only focusing on the key pressing. Not like cs2d lua cmd addbind do.
edited 2×, last 01.05.22 08:26:43 am
[ String+ ] make string library more extended and advanced!
01.05.22 08:44:32 am
Up
DC
Admin
Offline Off
Yes, cs2d lua hook serveraction is causing less traffic.
cs2d lua cmd addbind needs to send the created key binding to all players and, like user UrNightmare said, it sends a message when pressing AND when releasing a key. cs2d lua hook serveraction only sends a single message for a key press & release.

The additional traffic is relatively small when the keys aren't pressed often though. If you however bind keys like W, A, S, D it will probably cause a significant amount of extra traffic.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
To the start Previous 1 Next To the start