CS2D
General
CS2D Bug Reports
CS2D Bug Reports
2,063 replies 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. 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. I still don't understand why do we need
imageparam when we have
object?
Can some dev actually make it clear what the difference is? DC Admin
Offline
@
Infinite Rain: It actually returns the rotation. lol. Thanks, will be fixed with the next version.
@
Mami Tomoe:
imageparam has additional image specific features that
object doesn't provide: path, frame, width, height, framecount
Of course these could have been added to
object but it would make
object pretty huge and add a lot of params which only work with images. Also for new script people it's easier to find
imageparam when working with images than
object if they aren't aware that images are also objects. Furthermore when working with images you get more expressive code when using
imageparam as it directly clarifies that you're working with images.
But yes: x, y and rot are indeed redundant and the same as
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.