2020-03-22 00:45:04 +01:00
|
|
|
#pragma once
|
2015-09-30 02:56:11 +02:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
#include "Base/Shared.hpp"
|
2015-09-30 02:56:11 +02:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
|
|
* Circular locks employed by the vehicle manager.
|
|
|
|
*/
|
|
|
|
enum VehicleCircularLocks
|
|
|
|
{
|
2020-03-22 09:00:31 +01:00
|
|
|
VEHICLECL_EMIT_VEHICLE_OPTION = (1u << 0u),
|
|
|
|
VEHICLECL_EMIT_VEHICLE_WORLD = (1u << 1u),
|
|
|
|
VEHICLECL_EMIT_VEHICLE_IMMUNITY = (1u << 2u),
|
|
|
|
VEHICLECL_EMIT_VEHICLE_PARTSTATUS = (1u << 3u),
|
|
|
|
VEHICLECL_EMIT_VEHICLE_TYRESTATUS = (1u << 4u),
|
|
|
|
VEHICLECL_EMIT_VEHICLE_DAMAGEDATA = (1u << 5u),
|
|
|
|
VEHICLECL_EMIT_VEHICLE_RADIO = (1u << 6u),
|
|
|
|
VEHICLECL_EMIT_VEHICLE_HANDLINGRULE = (1u << 7u)
|
2016-05-22 05:20:38 +02:00
|
|
|
};
|
|
|
|
|
2015-09-30 02:56:11 +02:00
|
|
|
/* ------------------------------------------------------------------------------------------------
|
2016-03-10 04:57:13 +01:00
|
|
|
* Manages a single vehicle entity.
|
2015-09-30 02:56:11 +02:00
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
class CVehicle
|
2015-09-30 02:56:11 +02:00
|
|
|
{
|
|
|
|
// --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
friend class Core;
|
|
|
|
|
|
|
|
private:
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Identifier of the managed entity.
|
2015-11-01 00:33:12 +01:00
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
Int32 m_ID;
|
2015-11-01 00:33:12 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-03-10 04:57:13 +01:00
|
|
|
* User tag associated with this instance.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
String m_Tag;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* User data associated with this instance.
|
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
LightObj m_Data;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Prevent events from triggering themselves.
|
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
Uint32 m_CircularLocks;
|
2016-05-22 05:20:38 +02:00
|
|
|
|
2015-10-29 21:56:07 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Base constructor.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2020-03-22 09:00:31 +01:00
|
|
|
explicit CVehicle(Int32 id);
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
public:
|
|
|
|
|
2015-10-29 21:56:07 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-03-10 04:57:13 +01:00
|
|
|
* Maximum possible number that could represent an identifier for this entity type.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
static const Int32 Max;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-03-10 04:57:13 +01:00
|
|
|
* Copy constructor. (disabled)
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
CVehicle(const CVehicle &) = delete;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Move constructor. (disabled)
|
|
|
|
*/
|
|
|
|
CVehicle(CVehicle &&) = delete;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Copy assignment operator. (disabled)
|
|
|
|
*/
|
|
|
|
CVehicle & operator = (const CVehicle &) = delete;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Move assignment operator. (disabled)
|
|
|
|
*/
|
|
|
|
CVehicle & operator = (CVehicle &&) = delete;
|
|
|
|
|
2015-10-29 21:56:07 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* See whether this instance manages a valid entity.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
void Validate() const
|
2016-02-20 23:25:00 +01:00
|
|
|
{
|
2016-03-10 04:57:13 +01:00
|
|
|
if (INVALID_ENTITY(m_ID))
|
2016-03-12 21:51:44 +01:00
|
|
|
{
|
2016-03-21 21:37:58 +01:00
|
|
|
STHROWF("Invalid vehicle reference [%s]", m_Tag.c_str());
|
2016-03-12 21:51:44 +01:00
|
|
|
}
|
2016-02-20 23:25:00 +01:00
|
|
|
}
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Used by the script engine to convert an instance of this type to a string.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
const String & ToString() const;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-08-07 00:54:33 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the associated null entity instance.
|
|
|
|
*/
|
|
|
|
static SQInteger SqGetNull(HSQUIRRELVM vm);
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the associated null entity instance.
|
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
static LightObj & GetNull();
|
2016-08-07 00:54:33 +02:00
|
|
|
|
2015-10-29 21:56:07 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-03-10 04:57:13 +01:00
|
|
|
* Retrieve the identifier of the entity managed by this instance.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
Int32 GetID() const
|
|
|
|
{
|
|
|
|
return m_ID;
|
|
|
|
}
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Check whether this instance manages a valid entity.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
bool IsActive() const
|
|
|
|
{
|
|
|
|
return VALID_ENTITY(m_ID);
|
|
|
|
}
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Retrieve the associated user tag.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2016-03-10 04:57:13 +01:00
|
|
|
const String & GetTag() const;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Modify the associated user tag.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
void SetTag(StackStrF & tag);
|
2016-11-16 13:49:12 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the associated user tag.
|
|
|
|
*/
|
2019-02-17 16:23:59 +01:00
|
|
|
CVehicle & ApplyTag(StackStrF & tag);
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Retrieve the associated user data.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
LightObj & GetData();
|
2015-10-29 21:56:07 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
* Modify the associated user data.
|
2015-10-29 21:56:07 +01:00
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
void SetData(LightObj & data);
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Destroy the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
bool Destroy()
|
|
|
|
{
|
2017-02-21 20:24:59 +01:00
|
|
|
return Destroy(0, NullLightObj());
|
2016-03-10 04:57:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Destroy the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
bool Destroy(Int32 header)
|
|
|
|
{
|
2017-02-21 20:24:59 +01:00
|
|
|
return Destroy(header, NullLightObj());
|
2016-03-10 04:57:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Destroy the managed vehicle entity.
|
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
bool Destroy(Int32 header, LightObj & payload);
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
2017-02-21 20:24:59 +01:00
|
|
|
* Retrieve the events table of this entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
LightObj & GetEvents() const;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-07-26 23:13:50 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Emit a custom event for the managed entity
|
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
void CustomEvent(Int32 header, LightObj & payload) const;
|
2016-07-26 23:13:50 +02:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* See if the managed vehicle entity is streamed for the specified player.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
bool IsStreamedFor(CPlayer & player) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the current option value of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
bool GetOption(Int32 option_id) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the current option value of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetOption(Int32 option_id, bool toggle);
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the current option value of the managed vehicle entity.
|
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
void SetOptionEx(Int32 option_id, bool toggle, Int32 header, LightObj & payload);
|
2016-05-22 05:20:38 +02:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the synchronization source of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetSyncSource() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the synchronization type of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetSyncType() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the world in which the managed vehicle entity exists.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetWorld() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the world in which the managed vehicle entity exists.
|
|
|
|
*/
|
2016-08-18 13:38:00 +02:00
|
|
|
void SetWorld(Int32 world);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the vehicle model of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetModel() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the slot occupant from the managed vehicle entity.
|
|
|
|
*/
|
2017-02-21 20:24:59 +01:00
|
|
|
LightObj & GetOccupant(Int32 slot) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the slot occupant identifier from the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetOccupantID(Int32 slot) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
2018-01-28 21:53:27 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* See whether the managed vehicle entity has an occupant in a certain slot.
|
|
|
|
*/
|
|
|
|
bool HasOccupant(Int32 slot) const;
|
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Respawn the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void Respawn() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the immunity flags of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetImmunity() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the immunity flags of the managed vehicle entity.
|
|
|
|
*/
|
2016-08-18 13:45:12 +02:00
|
|
|
void SetImmunity(Int32 flags);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
2016-05-22 05:20:38 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Explode the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void Explode() const;
|
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* See whether the managed vehicle entity is wrecked.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
bool IsWrecked() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the position of the managed vehicle entity.
|
|
|
|
*/
|
2017-08-06 20:15:32 +02:00
|
|
|
Vector3 GetPosition() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetPosition(const Vector3 & pos) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetPositionEx(const Vector3 & pos, bool empty) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetPositionEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetPositionEx(Float32 x, Float32 y, Float32 z, bool empty) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the rotation of the managed vehicle entity.
|
|
|
|
*/
|
2017-08-06 20:15:32 +02:00
|
|
|
Quaternion GetRotation() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the rotation of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void SetRotation(const Quaternion & rot) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the rotation of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetRotationEx(Float32 x, Float32 y, Float32 z, Float32 w) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the euler rotation of the managed vehicle entity.
|
|
|
|
*/
|
2017-08-06 20:15:32 +02:00
|
|
|
Vector3 GetRotationEuler() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler rotation of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void SetRotationEuler(const Vector3 & rot) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler rotation of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetRotationEulerEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the speed of the managed vehicle entity.
|
|
|
|
*/
|
2017-08-06 20:15:32 +02:00
|
|
|
Vector3 GetSpeed() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the speed of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void SetSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the speed of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void AddSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void AddSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative speed of the managed vehicle entity.
|
|
|
|
*/
|
2017-08-06 20:15:32 +02:00
|
|
|
Vector3 GetRelativeSpeed() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRelativeSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRelativeSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void AddRelativeSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void AddRelativeSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2017-08-06 20:15:32 +02:00
|
|
|
Vector3 GetTurnSpeed() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void SetTurnSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetTurnSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void AddTurnSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void AddTurnSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2017-08-06 20:15:32 +02:00
|
|
|
Vector3 GetRelativeTurnSpeed() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRelativeTurnSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRelativeTurnSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void AddRelativeTurnSpeed(const Vector3 & vel) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn speed of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void AddRelativeTurnSpeedEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the spawn position of the managed vehicle entity.
|
|
|
|
*/
|
2017-08-06 20:15:32 +02:00
|
|
|
Vector3 GetSpawnPosition() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the spawn position of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetSpawnPosition(const Vector3 & pos) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the spawn position of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetSpawnPositionEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the spawn rotation of the managed vehicle entity.
|
|
|
|
*/
|
2017-08-06 20:15:32 +02:00
|
|
|
Quaternion GetSpawnRotation() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the spawn rotation of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void SetSpawnRotation(const Quaternion & rot) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the spawn rotation of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetSpawnRotationEx(Float32 x, Float32 y, Float32 z, Float32 w) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the euler spawn rotation of the managed vehicle entity.
|
|
|
|
*/
|
2017-08-06 20:15:32 +02:00
|
|
|
Vector3 GetSpawnRotationEuler() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler spawn rotation of the managed vehicle entity.
|
|
|
|
*/
|
2015-11-01 04:48:01 +01:00
|
|
|
void SetSpawnRotationEuler(const Vector3 & rot) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler spawn rotation of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetSpawnRotationEulerEx(Float32 x, Float32 y, Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the respawn timer of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Uint32 GetIdleRespawnTimer() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the respawn timer of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetIdleRespawnTimer(Uint32 millis) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the health of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Float32 GetHealth() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the health of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetHealth(Float32 amount) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
2016-07-13 00:47:36 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Fix the damage and restore health for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void Fix() const;
|
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the primary color of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetPrimaryColor() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the primary color of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetPrimaryColor(Int32 col) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the secondary color of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetSecondaryColor() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the secondary color of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetSecondaryColor(Int32 col) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the primary and secondary colors of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
void SetColors(Int32 primary, Int32 secondary) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the part status of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetPartStatus(Int32 part) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the part status of the managed vehicle entity.
|
|
|
|
*/
|
2016-08-18 13:51:55 +02:00
|
|
|
void SetPartStatus(Int32 part, Int32 status);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-08-20 21:42:54 +02:00
|
|
|
* Retrieve the tyre status of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-08-20 21:42:54 +02:00
|
|
|
Int32 GetTyreStatus(Int32 tyre) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-08-20 21:42:54 +02:00
|
|
|
* Modify the tyre status of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-08-20 21:42:54 +02:00
|
|
|
void SetTyreStatus(Int32 tyre, Int32 status);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the damage data of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Uint32 GetDamageData() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the damage data of the managed vehicle entity.
|
|
|
|
*/
|
2016-08-18 14:06:03 +02:00
|
|
|
void SetDamageData(Uint32 data);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the radio of the managed vehicle entity.
|
|
|
|
*/
|
2016-02-20 23:25:00 +01:00
|
|
|
Int32 GetRadio() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the radio of the managed vehicle entity.
|
|
|
|
*/
|
2016-08-18 14:13:33 +02:00
|
|
|
void SetRadio(Int32 radio);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Retrieve the turret rotation of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2017-08-06 20:15:32 +02:00
|
|
|
Vector2 GetTurretRotation() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Retrieve the horizontal turret rotation of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetHorizontalTurretRotation() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Retrieve the vertical turret rotation of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetVerticalTurretRotation() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* See whether the specified handling ruleexists in the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
bool ExistsHandlingRule(Int32 rule) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Retrieve the handling data of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2020-03-22 09:00:31 +01:00
|
|
|
SQFloat GetHandlingRule(Int32 rule) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Modify the handling data of the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-08-18 14:21:50 +02:00
|
|
|
void SetHandlingRule(Int32 rule, Float32 data);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Reset the specified handling rule for the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-08-18 14:21:50 +02:00
|
|
|
void ResetHandlingRule(Int32 rule);
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
2016-05-22 05:20:38 +02:00
|
|
|
* Reset all the handling rules for the managed vehicle entity.
|
2016-03-10 04:57:13 +01:00
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void ResetHandlings() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
2018-06-28 21:12:05 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the lights data for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Int32 GetLightsData() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the lights data for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetLightsData(Int32 data) const;
|
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Embark the specified player entity into the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
bool Embark(CPlayer & player) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Embark the specified player entity into the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
bool Embark(CPlayer & player, Int32 slot, bool allocate, bool warp) const;
|
2020-03-20 19:37:17 +01:00
|
|
|
#if SQMOD_SDK_LEAST(2, 1)
|
2019-06-01 23:39:06 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Set whether the target player will see an objective arrow over a vehicle.
|
|
|
|
*/
|
|
|
|
void SetPlayer3DArrow(CPlayer & target, bool toggle) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* See whether the target player sees an objective arrow over a vehicle.
|
|
|
|
*/
|
|
|
|
bool GetPlayer3DArrow(CPlayer & target) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Set whether the target player will see an objective arrow over a vehicle.
|
|
|
|
*/
|
|
|
|
void SetPlayer3DArrowID(SQInteger id, bool toggle) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* See whether the target player sees an objective arrow over a vehicle.
|
|
|
|
*/
|
|
|
|
bool GetPlayer3DArrowID(SQInteger id) const;
|
2020-03-20 19:37:17 +01:00
|
|
|
#endif
|
2017-06-19 03:09:35 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* See whether the managed vehicle entity collides with user defined areas.
|
|
|
|
*/
|
|
|
|
bool GetCollideAreas() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Set whether the managed vehicle entity can collide with user defined areas.
|
|
|
|
*/
|
|
|
|
void SetCollideAreas(bool toggle) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Set whether the managed vehicle entity can collide with user defined areas (with last test).
|
|
|
|
*/
|
|
|
|
void SetAreasCollide(bool toggle) const;
|
|
|
|
|
2016-06-08 15:53:16 +02:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the amount of tracked position changes for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
SQInteger GetTrackPosition() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the amount of tracked position changes for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetTrackPosition(SQInteger num) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the amount of tracked rotation changes for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
SQInteger GetTrackRotation() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the amount of tracked rotation changes for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetTrackRotation(SQInteger num) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the last known primary color for the managed vehicle entity.
|
|
|
|
*/
|
2016-08-21 17:07:35 +02:00
|
|
|
Int32 GetLastPrimaryColor() const;
|
2016-06-08 15:53:16 +02:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the last known secondary color for the managed vehicle entity.
|
|
|
|
*/
|
2016-08-21 17:07:35 +02:00
|
|
|
Int32 GetLastSecondaryColor() const;
|
2016-06-08 15:53:16 +02:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the last known health for the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetLastHealth() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the last known position for the managed player entity.
|
|
|
|
*/
|
|
|
|
const Vector3 & GetLastPosition() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the last known rotation for the managed player entity.
|
|
|
|
*/
|
|
|
|
const Quaternion & GetLastRotation() const;
|
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the position on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetPositionX() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the position on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetPositionY() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the position on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetPositionZ() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetPositionX(Float32 x) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetPositionY(Float32 y) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the position on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetPositionZ(Float32 z) const;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the rotation on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetRotationX() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the rotation on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetRotationY() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the rotation on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetRotationZ() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the rotation amount of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetRotationW() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the rotation on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRotationX(Float32 x) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the rotation on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRotationY(Float32 y) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the rotation on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRotationZ(Float32 z) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the rotation amount of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetRotationW(Float32 w) const;
|
2015-10-29 21:56:07 +01:00
|
|
|
|
2016-03-10 04:57:13 +01:00
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the euler rotation on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetEulerRotationX() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the euler rotation on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetEulerRotationY() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the euler rotation on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
Float32 GetEulerRotationZ() const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler rotation on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetEulerRotationX(Float32 x) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler rotation on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetEulerRotationY(Float32 y) const;
|
2016-03-10 04:57:13 +01:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the euler rotation on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
2016-05-22 05:20:38 +02:00
|
|
|
void SetEulerRotationZ(Float32 z) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetSpeedX() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetSpeedY() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetSpeedZ() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetSpeedX(Float32 x) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetSpeedY(Float32 y) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetSpeedZ(Float32 z) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetRelativeSpeedX() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetRelativeSpeedY() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetRelativeSpeedZ() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetRelativeSpeedX(Float32 x) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetRelativeSpeedY(Float32 y) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetRelativeSpeedZ(Float32 z) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the turn velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetTurnSpeedX() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the turn velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetTurnSpeedY() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the turn velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetTurnSpeedZ() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetTurnSpeedX(Float32 x) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetTurnSpeedY(Float32 y) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the turn velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetTurnSpeedZ(Float32 z) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative turn velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetRelativeTurnSpeedX() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative turn velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetRelativeTurnSpeedY() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Retrieve the relative turn velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
Float32 GetRelativeTurnSpeedZ() const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn velocity on the x axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetRelativeTurnSpeedX(Float32 x) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn velocity on the y axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetRelativeTurnSpeedY(Float32 y) const;
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------
|
|
|
|
* Modify the relative turn velocity on the z axis of the managed vehicle entity.
|
|
|
|
*/
|
|
|
|
void SetRelativeTurnSpeedZ(Float32 z) const;
|
2015-09-30 02:56:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // Namespace:: SqMod
|