mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 04:36:01 +08:00
[saco] Implement/match CVehicle::LinkToInterior(...)
This commit is contained in:
@ -87,6 +87,7 @@ const SCRIPT_COMMAND text_clear_all = { 0x00be, "" };
|
|||||||
|
|
||||||
const SCRIPT_COMMAND create_pickup_with_ammo = { 0x032b, "iiifffv" };
|
const SCRIPT_COMMAND create_pickup_with_ammo = { 0x032b, "iiifffv" };
|
||||||
|
|
||||||
|
const SCRIPT_COMMAND link_vehicle_to_interior = { 0x0840, "ii" };
|
||||||
const SCRIPT_COMMAND create_radar_marker_icon = { 0x0570, "fffiv" };
|
const SCRIPT_COMMAND create_radar_marker_icon = { 0x0570, "fffiv" };
|
||||||
|
|
||||||
const SCRIPT_COMMAND remove_panel = { 0x08DA, "i" };
|
const SCRIPT_COMMAND remove_panel = { 0x08DA, "i" };
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
#include "../main.h"
|
#include "../main.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
// CONSTRUCTOR
|
// CONSTRUCTOR
|
||||||
@ -8,8 +9,16 @@ CVehicle::CVehicle(int iType, float fPosX, float fPosY,
|
|||||||
float fPosZ, float fRotation, BOOL bKeepModelLoaded,
|
float fPosZ, float fRotation, BOOL bKeepModelLoaded,
|
||||||
int a8)
|
int a8)
|
||||||
{
|
{
|
||||||
// TODO: CVehicle::CVehicle
|
// TODO: CVehicle::CVehicle .text:100B88F0
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
void CVehicle::LinkToInterior(int iInterior)
|
||||||
|
{
|
||||||
|
if(GamePool_Vehicle_GetAt(m_dwGTAId)) {
|
||||||
|
ScriptCommand(&link_vehicle_to_interior, m_dwGTAId, iInterior);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
@ -10,8 +10,12 @@ class CVehicle : public CEntity
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
char _gap48[112];
|
||||||
|
|
||||||
CVehicle( int iType, float fPosX, float fPosY, float fPosZ, float fRotation = 0.0f, BOOL bKeepModelLoaded = FALSE, int a8 = 0);
|
CVehicle( int iType, float fPosX, float fPosY, float fPosZ, float fRotation = 0.0f, BOOL bKeepModelLoaded = FALSE, int a8 = 0);
|
||||||
|
|
||||||
|
void LinkToInterior(int iInterior);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user