I have a few questions regarding the usage of LUA commands.
Caching solutions:
It is possible to get the image x& y position from this command imageparam and the player list from player .
People discussed here about caching information. When is it a good idea and when is it a bad idea?
Here are 2 code examples that demonstrate what I mean:
Warning: They are missing some details, like stopping the burning effect when a player dies for example.
When should I cache information and what information should I cache?
I can safely say that no additional scripts will be used. So the playerhp will always be accurate because I will always use
sethealth(...)instead of
parse("sethealth ..."). I can assure that there are no other hit hooks that return 1 as well.
I ask specifically for timed hooks like always and ms100.
But I could imagine unlimited use-cases regarding caching information (about image positions, rotation in a custom projectile system for example)
Spritesheets:
It is possible to use parts of a spritesheet image.
I have read about them in OpenGL - you should always use them so that the GPU only loads in all graphics once into VRAM (and then the GPU is really fast).
Is that also true for CS2D, when I want to show multiple different images like in bottom of the screen here:
Is the file transfer download speed faster because there are less files in the servertransfer.lst?
Is it a good habit to always use spritesheet images?
Thanks in advance