Skip to content

Support for timed addition and substraction operator =@ #115

Closed

Description

@x87

https://gtamods.com/wiki/SCM_language#Compound_assignment

+=@ 	Timed addition assignment 	expr0 +=@ expr1 	Multiply expr1 by delta time, add the result to expr0 and store everything to expr0
-=@ 	Timed subtraction assignment 	expr0 -=@ expr1 	Multiply expr1 by delta time, subtract the result from expr0 and store everything to expr0
Operation Opcode Expression
ADD_TIMED_VAL_TO_FLOAT_VAR 0078 $var +=@ 5.0
ADD_TIMED_VAL_TO_FLOAT_LVAR 0079 0@ +=@ 5.0
ADD_TIMED_FLOAT_VAR_TO_FLOAT_VAR 007A $var1 +=@ $var2
ADD_TIMED_FLOAT_LVAR_TO_FLOAT_LVAR 007B 0@ +=@ 1@
ADD_TIMED_FLOAT_VAR_TO_FLOAT_LVAR 007C 0@ +=@ $var
ADD_TIMED_FLOAT_LVAR_TO_FLOAT_VAR 007D $var +=@ 1@
SUB_TIMED_VAL_FROM_FLOAT_VAR 007E $var -=@ 5.0
SUB_TIMED_VAL_FROM_FLOAT_LVAR 007F 0@ -=@ 5.0
SUB_TIMED_FLOAT_VAR_FROM_FLOAT_VAR 0080 $var1 -=@ $var2
SUB_TIMED_FLOAT_LVAR_FROM_FLOAT_LVAR 0081 0@ -=@ 1@
SUB_TIMED_FLOAT_VAR_FROM_FLOAT_LVAR 0082 0@ -=@ $var
SUB_TIMED_FLOAT_LVAR_FROM_FLOAT_VAR 0083 $var -=@ 1@

Activity

  1. added
    type:feature
    priority:p3
    on Dec 14, 2020
  2. x87 commented on Dec 14, 2020

    @x87
    CollaboratorAuthor

    Could be done with the new binary parser #97

  3. added this to the v3.9.0 milestone on Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:p3scope:compilertype:feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions