Forum

> > CS2D > Scripts > Imageconstantrotate()?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Imageconstantrotate()?

7 replies
To the start Previous 1 Next To the start

old Imageconstantrotate()?

Apache uwu
User Off Offline

Quote
Just a question, but that function--you know the one what always rotates an image at a certain speed. Is that server or client sided?

If it is client sided then would it be possible to add more cs2d commands that perform on the client side?

That would be cool, client sided lua--(I know, asked already).

old Re: Imageconstantrotate()?

RAVENOUS
BANNED Off Offline

Quote
Everything with Lua in CS2D is serversided of course. And adding Lua clientsided is way too much risk since it can be hijacked in like a few minutes and open you more gates.

old Re: Imageconstantrotate()?

DC
Admin Off Offline

Quote
• the command is called tween_rotateconstantly (if your one is called Imageconstantrotate than it isn't an original function of CS2D).

• RAVENOUS already said it: Lua is 100% serversided. not a single Lua command is executed on the clientside! this has security reasons and will not be changed.

• why do even you want that command to be clientsided? it really wouldn't change anything. clients see the rotation anyway and the command doesn't waste much traffic because the rotation command is only sent once. there is no permanent traffic caused by the rotation (that's actually the reason why there are the new and awesome tween commands. cool animations with minimum network traffic. god.. they are so cool!)

old Re: Imageconstantrotate()?

Flacko
User Off Offline

Quote
user DC has written
there is no permanent traffic caused by the rotation (that's actually the reason why there are the new and awesome tween commands. cool animations with minimum network traffic. god.. they are so cool!)


I think that's what he meant with client-sided

old Re: Imageconstantrotate()?

Apache uwu
User Off Offline

Quote
Yeah I forgot the command name xD, no I was asking if the command would rotate the image constantly on the client side, with or without internet connection.

Like the dispenser's rotation, turret gun rotation, etc.

old Re: Imageconstantrotate()?

Starkkz
Moderator Off Offline

Quote
That would be better because it doesn't take any traffic, (Just for the first time that this request was sent).

old Re: Imageconstantrotate()?

DC
Admin Off Offline

Quote
uhm... so if the server crashes or the connection drops? yes, it will still rotate for all clients. but what kind of question is that? the game doesn't work when the server/connection crashed so why do you care? you need a server or the game is not playable.

all those tween commands just send ONE single packet telling the client to perform the tween animation with given parameters.

so when you call the rotation command all clients will get a message like: rotate image x with speed y. and they will keep doing that until they get a command which says something different.

old Re: Imageconstantrotate()?

Apache uwu
User Off Offline

Quote
Not completely drop, I mean if the server has some lag--the image tween would still be smooth.

The packet is just telling the client some actions to do.

Since it is possible to do that wouldn't it be possible to create a system of sending initial codes to the client...then activating them--so it's smooth?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview