[saco] Implement/match CVehicle::LinkToInterior(...)

This commit is contained in:
RD42 2024-08-20 22:44:22 +08:00
parent 87bb74c55d
commit c57b99ceac
3 changed files with 15 additions and 1 deletions

View File

@ -87,6 +87,7 @@ const SCRIPT_COMMAND text_clear_all = { 0x00be, "" };
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 remove_panel = { 0x08DA, "i" };

View File

@ -1,5 +1,6 @@
#include "../main.h"
#include "util.h"
//-----------------------------------------------------------
// CONSTRUCTOR
@ -8,8 +9,16 @@ CVehicle::CVehicle(int iType, float fPosX, float fPosY,
float fPosZ, float fRotation, BOOL bKeepModelLoaded,
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);
}
}
//-----------------------------------------------------------

View File

@ -10,8 +10,12 @@ class CVehicle : public CEntity
{
public:
char _gap48[112];
CVehicle( int iType, float fPosX, float fPosY, float fPosZ, float fRotation = 0.0f, BOOL bKeepModelLoaded = FALSE, int a8 = 0);
void LinkToInterior(int iInterior);
};
//-----------------------------------------------------------