Skip to content

Instantly share code, notes, and snippets.

@UmGeek
Last active Sep 27, 2018
Embed
What would you like to do?
NewOpcodes GTA3SCRIPT Part
<!-- Junior_Djjr -->
<Command ID="0xD00" Name="MULTIPLY_MATRIX">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="INT" Out="true" Desc="Matrix"/>
</Args>
</Command>
<Command ID="0xD01" Name="ROTATE_MATRIX">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Desc="X Axis"/>
<Arg Type="FLOAT" Desc="Y Axis"/>
<Arg Type="FLOAT" Desc="Z Axis"/>
<Arg Type="FLOAT" Desc="Angle"/>
<Arg Type="INT" Desc="Combine"/>
</Args>
</Command>
<Command ID="0xD02" Name="GET_MATRIX_X_ANGLE">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Out="true" Desc="Angle"/>
</Args>
</Command>
<Command ID="0xD03" Name="GET_MATRIX_Y_ANGLE">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Out="true" Desc="Angle"/>
</Args>
</Command>
<Command ID="0xD04" Name="GET_MATRIX_Z_ANGLE">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Out="true" Desc="Angle"/>
</Args>
</Command>
<Command ID="0xD05" Name="SET_MATRIX_POSITION">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Desc="X"/>
<Arg Type="FLOAT" Desc="Y"/>
<Arg Type="FLOAT" Desc="Z"/>
</Args>
</Command>
<Command ID="0xD06" Name="GET_MATRIX_POSITION">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Out="true" Desc="X"/>
<Arg Type="FLOAT" Out="true" Desc="Y"/>
<Arg Type="FLOAT" Out="true" Desc="Z"/>
</Args>
</Command>
<Command ID="0xD07" Name="GET_COORDS_OFFSETS_RELATIVE_TO_MATRIX">
<Args>
<Arg Type="FLOAT" Desc="X Point"/>
<Arg Type="FLOAT" Desc="Y Point"/>
<Arg Type="FLOAT" Desc="Z Point"/>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Out="true" Desc="X Offset"/>
<Arg Type="FLOAT" Out="true" Desc="Y Offset"/>
<Arg Type="FLOAT" Out="true" Desc="Z Offset"/>
</Args>
</Command>
<Command ID="0xD08" Name="SET_MATRIX_ANGLES_XYZ">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Desc="X Angle"/>
<Arg Type="FLOAT" Desc="Y Angle"/>
<Arg Type="FLOAT" Desc="Z Angle"/>
</Args>
</Command>
<Command ID="0xD09" Name="COPY_MATRIX">
<Args>
<Arg Type="INT" Desc="Source matrix"/>
<Arg Type="INT" Desc="Destination matrix"/>
</Args>
</Command>
<Command ID="0xD0A" Name="GET_OFFSET_FROM_MATRIX_IN_WORLD_COORDS">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Desc="X Offset"/>
<Arg Type="FLOAT" Desc="Y Offset"/>
<Arg Type="FLOAT" Desc="Z Offset"/>
<Arg Type="FLOAT" Out="true" Desc="X Coord"/>
<Arg Type="FLOAT" Out="true" Desc="Y Coord"/>
<Arg Type="FLOAT" Out="true" Desc="Z Coord"/>
</Args>
</Command>
<Command ID="0xD0B" Name="GET_CHAR_BONE_MATRIX">
<Args>
<Arg Type="INT" Entity="CHAR"/>
<Arg Type="INT" Enum="BONE" Desc="Bone"/>
<Arg Type="INT" Out="true" Desc="Matrix"/>
</Args>
</Command>
<Command ID="0xD0C" Name="GET_CAR_COMPONENT_MATRIX">
<Args>
<Arg Type="INT" Entity="CAR"/>
<Arg Type="STRING" AllowPointer="true" Desc="Component"/>
<Arg Type="INT" Out="true" Desc="Matrix"/>
</Args>
</Command>
<Command ID="0xD13" Name="SET_MATRIX_X_ANGLE">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Desc="Angle"/>
</Args>
</Command>
<Command ID="0xD14" Name="SET_MATRIX_Y_ANGLE">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Desc="Angle"/>
</Args>
</Command>
<Command ID="0xD15" Name="SET_MATRIX_Z_ANGLE">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Desc="Angle"/>
</Args>
</Command>
<Command ID="0xD16" Name="SET_MATRIX_ROTATION_FROM_QUAT">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="INT" Desc="Quat"/>
</Args>
</Command>
<Command ID="0xD17" Name="CONVERT_MATRIX_TO_QUAT">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="INT" Desc="Quat"/>
</Args>
</Command>
<Command ID="0xD18" Name="ROTATE_QUAT">
<Args>
<Arg Type="INT" Desc="Quat"/>
<Arg Type="FLOAT" Desc="X Axis"/>
<Arg Type="FLOAT" Desc="Y Axis"/>
<Arg Type="FLOAT" Desc="Z Axis"/>
<Arg Type="FLOAT" Desc="Angle"/>
<Arg Type="INT" Desc="Combine"/>
</Args>
</Command>
<Command ID="0xD19" Name="GET_NORMALIZED_QUAT">
<Args>
<Arg Type="INT" Desc="Quat"/>
<Arg Type="INT" Desc="Quat"/>
</Args>
</Command>
<Command ID="0xD1A" Name="MULTIPLY_QUAT">
<Args>
<Arg Type="INT" Desc="Quat"/>
<Arg Type="INT" Desc="Quat"/>
<Arg Type="INT" Out="true" Desc="Quat"/>
</Args>
</Command>
<Command ID="0xD1B" Name="GET_ENTITY_TYPE_AND_CLASS">
<Args>
<Arg Type="INT" Desc="Entity"/>
<Arg Type="INT" Out="true" Desc="Type"/>
<Arg Type="INT" Out="true" Desc="Class"/>
</Args>
</Command>
<Command ID="0xD1C" Name="NORMALIZE_VECTOR">
<Args>
<Arg Type="INT" Desc="Vector"/>
</Args>
</Command>
<Command ID="0xD1D" Name="SET_MATRIX_SLERP">
<Args>
<Arg Type="INT" Desc="Matrix result"/>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="INT" Desc="t"/>
</Args>
</Command>
<Command ID="0xD1E" Name="SET_QUAT_SLERP">
<Args>
<Arg Type="INT" Desc="Quat result"/>
<Arg Type="INT" Desc="Quat"/>
<Arg Type="INT" Desc="Quat"/>
<Arg Type="INT" Desc="t"/>
</Args>
</Command>
<Command ID="0xD1F" Name="GET_CHILD_COMPONENT">
<Args>
<Arg Type="INT" Desc="Component"/>
<Arg Type="INT" Out="true" Desc="Component"/>
</Args>
</Command>
<Command ID="0xD20" Name="GET_NEXT_COMPONENT">
<Args>
<Arg Type="INT" Desc="Component"/>
<Arg Type="INT" Out="true" Desc="Component"/>
</Args>
</Command>
<Command ID="0xD21" Name="GET_COMPONENT_NAME">
<Args>
<Arg Type="INT" Desc="Component"/>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Out="true" Desc="Name"/>
</Args>
</Command>
<Command ID="0xD22" Name="GET_COMPONENT_LTM">
<Args>
<Arg Type="INT" Desc="Component"/>
<Arg Type="INT" Out="true" Desc="Matrix"/>
</Args>
</Command>
<Command ID="0xD23" Name="GET_COMPONENT_MODELLING_MATRIX">
<Args>
<Arg Type="INT" Desc="Component"/>
<Arg Type="INT" Out="true" Desc="Matrix"/>
</Args>
</Command>
<Command ID="0xD24" Name="SET_QUAT_ELEMENTS">
<Args>
<Arg Type="INT" Desc="Quat"/>
<Arg Type="FLOAT" Out="true" Desc="X"/>
<Arg Type="FLOAT" Out="true" Desc="Y"/>
<Arg Type="FLOAT" Out="true" Desc="Z"/>
<Arg Type="FLOAT" Out="true" Desc="W"/>
</Args>
</Command>
<Command ID="0xD25" Name="SET_MATRIX_ELEMENTS">
<Args>
<Arg Type="INT" Desc="Matrix"/>
<Arg Type="FLOAT" Out="true" Desc="Right X"/>
<Arg Type="FLOAT" Out="true" Desc="Right Y"/>
<Arg Type="FLOAT" Out="true" Desc="Right Z"/>
<Arg Type="INT" Out="true" Desc="Flags"/>
<Arg Type="FLOAT" Out="true" Desc="Top X"/>
<Arg Type="FLOAT" Out="true" Desc="Top Y"/>
<Arg Type="FLOAT" Out="true" Desc="Top Z"/>
<Arg Type="INT" Out="true" Desc="Unused"/>
<Arg Type="FLOAT" Out="true" Desc="At X"/>
<Arg Type="FLOAT" Out="true" Desc="At Y"/>
<Arg Type="FLOAT" Out="true" Desc="At Z"/>
<Arg Type="INT" Out="true" Desc="Unused"/>
<Arg Type="FLOAT" Out="true" Desc="Pos X"/>
<Arg Type="FLOAT" Out="true" Desc="Pos Y"/>
<Arg Type="FLOAT" Out="true" Desc="Pos Z"/>
<Arg Type="INT" Out="true" Desc="Unused"/>
</Args>
</Command>
<!-- Um Geek -->
<Command ID="0xd0d" Name="GET_CAR_COMPONENT">
<Args>
<Arg Type="INT" Entity="CAR"/>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="Name"/>
<Arg Type="INT" Out="true" Desc="Component"/>
</Args>
</Command>
<Command ID="0xd0e" Name="SET_CAR_COMPONENT_STATE">
<Args>
<Arg Type="INT" Entity="CAR"/>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="Name"/>
<Arg Type="INT" Desc="State"/>
</Args>
</Command>
<Command ID="0xd0f" Name="SET_CAR_MODEL_ALPHA">
<Args>
<Arg Type="INT" Entity="CAR"/>
<Arg Type="INT"/>
</Args>
</Command>
<Command ID="0xd10" Name="SET_CHAR_MODEL_ALPHA">
<Args>
<Arg Type="INT" Entity="CHAR"/>
<Arg Type="INT"/>
</Args>
</Command>
<Command ID="0xd11" Name="SET_OBJECT_MODEL_ALPHA">
<Args>
<Arg Type="INT" Entity="OBJECT"/>
<Arg Type="INT"/>
</Args>
</Command>
<Command ID="0xd12" Name="SET_CAR_COMPONENT_ALPHA">
<Args>
<Arg Type="INT" Entity="CAR"/>
<Arg Type="STRING" AllowPointer="true"/>
<Arg Type="INT"/>
</Args>
</Command>
<!-- 0D26 -->
<!-- 0D27 -->
<!-- 0D28 -->
<!-- 0D29 -->
<Command ID="0xD2A" Name="GET_CAR_NUMBER_OF_COLLIDED_ENTITES">
<Args>
<Arg Type="INT" Entity="CAR"/>
<Arg Type="INT" Out="true"/>
</Args>
</Command>
<Command ID="0xD2B" Name="GET_CHAR_NUMBER_OF_COLLIDED_ENTITES">
<Args>
<Arg Type="INT" Entity="CHAR"/>
<Arg Type="INT" Out="true"/>
</Args>
</Command>
<Command ID="0xD2C" Name="GET_OBJECT_NUMBER_OF_COLLIDED_ENTITES">
<Args>
<Arg Type="INT" Entity="OBJECT"/>
<Arg Type="INT" Out="true"/>
</Args>
</Command>
<Command ID="0xd2d" Name="GET_LOCAL_TIME_YEAR">
<Args>
<Arg Type="INT" Out="true" Desc="Year"/>
<Arg Type="INT" Out="true" Desc="Month"/>
<Arg Type="INT" Out="true" Desc="DayOfWeek"/>
<Arg Type="INT" Out="true" Desc="Day"/>
<Arg Type="INT" Out="true" Desc="Hour"/>
<Arg Type="INT" Out="true" Desc="Minute"/>
<Arg Type="INT" Out="true" Desc="Second"/>
<Arg Type="INT" Out="true" Desc="Millisecond"/>
</Args>
</Command>
<Command ID="0xD2E" Name="SET_THREAD_VAR">
<Args>
<Arg Type="INT" Desc="Thread"/>
<Arg Type="INT" Desc="Var"/>
<Arg Type="INT" Desc="Value"/>
</Args>
</Command>
<Command ID="0xD2F" Name="GET_THREAD_VAR">
<Args>
<Arg Type="INT" Desc="Thread"/>
<Arg Type="INT" Desc="Var"/>
<Arg Type="INT" Desc="Value" Out="true"/>
</Args>
</Command>
<Command ID="0xD30" Name="GET_CHAR_BONE">
<Args>
<Arg Type="INT" Entity="CHAR"/>
<Arg Type="INT" Enum="BONE" Desc="Bone"/>
<Arg Type="INT" Out="true"/>
</Args>
</Command>
<Command ID="0xD31" Name="GET_BONE_OFFSET_VECTOR">
<Args>
<Arg Type="INT" Enum="BONE" Desc="Bone"/>
<Arg Type="INT" Out="true" Desc="Vector"/>
</Args>
</Command>
<Command ID="0xD32" Name="GET_BONE_QUAT">
<Args>
<Arg Type="INT" Desc="Bone"/>
<Arg Type="INT" Out="true" Desc="Quat"/>
</Args>
</Command>
<Command ID="0xD33" Name="SET_CAR_DOOR_WINDOW_STATE">
<Args>
<Arg Type="INT" Entity="CAR"/>
<Arg Type="INT" Desc="Door"/>
<Arg Type="INT" Desc="State"/>
</Args>
</Command>
<Command ID="0xD34" Name="STORE_CAR_COLLIDED_ENTITES">
<Args>
<Arg Type="INT" Entity="CAR"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
</Args>
</Command>
<Command ID="0xD35" Name="STORE_CHAR_COLLIDED_ENTITES">
<Args>
<Arg Type="INT" Entity="CHAR"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
</Args>
</Command>
<Command ID="0xD36" Name="STORE_OBJECT_COLLIDED_ENTITES">
<Args>
<Arg Type="INT" Entity="OBJECT"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
<Arg Type="INT" Desc="Entity" Out="true"/>
</Args>
</Command>
<Command ID="0xD37" Name="SET_STRUCT_PARAM">
<Args>
<Arg Type="INT" Desc="Struct"/>
<Arg Type="INT" Desc="Param"/>
<Arg Type="INT" Desc="Value"/>
</Args>
</Command>
<Command ID="0xD38" Name="GET_STRUCT_PARAM">
<Args>
<Arg Type="INT" Desc="Struct"/>
<Arg Type="INT" Desc="Param"/>
<Arg Type="INT" Desc="Value" Out="true"/>
</Args>
</Command>
<Command ID="0xD39" Name="GET_CHAR_MAX_HEALTH">
<Args>
<Arg Type="INT" Entity="CHAR"/>
<Arg Type="FLOAT" Desc="Value"/>
</Args>
</Command>
<!-- 0D3A -->
<!-- 0D3B -->
<!-- 0D3C -->
<!-- 0D3D -->
<!-- 0D3E -->
<!-- 0D3F -->
<!-- 0D40 -->
<!-- 0D41 -->
<Command ID="0xD42" Name="LOAD_TXD_FROM_FILE">
<Args>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="Txd"/>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="File"/>
</Args>
</Command>
<Command ID="0xD43" Name="GET_TXD_ID">
<Args>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="Txd"/>
<Arg Type="INT" Desc="Id" Out="true"/>
</Args>
</Command>
<Command ID="0xD44" Name="FIND_TEXTURE_IN_DICTIONARY_NAMED">
<Args>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="Texture"/>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="Txd"/>
<Arg Type="INT" Out="true"/>
</Args>
</Command>
<!-- 0D45 -->
<Command ID="0xD46" Name="FIND_TEXTURE_IN_DICTIONARY_WITH_ID">
<Args>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="Texture"/>
<Arg Type="INT" Desc="Id"/>
<Arg Type="INT" Out="true"/>
</Args>
</Command>
<Command ID="0xD47" Name="GET_MODEL_TXD_ID">
<Args>
<Arg Type="INT" Desc="Model"/>
<Arg Type="INT" Out="true" Desc="Id"/>
</Args>
</Command>
<Command ID="0xD48" Name="GET_MODEL_CRC32_KEY">
<Args>
<Arg Type="INT" Desc="Model"/>
<Arg Type="INT" Out="true"/>
</Args>
</Command>
<Command ID="0xd49" Name="COMPARE_STRINGS">
<Args>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="String"/>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="String"/>
<Arg Type="INT" Out="true"/>
</Args>
</Command>
<Command ID="0xD4A" Name="COMCATENATE_STRINGS">
<Args>
<Arg Type="INT" Desc="Pointer"/>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="String"/>
</Args>
</Command>
<Command ID="0xD4B" Name="LOCATE_SUBSTRING">
<Args>
<Arg Type="INT" PreserveCase="true" Desc="Pointer"/>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="String"/>
<Arg Type="INT" Out="true" Desc="Pointer"/>
</Args>
</Command>
<Command ID="0xD4C" Name="GET_STRING_LENGTH">
<Args>
<Arg Type="STRING" AllowPointer="true" PreserveCase="true" Desc="String"/>
<Arg Type="INT" Out="true" Desc="Length"/>
</Args>
</Command>
<!-- 0D4D -->
@VictorMaccoy
Copy link

VictorMaccoy commented Sep 27, 2018

faz pro sampfuncs ae

@VictorMaccoy
Copy link

VictorMaccoy commented Sep 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment