I continue the tradition of scripts, designed primarily for teaching scripters. This time, I created my own HUD in CLEO, which, although quite simple, displays the most important game indicators, and also boasts such features: • Disabled when disabled through the menu (no need to cramming the on/off buttons of the script and use the keyboard in vain) • changes the color of some elements depending on their values (for example, the clock gets darker as night approaches, and the color of the number of cartridges in the magazine becomes brighter when it gets low) • Slightly shifts elements when moving the mouse/mini-joystick.
In addition to the above, by studying the code, you can learn: • apply constants • work with memory addresses • use drawing mode (text_draw) • display texts side by side so that they do not overlap each other • find out the number of cartridges in the magazine • make some values dependent on others (and even use finding the sine for this!) • find in memory the value of the remaining oxygen • find in memory the police "anger" counter • use scm functions
05/17/2020: Fixed a bug due to which some categories of weapons (detonator, parachute, etc.) displayed the number of rounds. And he removed the accidentally remaining test issue of the cane.