mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-07-28 11:27:12 +02:00
Update VCMP plugin header (0.4.7.0)
This commit is contained in:
@@ -227,7 +227,6 @@ const SQChar * CPlayer::GetUID2() const
|
||||
// Return the requested information
|
||||
return s_Buffer;
|
||||
}
|
||||
#if SQMOD_SDK_LEAST(2, 1)
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::Kill() const
|
||||
{
|
||||
@@ -236,7 +235,6 @@ void CPlayer::Kill() const
|
||||
// Perform the requested operation
|
||||
_Func->KillPlayer(m_ID);
|
||||
}
|
||||
#endif
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::Kick() const
|
||||
{
|
||||
@@ -1422,7 +1420,7 @@ void CPlayer::Unspectate() const
|
||||
// Spectate the given target
|
||||
_Func->SetPlayerSpectateTarget(m_ID, -1);
|
||||
}
|
||||
#if SQMOD_SDK_LEAST(2, 1)
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
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
|
||||
return _Func->InterpolateCameraLookAt(m_ID, x, y, z, ms) != vcmpErrorRequestDenied;
|
||||
}
|
||||
#endif
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::Redirect(StackStrF & ip, uint32_t port, StackStrF & nick,
|
||||
StackStrF & server_pass, StackStrF & user_pass) const
|
||||
@@ -1508,7 +1506,7 @@ void CPlayer::PlaySound(int32_t sound_id) const
|
||||
// Perform the requested operation
|
||||
_Func->PlaySound(_Func->GetPlayerUniqueWorld(m_ID), sound_id, NAN, NAN, NAN);
|
||||
}
|
||||
#if SQMOD_SDK_LEAST(2, 1)
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetDrunkHandling(SQInteger level) const
|
||||
{
|
||||
@@ -1544,7 +1542,7 @@ SQInteger CPlayer::GetDrunkVisuals() const
|
||||
// Perform the requested operation
|
||||
return _Func->GetPlayerDrunkVisuals(m_ID);
|
||||
}
|
||||
#endif
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
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
|
||||
@@ -2864,10 +2862,8 @@ void Register_CPlayer(HSQUIRRELVM vm)
|
||||
.Prop(_SC("Away"), &CPlayer::IsAway)
|
||||
.Prop(_SC("Spec"), &CPlayer::GetSpectator, &CPlayer::SetSpectator)
|
||||
.Prop(_SC("SpecID"), &CPlayer::GetSpectatorID, &CPlayer::SetSpectatorID)
|
||||
#if SQMOD_SDK_LEAST(2, 1)
|
||||
.Prop(_SC("DrunkHandling"), &CPlayer::GetDrunkHandling, &CPlayer::SetDrunkHandling)
|
||||
.Prop(_SC("DrunkVisuals"), &CPlayer::GetDrunkVisuals, &CPlayer::SetDrunkVisuals)
|
||||
#endif
|
||||
.Prop(_SC("CollideAreas"), &CPlayer::GetCollideAreas, &CPlayer::SetCollideAreas)
|
||||
.Prop(_SC("Authority"), &CPlayer::GetAuthority, &CPlayer::SetAuthority)
|
||||
.Prop(_SC("TrackPosition"), &CPlayer::GetTrackPosition, &CPlayer::SetTrackPosition)
|
||||
@@ -2890,9 +2886,7 @@ void Register_CPlayer(HSQUIRRELVM vm)
|
||||
.Prop(_SC("Blue"), &CPlayer::GetColorB, &CPlayer::SetColorB)
|
||||
// Member Methods
|
||||
.Func(_SC("StreamedFor"), &CPlayer::IsStreamedFor)
|
||||
#if SQMOD_SDK_LEAST(2, 1)
|
||||
.Func(_SC("Kill"), &CPlayer::Kill)
|
||||
#endif
|
||||
.Func(_SC("Kick"), &CPlayer::Kick)
|
||||
.Func(_SC("Ban"), &CPlayer::Ban)
|
||||
.Func(_SC("KickBecause"), &CPlayer::KickBecause)
|
||||
@@ -2926,14 +2920,12 @@ void Register_CPlayer(HSQUIRRELVM vm)
|
||||
.Func(_SC("Spectating"), &CPlayer::GetSpectator)
|
||||
.Func(_SC("Unspectate"), &CPlayer::Unspectate)
|
||||
.Func(_SC("Spectate"), &CPlayer::SetSpectator)
|
||||
#if SQMOD_SDK_LEAST(2, 1)
|
||||
.Func(_SC("SetPlayer3DArrow"), &CPlayer::SetPlayer3DArrow)
|
||||
.Func(_SC("GetPlayer3DArrow"), &CPlayer::GetPlayer3DArrow)
|
||||
.Func(_SC("SetPlayer3DArrowID"), &CPlayer::SetPlayer3DArrowID)
|
||||
.Func(_SC("GetPlayer3DArrowID"), &CPlayer::GetPlayer3DArrowID)
|
||||
.Func(_SC("InterpolateCameraLookAt"), &CPlayer::InterpolateCameraLookAt)
|
||||
.Func(_SC("InterpolateCameraLookAtEx"), &CPlayer::InterpolateCameraLookAtEx)
|
||||
#endif
|
||||
.Func(_SC("Redirect"), &CPlayer::Redirect)
|
||||
.Func(_SC("GetModuleList"), &CPlayer::GetModuleList)
|
||||
.Func(_SC("PlaySound"), &CPlayer::PlaySound)
|
||||
|
||||
@@ -260,12 +260,12 @@ public:
|
||||
* Retrieve the unique user identifier version 2 of the managed player entity.
|
||||
*/
|
||||
SQMOD_NODISCARD const SQChar * GetUID2() const;
|
||||
#if SQMOD_SDK_LEAST(2, 1)
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set player's health to 0 and reset the death reason.
|
||||
*/
|
||||
void Kill() const;
|
||||
#endif
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Kick the managed player entity from the server.
|
||||
*/
|
||||
@@ -750,7 +750,7 @@ public:
|
||||
* Set the managed player entity to spectate no one.
|
||||
*/
|
||||
void Unspectate() const;
|
||||
#if SQMOD_SDK_LEAST(2, 1)
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Set whether the target player will see an objective arrow over a player.
|
||||
*/
|
||||
@@ -780,7 +780,7 @@ public:
|
||||
* Smoothly pivots the camera angle.
|
||||
*/
|
||||
SQMOD_NODISCARD bool InterpolateCameraLookAtEx(float x, float y, float z, uint32_t ms) const;
|
||||
#endif
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Redirect the managed player entity to the specified server.
|
||||
*/
|
||||
@@ -796,7 +796,7 @@ public:
|
||||
* Retrieve the authority level of the managed player entity.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
@@ -816,7 +816,7 @@ public:
|
||||
* Retrieve how intense the drunk blur overlay is for a player.
|
||||
*/
|
||||
SQMOD_NODISCARD SQInteger GetDrunkVisuals() const;
|
||||
#endif
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* 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,
|
||||
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
|
||||
{
|
||||
@@ -1241,7 +1240,6 @@ bool CVehicle::GetPlayer3DArrowID(SQInteger id) const
|
||||
// Spectate the given target
|
||||
return _Func->GetVehicle3DArrowForPlayer(m_ID, id);
|
||||
}
|
||||
#endif
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool CVehicle::GetCollideAreas() const
|
||||
{
|
||||
@@ -2191,12 +2189,10 @@ void Register_CVehicle(HSQUIRRELVM vm)
|
||||
.Func(_SC("SetHandlingRule"), &CVehicle::SetHandlingRule)
|
||||
.Func(_SC("ResetHandlingRule"), &CVehicle::ResetHandlingRule)
|
||||
.Func(_SC("ResetHandlings"), &CVehicle::ResetHandlings)
|
||||
#if SQMOD_SDK_LEAST(2, 1)
|
||||
.Func(_SC("SetPlayer3DArrow"), &CVehicle::SetPlayer3DArrow)
|
||||
.Func(_SC("GetPlayer3DArrow"), &CVehicle::GetPlayer3DArrow)
|
||||
.Func(_SC("SetPlayer3DArrowID"), &CVehicle::SetPlayer3DArrowID)
|
||||
.Func(_SC("GetPlayer3DArrowID"), &CVehicle::GetPlayer3DArrowID)
|
||||
#endif
|
||||
.Func(_SC("AreasCollide"), &CVehicle::SetAreasCollide)
|
||||
// Member Overloads
|
||||
.Overload(_SC("SetPos"), &CVehicle::SetPosition)
|
||||
|
||||
@@ -622,7 +622,7 @@ public:
|
||||
* Embark the specified player entity into the managed vehicle entity.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
@@ -642,7 +642,7 @@ public:
|
||||
* See whether the target player sees an objective arrow over a vehicle.
|
||||
*/
|
||||
SQMOD_NODISCARD bool GetPlayer3DArrowID(SQInteger id) const;
|
||||
#endif
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the managed vehicle entity collides with user defined areas.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user