GTAG - Modding - Opcode Database - 0078
Opcode Database
0078
| Description | Multiplies the delta time since the last frame by the specified value and adds the result to the specified variable. The frame delta time is the time passed since the last frame. Useful to prevent lag when drawing screen objects on slow (often pausing) computers. Using this you could advance the drawing along by the time that has passed (the time that a PC could've stopped for) in milliseconds since the last frame which would help to eliminate the effects of lag. |
|---|---|
| Parameters (v2) | 1) (Returned) Global variable (VAR_FLOAT) 2) Float (FLOAT) |
| Games | |
| Category | Draw, Math |
| San Andreas | |
| sascm.ini | 0078=2,%1d% += frame_delta_time * %2d% |
| Example | 0078: $float += frame_delta_time * 6.0 |
| Command Name | ADD_TIMED_VAL_TO_FLOAT_VAR |
| Vice City | |
| sascm.ini | 0078=2,%1d% += frame_delta_time * %2d% |
| Example | 0078: $float += frame_delta_time * 6.0 |
| GTA III | |
| gtascm.ini | 0078=2,%1d% += frame_delta_time * %2d% |
| Example | 0078: $float += frame_delta_time * 6.0 |

