SA-MP/saco/game/scripting.h
RD42 b370b8d980 [saco] Add more member functions to CCamera
* Adds ´sub_1009D560()´
* Adds ´CCamera::Attach´
* Adds ´CCamera::InterpolatePosition´
* Adds `CCamera::InterpolateLookAt`
2024-02-10 22:45:20 +08:00

33 lines
1.2 KiB
C

#pragma once
#define MAX_SCRIPT_VARS 16 // Size of our variable saving array
// Super Simplified SA Version
struct GAME_SCRIPT_THREAD // 0xE0 bytes total.
{
BYTE _gap0[224];
};
struct SCRIPT_COMMAND // Params
{ // i = integer
WORD OpCode; // f = float
char Params[MAX_SCRIPT_VARS]; // v = variable
}; // s = string
int ScriptCommand(const SCRIPT_COMMAND* pScriptCommand, ...); // The main scripting function. See notes.
const SCRIPT_COMMAND fade = { 0x016A, "ii" }; // (time in ms), FADE_*
const SCRIPT_COMMAND set_camera_behind_player = { 0x0373, "" }; // -/-
const SCRIPT_COMMAND point_camera = { 0x0160, "fffi" }; // x, y, z, type
const SCRIPT_COMMAND restore_camera_jumpcut = { 0x02EB, "" }; // -/-
const SCRIPT_COMMAND set_camera_position = { 0x015F, "ffffff" }; // x, y, z, vx, vy, vz
const SCRIPT_COMMAND restore_camera_to_user_defined = { 0x925, "" };
const SCRIPT_COMMAND set_camera_position_to = { 0x936, "ffffffii" };
const SCRIPT_COMMAND point_camera_transverse_to = { 0x920, "ffffffii" };
const SCRIPT_COMMAND lock_camera_target_point = { 0x92F, "i" };
const SCRIPT_COMMAND lock_camera_position = { 0x930, "i" };