mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Update VCMP plugin header (0.4.7.0)
This commit is contained in:
parent
520a5eacc5
commit
3c8c95d401
@ -227,7 +227,6 @@ const SQChar * CPlayer::GetUID2() const
|
|||||||
// Return the requested information
|
// Return the requested information
|
||||||
return s_Buffer;
|
return s_Buffer;
|
||||||
}
|
}
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
void CPlayer::Kill() const
|
void CPlayer::Kill() const
|
||||||
{
|
{
|
||||||
@ -236,7 +235,6 @@ void CPlayer::Kill() const
|
|||||||
// Perform the requested operation
|
// Perform the requested operation
|
||||||
_Func->KillPlayer(m_ID);
|
_Func->KillPlayer(m_ID);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
void CPlayer::Kick() const
|
void CPlayer::Kick() const
|
||||||
{
|
{
|
||||||
@ -1422,7 +1420,7 @@ void CPlayer::Unspectate() const
|
|||||||
// Spectate the given target
|
// Spectate the given target
|
||||||
_Func->SetPlayerSpectateTarget(m_ID, -1);
|
_Func->SetPlayerSpectateTarget(m_ID, -1);
|
||||||
}
|
}
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
void CPlayer::SetPlayer3DArrow(CPlayer & target, bool toggle) const
|
void CPlayer::SetPlayer3DArrow(CPlayer & target, bool toggle) const
|
||||||
{
|
{
|
||||||
@ -1475,7 +1473,7 @@ bool CPlayer::InterpolateCameraLookAtEx(float x, float y, float z, uint32_t ms)
|
|||||||
// Perform the requested operation
|
// Perform the requested operation
|
||||||
return _Func->InterpolateCameraLookAt(m_ID, x, y, z, ms) != vcmpErrorRequestDenied;
|
return _Func->InterpolateCameraLookAt(m_ID, x, y, z, ms) != vcmpErrorRequestDenied;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
void CPlayer::Redirect(StackStrF & ip, uint32_t port, StackStrF & nick,
|
void CPlayer::Redirect(StackStrF & ip, uint32_t port, StackStrF & nick,
|
||||||
StackStrF & server_pass, StackStrF & user_pass) const
|
StackStrF & server_pass, StackStrF & user_pass) const
|
||||||
@ -1508,7 +1506,7 @@ void CPlayer::PlaySound(int32_t sound_id) const
|
|||||||
// Perform the requested operation
|
// Perform the requested operation
|
||||||
_Func->PlaySound(_Func->GetPlayerUniqueWorld(m_ID), sound_id, NAN, NAN, NAN);
|
_Func->PlaySound(_Func->GetPlayerUniqueWorld(m_ID), sound_id, NAN, NAN, NAN);
|
||||||
}
|
}
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
void CPlayer::SetDrunkHandling(SQInteger level) const
|
void CPlayer::SetDrunkHandling(SQInteger level) const
|
||||||
{
|
{
|
||||||
@ -1544,7 +1542,7 @@ SQInteger CPlayer::GetDrunkVisuals() const
|
|||||||
// Perform the requested operation
|
// Perform the requested operation
|
||||||
return _Func->GetPlayerDrunkVisuals(m_ID);
|
return _Func->GetPlayerDrunkVisuals(m_ID);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
LightObj & CPlayer::CreateCheckpointEx1a(int32_t world, bool sphere, float x, float y, float z,
|
LightObj & CPlayer::CreateCheckpointEx1a(int32_t world, bool sphere, float x, float y, float z,
|
||||||
uint8_t r, uint8_t g, uint8_t b, uint8_t a, float radius) const
|
uint8_t r, uint8_t g, uint8_t b, uint8_t a, float radius) const
|
||||||
@ -2864,10 +2862,8 @@ void Register_CPlayer(HSQUIRRELVM vm)
|
|||||||
.Prop(_SC("Away"), &CPlayer::IsAway)
|
.Prop(_SC("Away"), &CPlayer::IsAway)
|
||||||
.Prop(_SC("Spec"), &CPlayer::GetSpectator, &CPlayer::SetSpectator)
|
.Prop(_SC("Spec"), &CPlayer::GetSpectator, &CPlayer::SetSpectator)
|
||||||
.Prop(_SC("SpecID"), &CPlayer::GetSpectatorID, &CPlayer::SetSpectatorID)
|
.Prop(_SC("SpecID"), &CPlayer::GetSpectatorID, &CPlayer::SetSpectatorID)
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
.Prop(_SC("DrunkHandling"), &CPlayer::GetDrunkHandling, &CPlayer::SetDrunkHandling)
|
.Prop(_SC("DrunkHandling"), &CPlayer::GetDrunkHandling, &CPlayer::SetDrunkHandling)
|
||||||
.Prop(_SC("DrunkVisuals"), &CPlayer::GetDrunkVisuals, &CPlayer::SetDrunkVisuals)
|
.Prop(_SC("DrunkVisuals"), &CPlayer::GetDrunkVisuals, &CPlayer::SetDrunkVisuals)
|
||||||
#endif
|
|
||||||
.Prop(_SC("CollideAreas"), &CPlayer::GetCollideAreas, &CPlayer::SetCollideAreas)
|
.Prop(_SC("CollideAreas"), &CPlayer::GetCollideAreas, &CPlayer::SetCollideAreas)
|
||||||
.Prop(_SC("Authority"), &CPlayer::GetAuthority, &CPlayer::SetAuthority)
|
.Prop(_SC("Authority"), &CPlayer::GetAuthority, &CPlayer::SetAuthority)
|
||||||
.Prop(_SC("TrackPosition"), &CPlayer::GetTrackPosition, &CPlayer::SetTrackPosition)
|
.Prop(_SC("TrackPosition"), &CPlayer::GetTrackPosition, &CPlayer::SetTrackPosition)
|
||||||
@ -2890,9 +2886,7 @@ void Register_CPlayer(HSQUIRRELVM vm)
|
|||||||
.Prop(_SC("Blue"), &CPlayer::GetColorB, &CPlayer::SetColorB)
|
.Prop(_SC("Blue"), &CPlayer::GetColorB, &CPlayer::SetColorB)
|
||||||
// Member Methods
|
// Member Methods
|
||||||
.Func(_SC("StreamedFor"), &CPlayer::IsStreamedFor)
|
.Func(_SC("StreamedFor"), &CPlayer::IsStreamedFor)
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
.Func(_SC("Kill"), &CPlayer::Kill)
|
.Func(_SC("Kill"), &CPlayer::Kill)
|
||||||
#endif
|
|
||||||
.Func(_SC("Kick"), &CPlayer::Kick)
|
.Func(_SC("Kick"), &CPlayer::Kick)
|
||||||
.Func(_SC("Ban"), &CPlayer::Ban)
|
.Func(_SC("Ban"), &CPlayer::Ban)
|
||||||
.Func(_SC("KickBecause"), &CPlayer::KickBecause)
|
.Func(_SC("KickBecause"), &CPlayer::KickBecause)
|
||||||
@ -2926,14 +2920,12 @@ void Register_CPlayer(HSQUIRRELVM vm)
|
|||||||
.Func(_SC("Spectating"), &CPlayer::GetSpectator)
|
.Func(_SC("Spectating"), &CPlayer::GetSpectator)
|
||||||
.Func(_SC("Unspectate"), &CPlayer::Unspectate)
|
.Func(_SC("Unspectate"), &CPlayer::Unspectate)
|
||||||
.Func(_SC("Spectate"), &CPlayer::SetSpectator)
|
.Func(_SC("Spectate"), &CPlayer::SetSpectator)
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
.Func(_SC("SetPlayer3DArrow"), &CPlayer::SetPlayer3DArrow)
|
.Func(_SC("SetPlayer3DArrow"), &CPlayer::SetPlayer3DArrow)
|
||||||
.Func(_SC("GetPlayer3DArrow"), &CPlayer::GetPlayer3DArrow)
|
.Func(_SC("GetPlayer3DArrow"), &CPlayer::GetPlayer3DArrow)
|
||||||
.Func(_SC("SetPlayer3DArrowID"), &CPlayer::SetPlayer3DArrowID)
|
.Func(_SC("SetPlayer3DArrowID"), &CPlayer::SetPlayer3DArrowID)
|
||||||
.Func(_SC("GetPlayer3DArrowID"), &CPlayer::GetPlayer3DArrowID)
|
.Func(_SC("GetPlayer3DArrowID"), &CPlayer::GetPlayer3DArrowID)
|
||||||
.Func(_SC("InterpolateCameraLookAt"), &CPlayer::InterpolateCameraLookAt)
|
.Func(_SC("InterpolateCameraLookAt"), &CPlayer::InterpolateCameraLookAt)
|
||||||
.Func(_SC("InterpolateCameraLookAtEx"), &CPlayer::InterpolateCameraLookAtEx)
|
.Func(_SC("InterpolateCameraLookAtEx"), &CPlayer::InterpolateCameraLookAtEx)
|
||||||
#endif
|
|
||||||
.Func(_SC("Redirect"), &CPlayer::Redirect)
|
.Func(_SC("Redirect"), &CPlayer::Redirect)
|
||||||
.Func(_SC("GetModuleList"), &CPlayer::GetModuleList)
|
.Func(_SC("GetModuleList"), &CPlayer::GetModuleList)
|
||||||
.Func(_SC("PlaySound"), &CPlayer::PlaySound)
|
.Func(_SC("PlaySound"), &CPlayer::PlaySound)
|
||||||
|
@ -260,12 +260,12 @@ public:
|
|||||||
* Retrieve the unique user identifier version 2 of the managed player entity.
|
* Retrieve the unique user identifier version 2 of the managed player entity.
|
||||||
*/
|
*/
|
||||||
SQMOD_NODISCARD const SQChar * GetUID2() const;
|
SQMOD_NODISCARD const SQChar * GetUID2() const;
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Set player's health to 0 and reset the death reason.
|
* Set player's health to 0 and reset the death reason.
|
||||||
*/
|
*/
|
||||||
void Kill() const;
|
void Kill() const;
|
||||||
#endif
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Kick the managed player entity from the server.
|
* Kick the managed player entity from the server.
|
||||||
*/
|
*/
|
||||||
@ -750,7 +750,7 @@ public:
|
|||||||
* Set the managed player entity to spectate no one.
|
* Set the managed player entity to spectate no one.
|
||||||
*/
|
*/
|
||||||
void Unspectate() const;
|
void Unspectate() const;
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Set whether the target player will see an objective arrow over a player.
|
* Set whether the target player will see an objective arrow over a player.
|
||||||
*/
|
*/
|
||||||
@ -780,7 +780,7 @@ public:
|
|||||||
* Smoothly pivots the camera angle.
|
* Smoothly pivots the camera angle.
|
||||||
*/
|
*/
|
||||||
SQMOD_NODISCARD bool InterpolateCameraLookAtEx(float x, float y, float z, uint32_t ms) const;
|
SQMOD_NODISCARD bool InterpolateCameraLookAtEx(float x, float y, float z, uint32_t ms) const;
|
||||||
#endif
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Redirect the managed player entity to the specified server.
|
* Redirect the managed player entity to the specified server.
|
||||||
*/
|
*/
|
||||||
@ -796,7 +796,7 @@ public:
|
|||||||
* Retrieve the authority level of the managed player entity.
|
* Retrieve the authority level of the managed player entity.
|
||||||
*/
|
*/
|
||||||
void PlaySound(int32_t sound_id) const;
|
void PlaySound(int32_t sound_id) const;
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Set how delayed a player's turn handling is when in a vehicle.
|
* Set how delayed a player's turn handling is when in a vehicle.
|
||||||
*/
|
*/
|
||||||
@ -816,7 +816,7 @@ public:
|
|||||||
* Retrieve how intense the drunk blur overlay is for a player.
|
* Retrieve how intense the drunk blur overlay is for a player.
|
||||||
*/
|
*/
|
||||||
SQMOD_NODISCARD SQInteger GetDrunkVisuals() const;
|
SQMOD_NODISCARD SQInteger GetDrunkVisuals() const;
|
||||||
#endif
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Create a checkpoint or sphere for this player.
|
* Create a checkpoint or sphere for this player.
|
||||||
*/
|
*/
|
||||||
|
@ -1205,7 +1205,6 @@ bool CVehicle::EmbarkEx(CPlayer & player, int32_t slot, bool allocate, bool warp
|
|||||||
return (_Func->PutPlayerInVehicle(player.GetID(), m_ID, slot,
|
return (_Func->PutPlayerInVehicle(player.GetID(), m_ID, slot,
|
||||||
static_cast< uint8_t >(allocate), static_cast< uint8_t >(warp)) != vcmpErrorRequestDenied);
|
static_cast< uint8_t >(allocate), static_cast< uint8_t >(warp)) != vcmpErrorRequestDenied);
|
||||||
}
|
}
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
void CVehicle::SetPlayer3DArrow(CPlayer & target, bool toggle) const
|
void CVehicle::SetPlayer3DArrow(CPlayer & target, bool toggle) const
|
||||||
{
|
{
|
||||||
@ -1241,7 +1240,6 @@ bool CVehicle::GetPlayer3DArrowID(SQInteger id) const
|
|||||||
// Spectate the given target
|
// Spectate the given target
|
||||||
return _Func->GetVehicle3DArrowForPlayer(m_ID, id);
|
return _Func->GetVehicle3DArrowForPlayer(m_ID, id);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
bool CVehicle::GetCollideAreas() const
|
bool CVehicle::GetCollideAreas() const
|
||||||
{
|
{
|
||||||
@ -2191,12 +2189,10 @@ void Register_CVehicle(HSQUIRRELVM vm)
|
|||||||
.Func(_SC("SetHandlingRule"), &CVehicle::SetHandlingRule)
|
.Func(_SC("SetHandlingRule"), &CVehicle::SetHandlingRule)
|
||||||
.Func(_SC("ResetHandlingRule"), &CVehicle::ResetHandlingRule)
|
.Func(_SC("ResetHandlingRule"), &CVehicle::ResetHandlingRule)
|
||||||
.Func(_SC("ResetHandlings"), &CVehicle::ResetHandlings)
|
.Func(_SC("ResetHandlings"), &CVehicle::ResetHandlings)
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
.Func(_SC("SetPlayer3DArrow"), &CVehicle::SetPlayer3DArrow)
|
.Func(_SC("SetPlayer3DArrow"), &CVehicle::SetPlayer3DArrow)
|
||||||
.Func(_SC("GetPlayer3DArrow"), &CVehicle::GetPlayer3DArrow)
|
.Func(_SC("GetPlayer3DArrow"), &CVehicle::GetPlayer3DArrow)
|
||||||
.Func(_SC("SetPlayer3DArrowID"), &CVehicle::SetPlayer3DArrowID)
|
.Func(_SC("SetPlayer3DArrowID"), &CVehicle::SetPlayer3DArrowID)
|
||||||
.Func(_SC("GetPlayer3DArrowID"), &CVehicle::GetPlayer3DArrowID)
|
.Func(_SC("GetPlayer3DArrowID"), &CVehicle::GetPlayer3DArrowID)
|
||||||
#endif
|
|
||||||
.Func(_SC("AreasCollide"), &CVehicle::SetAreasCollide)
|
.Func(_SC("AreasCollide"), &CVehicle::SetAreasCollide)
|
||||||
// Member Overloads
|
// Member Overloads
|
||||||
.Overload(_SC("SetPos"), &CVehicle::SetPosition)
|
.Overload(_SC("SetPos"), &CVehicle::SetPosition)
|
||||||
|
@ -622,7 +622,7 @@ public:
|
|||||||
* Embark the specified player entity into the managed vehicle entity.
|
* Embark the specified player entity into the managed vehicle entity.
|
||||||
*/
|
*/
|
||||||
bool EmbarkEx(CPlayer & player, int32_t slot, bool allocate, bool warp);
|
bool EmbarkEx(CPlayer & player, int32_t slot, bool allocate, bool warp);
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Set whether the target player will see an objective arrow over a vehicle.
|
* Set whether the target player will see an objective arrow over a vehicle.
|
||||||
*/
|
*/
|
||||||
@ -642,7 +642,7 @@ public:
|
|||||||
* See whether the target player sees an objective arrow over a vehicle.
|
* See whether the target player sees an objective arrow over a vehicle.
|
||||||
*/
|
*/
|
||||||
SQMOD_NODISCARD bool GetPlayer3DArrowID(SQInteger id) const;
|
SQMOD_NODISCARD bool GetPlayer3DArrowID(SQInteger id) const;
|
||||||
#endif
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* See whether the managed vehicle entity collides with user defined areas.
|
* See whether the managed vehicle entity collides with user defined areas.
|
||||||
*/
|
*/
|
||||||
|
@ -266,9 +266,6 @@ static const EnumElement g_EntityPoolEnum[] = {
|
|||||||
static const EnumElement g_PlayerUpdateEnum[] = {
|
static const EnumElement g_PlayerUpdateEnum[] = {
|
||||||
{_SC("Unknown"), SQMOD_UNKNOWN},
|
{_SC("Unknown"), SQMOD_UNKNOWN},
|
||||||
{_SC("Normal"), vcmpPlayerUpdateNormal},
|
{_SC("Normal"), vcmpPlayerUpdateNormal},
|
||||||
#if SQMOD_SDK_PRIOR(2, 1)
|
|
||||||
{_SC("Aiming"), vcmpPlayerUpdateAiming},
|
|
||||||
#endif
|
|
||||||
{_SC("Driver"), vcmpPlayerUpdateDriver},
|
{_SC("Driver"), vcmpPlayerUpdateDriver},
|
||||||
{_SC("Passenger"), vcmpPlayerUpdatePassenger},
|
{_SC("Passenger"), vcmpPlayerUpdatePassenger},
|
||||||
{_SC("Max"), vcmpPlayerUpdatePassenger}
|
{_SC("Max"), vcmpPlayerUpdatePassenger}
|
||||||
@ -344,12 +341,8 @@ static const EnumElement g_ServerOptionEnum[] = {
|
|||||||
{_SC("WallGlitch"), vcmpServerOptionWallGlitch},
|
{_SC("WallGlitch"), vcmpServerOptionWallGlitch},
|
||||||
{_SC("DisableBackfaceCulling"), vcmpServerOptionDisableBackfaceCulling},
|
{_SC("DisableBackfaceCulling"), vcmpServerOptionDisableBackfaceCulling},
|
||||||
{_SC("DisableHeliBladeDamage"), vcmpServerOptionDisableHeliBladeDamage},
|
{_SC("DisableHeliBladeDamage"), vcmpServerOptionDisableHeliBladeDamage},
|
||||||
//#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
{_SC("DisableCrouch"), vcmpServerOptionDisableCrouch},
|
{_SC("DisableCrouch"), vcmpServerOptionDisableCrouch},
|
||||||
{_SC("Max"), vcmpServerOptionDisableCrouch}
|
{_SC("Max"), vcmpServerOptionDisableCrouch}
|
||||||
//#else
|
|
||||||
// {_SC("Max"), vcmpServerOptionDisableHeliBladeDamage}
|
|
||||||
//#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
@ -364,13 +357,8 @@ static const EnumElement g_PlayerOptionEnum[] = {
|
|||||||
{_SC("CanAttack"), vcmpPlayerOptionCanAttack},
|
{_SC("CanAttack"), vcmpPlayerOptionCanAttack},
|
||||||
{_SC("HasMarker"), vcmpPlayerOptionHasMarker},
|
{_SC("HasMarker"), vcmpPlayerOptionHasMarker},
|
||||||
{_SC("ChatTagsEnabled"), vcmpPlayerOptionChatTagsEnabled},
|
{_SC("ChatTagsEnabled"), vcmpPlayerOptionChatTagsEnabled},
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
{_SC("DrunkEffects"), vcmpPlayerOptionBleeding},
|
{_SC("DrunkEffects"), vcmpPlayerOptionBleeding},
|
||||||
{_SC("Max"), vcmpPlayerOptionBleeding}
|
{_SC("Max"), vcmpPlayerOptionBleeding}
|
||||||
#else
|
|
||||||
{_SC("DrunkEffects"), vcmpPlayerOptionDrunkEffects},
|
|
||||||
{_SC("Max"), vcmpPlayerOptionDrunkEffects}
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
@ -383,14 +371,10 @@ static const EnumElement g_VehicleOptionEnum[] = {
|
|||||||
{_SC("Ghost"), vcmpVehicleOptionGhost},
|
{_SC("Ghost"), vcmpVehicleOptionGhost},
|
||||||
{_SC("Siren"), vcmpVehicleOptionSiren},
|
{_SC("Siren"), vcmpVehicleOptionSiren},
|
||||||
{_SC("SingleUse"), vcmpVehicleOptionSingleUse},
|
{_SC("SingleUse"), vcmpVehicleOptionSingleUse},
|
||||||
#if SQMOD_SDK_LEAST(2, 1)
|
|
||||||
{_SC("EngineDisabled"), vcmpVehicleOptionEngineDisabled},
|
{_SC("EngineDisabled"), vcmpVehicleOptionEngineDisabled},
|
||||||
{_SC("BootOpen"), vcmpVehicleOptionBootOpen},
|
{_SC("BootOpen"), vcmpVehicleOptionBootOpen},
|
||||||
{_SC("BonnetOpen"), vcmpVehicleOptionBonnetOpen},
|
{_SC("BonnetOpen"), vcmpVehicleOptionBonnetOpen},
|
||||||
{_SC("Max"), vcmpVehicleOptionBonnetOpen}
|
{_SC("Max"), vcmpVehicleOptionBonnetOpen}
|
||||||
#else
|
|
||||||
{_SC("Max"), vcmpVehicleOptionSingleUse}
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
@ -736,7 +736,7 @@ struct LgPlayer
|
|||||||
void SetSpectateTarget(LightObj & player) const { player.IsNull() ? Get().SetSpectatorID(-1) : Get().SetSpectator(player.CastI< LgPlayer >()->Get()); }
|
void SetSpectateTarget(LightObj & player) const { player.IsNull() ? Get().SetSpectatorID(-1) : Get().SetSpectator(player.CastI< LgPlayer >()->Get()); }
|
||||||
void SetMarkerVisible(bool toggle) const { _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionHasMarker, static_cast< uint8_t >(toggle)); }
|
void SetMarkerVisible(bool toggle) const { _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionHasMarker, static_cast< uint8_t >(toggle)); }
|
||||||
void SetCanUseColors(bool toggle) const { _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionChatTagsEnabled, static_cast< uint8_t >(toggle)); }
|
void SetCanUseColors(bool toggle) const { _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionChatTagsEnabled, static_cast< uint8_t >(toggle)); }
|
||||||
void SetDrunkStatus(bool toggle) const { _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionDrunkEffects, static_cast< uint8_t >(toggle)); }
|
void SetDrunkStatus(bool toggle) const { _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionBleeding, static_cast< uint8_t >(toggle)); }
|
||||||
void SetWantedLevel(int level) const { Get().SetWantedLevel(level); }
|
void SetWantedLevel(int level) const { Get().SetWantedLevel(level); }
|
||||||
// --------------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------------
|
||||||
SQMOD_NODISCARD LgEntityVector GetPosition() const
|
SQMOD_NODISCARD LgEntityVector GetPosition() const
|
||||||
@ -787,7 +787,7 @@ struct LgPlayer
|
|||||||
{ return {mID, LgEntityType::Player, LgPlayerVectorFlag::Speed, Get().GetSpeed()}; }
|
{ return {mID, LgEntityType::Player, LgPlayerVectorFlag::Speed, Get().GetSpeed()}; }
|
||||||
SQMOD_NODISCARD bool GetCanUseColors() const { return _Func->GetPlayerOption(GetIdentifier(), vcmpPlayerOptionChatTagsEnabled) >= 1; }
|
SQMOD_NODISCARD bool GetCanUseColors() const { return _Func->GetPlayerOption(GetIdentifier(), vcmpPlayerOptionChatTagsEnabled) >= 1; }
|
||||||
SQMOD_NODISCARD bool GetMarkerVisible() const { return _Func->GetPlayerOption(GetIdentifier(), vcmpPlayerOptionHasMarker) >= 1; }
|
SQMOD_NODISCARD bool GetMarkerVisible() const { return _Func->GetPlayerOption(GetIdentifier(), vcmpPlayerOptionHasMarker) >= 1; }
|
||||||
SQMOD_NODISCARD bool GetDrunkStatus() const { return _Func->GetPlayerOption(GetIdentifier(), vcmpPlayerOptionDrunkEffects) >= 1; }
|
SQMOD_NODISCARD bool GetDrunkStatus() const { return _Func->GetPlayerOption(GetIdentifier(), vcmpPlayerOptionBleeding) >= 1; }
|
||||||
SQMOD_NODISCARD double GetFPS() const { return Get().GetFPS(); }
|
SQMOD_NODISCARD double GetFPS() const { return Get().GetFPS(); }
|
||||||
SQMOD_NODISCARD const SQChar * GetUniqueID() const { return Get().GetUID(); }
|
SQMOD_NODISCARD const SQChar * GetUniqueID() const { return Get().GetUID(); }
|
||||||
SQMOD_NODISCARD const SQChar * GetUniqueID2() const { return Get().GetUID2(); }
|
SQMOD_NODISCARD const SQChar * GetUniqueID2() const { return Get().GetUID2(); }
|
||||||
@ -828,8 +828,8 @@ struct LgPlayer
|
|||||||
void RemoveMarker() const { _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionHasMarker, 0); }
|
void RemoveMarker() const { _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionHasMarker, 0); }
|
||||||
void SetMarker(int toggle) const { _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionShowMarkers, static_cast< uint8_t >(toggle)); }
|
void SetMarker(int toggle) const { _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionShowMarkers, static_cast< uint8_t >(toggle)); }
|
||||||
void SetDrunkLevel(int visuals, int handling) const {
|
void SetDrunkLevel(int visuals, int handling) const {
|
||||||
if (visuals <= 0 && handling <= 0) _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionDrunkEffects, 0);
|
if (visuals <= 0 && handling <= 0) _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionBleeding, 0);
|
||||||
else _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionDrunkEffects, 1);
|
else _Func->SetPlayerOption(GetIdentifier(), vcmpPlayerOptionBleeding, 1);
|
||||||
}
|
}
|
||||||
void RedirectPlayerToServer(StackStrF & ip, uint32_t port, StackStrF & nick, StackStrF & spass, StackStrF & upass) const
|
void RedirectPlayerToServer(StackStrF & ip, uint32_t port, StackStrF & nick, StackStrF & spass, StackStrF & upass) const
|
||||||
{ Get().Redirect(ip, port, nick, spass, upass); }
|
{ Get().Redirect(ip, port, nick, spass, upass); }
|
||||||
|
@ -101,7 +101,7 @@ typedef enum {
|
|||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
vcmpPlayerUpdateNormal = 0,
|
vcmpPlayerUpdateNormal = 0,
|
||||||
vcmpPlayerUpdateAiming = 1,
|
vcmpPlayerUpdateAimingDeprecated = 1,
|
||||||
vcmpPlayerUpdateDriver = 2,
|
vcmpPlayerUpdateDriver = 2,
|
||||||
vcmpPlayerUpdatePassenger = 3,
|
vcmpPlayerUpdatePassenger = 3,
|
||||||
forceSizeVcmpPlayerUpdate = INT32_MAX
|
forceSizeVcmpPlayerUpdate = INT32_MAX
|
||||||
@ -170,7 +170,8 @@ typedef enum {
|
|||||||
vcmpPlayerOptionCanAttack = 6,
|
vcmpPlayerOptionCanAttack = 6,
|
||||||
vcmpPlayerOptionHasMarker = 7,
|
vcmpPlayerOptionHasMarker = 7,
|
||||||
vcmpPlayerOptionChatTagsEnabled = 8,
|
vcmpPlayerOptionChatTagsEnabled = 8,
|
||||||
vcmpPlayerOptionDrunkEffects = 9,
|
vcmpPlayerOptionDrunkEffectsDeprecated = 9,
|
||||||
|
vcmpPlayerOptionBleeding = 10,
|
||||||
forceSizeVcmpPlayerOption = INT32_MAX
|
forceSizeVcmpPlayerOption = INT32_MAX
|
||||||
} vcmpPlayerOption;
|
} vcmpPlayerOption;
|
||||||
|
|
||||||
@ -182,6 +183,9 @@ typedef enum {
|
|||||||
vcmpVehicleOptionGhost = 4,
|
vcmpVehicleOptionGhost = 4,
|
||||||
vcmpVehicleOptionSiren = 5,
|
vcmpVehicleOptionSiren = 5,
|
||||||
vcmpVehicleOptionSingleUse = 6,
|
vcmpVehicleOptionSingleUse = 6,
|
||||||
|
vcmpVehicleOptionEngineDisabled = 7,
|
||||||
|
vcmpVehicleOptionBootOpen = 8,
|
||||||
|
vcmpVehicleOptionBonnetOpen = 9,
|
||||||
forceSizeVcmpVehicleOption = INT32_MAX
|
forceSizeVcmpVehicleOption = INT32_MAX
|
||||||
} vcmpVehicleOption;
|
} vcmpVehicleOption;
|
||||||
|
|
||||||
@ -904,9 +908,33 @@ typedef struct {
|
|||||||
uint16_t (*GetFallTimer) (void);
|
uint16_t (*GetFallTimer) (void);
|
||||||
|
|
||||||
/* vcmpErrorNoSuchEntity */
|
/* vcmpErrorNoSuchEntity */
|
||||||
vcmpError(*SetVehicleLightsData) (int32_t vehicleId, uint32_t lightsData);
|
vcmpError (*SetVehicleLightsData) (int32_t vehicleId, uint32_t lightsData);
|
||||||
/* GetLastError: vcmpErrorNoSuchEntity */
|
/* GetLastError: vcmpErrorNoSuchEntity */
|
||||||
uint32_t(*GetVehicleLightsData) (int32_t vehicleId);
|
uint32_t (*GetVehicleLightsData) (int32_t vehicleId);
|
||||||
|
|
||||||
|
/* vcmpErrorNoSuchEntity */
|
||||||
|
vcmpError (*KillPlayer) (int32_t playerId);
|
||||||
|
|
||||||
|
/* vcmpErrorNoSuchEntity */
|
||||||
|
vcmpError (*SetVehicle3DArrowForPlayer) (int32_t nVehicleId, int32_t nTargetPlayerId, uint8_t bEnabled);
|
||||||
|
/* GetLastError: vcmpErrorNoSuchEntity */
|
||||||
|
uint8_t (*GetVehicle3DArrowForPlayer) (int32_t nVehicleId, int32_t nTargetPlayerId);
|
||||||
|
/* vcmpErrorNoSuchEntity */
|
||||||
|
vcmpError (*SetPlayer3DArrowForPlayer) (int32_t nPlayerId, int32_t nTargetPlayerId, uint8_t bEnabled);
|
||||||
|
/* GetLastError: vcmpErrorNoSuchEntity */
|
||||||
|
uint8_t (*GetPlayer3DArrowForPlayer) (int32_t nVehicleId, int32_t nTargetPlayerId);
|
||||||
|
|
||||||
|
/* vcmpErrorNoSuchEntity */
|
||||||
|
vcmpError (*SetPlayerDrunkHandling) (int32_t playerId, uint32_t drunkLevel);
|
||||||
|
/* GetLastError: vcmpErrorNoSuchEntity */
|
||||||
|
uint32_t (*GetPlayerDrunkHandling) (int32_t playerId);
|
||||||
|
/* vcmpErrorNoSuchEntity */
|
||||||
|
vcmpError (*SetPlayerDrunkVisuals) (int32_t playerId, uint8_t drunkLevel);
|
||||||
|
/* GetLastError: vcmpErrorNoSuchEntity */
|
||||||
|
uint8_t (*GetPlayerDrunkVisuals) (int32_t playerId);
|
||||||
|
|
||||||
|
/* vcmpErrorNoSuchEntity, vcmpErrorRequestDenied */
|
||||||
|
vcmpError (*InterpolateCameraLookAt) (int32_t playerId, float lookX, float lookY, float lookZ, uint32_t interpTimeMS);
|
||||||
|
|
||||||
} PluginFuncs;
|
} PluginFuncs;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user