Forum

> > CS2D > General > CS2D Bug Reports
Forums overviewCS2D overviewGeneral overviewLog in to reply

English CS2D Bug Reports

2,063 replies
Page
To the start Previous 1 2103 104 Next To the start

old Re: CS2D Bug Reports

StirlizZ-Fapicon
Super User Off Offline

Quote
Oh, so THIS is bug reports where are, lemme contribute too.

Both problems are sync between server and client related.

1. If entity env_sprite placed outside the map switching states for it doesnt work for clients, works pretty fine for Server tho.

2. If trigger_Start triggers trigger_if it doesnt affect clients, only server. For example if I want to remove dyn_wall with trigger_if at start of round, only server will see these walls removed and client still have visual and collision of a wall exist. For clients server player phase through the wall and can inflict damage from the other side.

old Re: CS2D Bug Reports

Infinite Rain
Reviewer Off Offline

Quote
The
imageparam(id, "alpha")
call always returns 0, no matter what the actual alpha value of the image is. The
object(id, "alpha")
, on the other hand, returns the correct value.

old Re: CS2D Bug Reports

DC
Admin Off Offline

Quote
@user Infinite Rain: It actually returns the rotation. lol. Thanks, will be fixed with the next version.

@user Mami Tomoe: cs2d lua cmd imageparam has additional image specific features that cs2d cmd object doesn't provide: path, frame, width, height, framecount

Of course these could have been added to cs2d lua cmd object but it would make cs2d cmd object pretty huge and add a lot of params which only work with images. Also for new script people it's easier to find cs2d lua cmd imageparam when working with images than cs2d lua cmd object if they aren't aware that images are also objects. Furthermore when working with images you get more expressive code when using cs2d lua cmd imageparam as it directly clarifies that you're working with images.

But yes: x, y and rot are indeed redundant and the same as cs2d lua cmd object and it is a questionable software design decision. Now since both are in the game none of them will be removed because it would break existing scripts.
To the start Previous 1 2103 104 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview