Forum

> > CS2D > Scripts > Hudtxt that shows HP
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Hudtxt that shows HP

22 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: Hudtxt that shows HP

Avo
User Off Offline

Zitieren
@user Gaios: Whaat? The only thing I understood from your reply was
Zitat
In CS2D you do script that ONLY server calculate it.

alt Re: Hudtxt that shows HP

EngiN33R
Moderator Off Offline

Zitieren
user Gaios hat geschrieben
If there are 32 players with ALWAYS hook, server generate 32 bits * 32 players = 1024 bits = 1 Kb/s. I guess so . UDP uses 32 bits in Network Packet. There is also ping that slows downloading it and other packets outside script.

1024 bits is 128 bytes. And the header alone of a UDP packet is 8 bytes, so an average packet is a bit more than that.

The point is, it's not the tool, it's how you use it. There's always plenty of optimisation to be done for the Lua code itself when you're using something like cs2d lua hook always (I should know), so it would be a good idea to look at your code first and only then start questioning the CS2D code.

At any rate, I think we've come far enough from the original topic of this thread, don't you?
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht