Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0079

Opcode Database

0079

DescriptionMultiplies 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) Float (LVAR_FLOAT)
2) Float (FLOAT)
Gamessa vc iii
CategoryDraw, Math
San Andreas
sascm.ini0079=2,%1d% += frame_delta_time * %2d%
Example0079: 351@ += frame_delta_time * -1.325
Command NameADD_TIMED_VAL_TO_FLOAT_LVAR
Vice City
sascm.ini0079=2,%1d% += frame_delta_time * %2d%
Example0079: 0@ += frame_delta_time * -1.325
GTA III
gtascm.ini0079=2,%1d% += frame_delta_time * %2d%
Example0079: 0@ += frame_delta_time * -1.325

<< 0078

007A >>