GTAG - Modding - Opcode Database - 0AE9
Opcode Database
0AE9
Description | Performs extraction of floating-point numbers from the upper register FPU (st). In this case the function returns, any fractional value (float, double, long double). Use this opcode immediately following the call of this function opcodes 0AA5-0AA8. Params: 1. Variable, which will be recorded and extracted rounded value. The following script displays a box with information about the current speed of the game. Called function that returns the current speed in the register of st. {$CLEO .s} if 0AA9: is_game_version_original then 0@ = 0x4383E0 else 0@ = 0x438460 end 0AA5: call 0@ num_params 0 pop 0 0AE9: pop_float 0@ 0AED: 1@v = float 0@ to_string_format "%.15g" 0AC7: 0@ = var 1@v offset 0ACE: show_formatted_text_box "Current game speed: %s" 0@ 0A93: end_custom_thread |
---|---|
Parameters (v2) | 1) (Returned) Float (FLOAT) |
Games | |
Category | CLEO 4 |
San Andreas | |
sascm.ini | 0AE9=1,pop_float %1d% |
Example | 0AE9: pop_float 0@ |
Command Name | POP_FLOAT |