Forum

> > CS2D > Scripts > Hudtxt that shows HP
Forums overviewCS2D overview Scripts overviewLog in to reply

English Hudtxt that shows HP

22 replies
Page
To the start Previous 1 2 Next To the start

old Re: Hudtxt that shows HP

Avo
User Off Offline

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

old Re: Hudtxt that shows HP

EngiN33R
Moderator Off Offline

Quote
user Gaios has written
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?
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview